Skip to content

Commit 4b0bcc8

Browse files
committed
review: add context for enum values
1 parent bb9f247 commit 4b0bcc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

llvm/include/llvm/Frontend/HLSL/HLSLRootSignature.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ class Metadata;
2727
namespace hlsl {
2828
namespace rootsig {
2929

30-
// Definition of the various enumerations and flags
30+
// Definition of the various enumerations and flags. The definitions of all
31+
// values here correspond to their description in the d3d12.h header and are
32+
// carried over from their values in DXC. For reference:
33+
// https://learn.microsoft.com/en-us/windows/win32/api/d3d12/
3134

3235
enum class RootFlags : uint32_t {
3336
None = 0,
@@ -76,6 +79,8 @@ enum class ShaderVisibility {
7679
Mesh = 7,
7780
};
7881

82+
// D3D12_FILTER enumeration:
83+
// https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_filter
7984
enum class Filter {
8085
MinMagMipPoint = 0,
8186
MinMagPointMipLinear = 0x1,

0 commit comments

Comments
 (0)