Skip to content

Commit f736b20

Browse files
committed
update comments
1 parent e9d782a commit f736b20

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

llvm/include/llvm/Support/DXILABI.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ enum class SamplerFeedbackType : uint32_t {
9999
const unsigned MinWaveSize = 4;
100100
const unsigned MaxWaveSize = 128;
101101

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

107+
// D3D12_ROOT_SIGNATURE_FLAGS
107108
enum class RootFlags : uint32_t {
108109
None = 0,
109110
AllowInputAssemblerInputLayout = 0x1,
@@ -121,6 +122,7 @@ enum class RootFlags : uint32_t {
121122
ValidFlags = 0x00000fff
122123
};
123124

125+
// D3D12_ROOT_DESCRIPTOR_FLAGS
124126
enum class RootDescriptorFlags : unsigned {
125127
None = 0,
126128
DataVolatile = 0x2,
@@ -129,6 +131,7 @@ enum class RootDescriptorFlags : unsigned {
129131
ValidFlags = 0xe,
130132
};
131133

134+
// D3D12_DESCRIPTOR_RANGE_FLAGS
132135
enum class DescriptorRangeFlags : unsigned {
133136
None = 0,
134137
DescriptorsVolatile = 0x1,
@@ -140,6 +143,7 @@ enum class DescriptorRangeFlags : unsigned {
140143
ValidSamplerFlags = DescriptorsVolatile,
141144
};
142145

146+
// D3D12_SHADER_VISIBILITY
143147
enum class ShaderVisibility {
144148
All = 0,
145149
Vertex = 1,
@@ -151,8 +155,7 @@ enum class ShaderVisibility {
151155
Mesh = 7,
152156
};
153157

154-
// D3D12_FILTER enumeration:
155-
// https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_filter
158+
// D3D12_FILTER
156159
enum class SamplerFilter {
157160
MinMagMipPoint = 0,
158161
MinMagPointMipLinear = 0x1,
@@ -192,6 +195,7 @@ enum class SamplerFilter {
192195
MaximumAnisotropic = 0x1d5
193196
};
194197

198+
// D3D12_TEXTURE_ADDRESS_MODE
195199
enum class TextureAddressMode {
196200
Wrap = 1,
197201
Mirror = 2,
@@ -200,6 +204,7 @@ enum class TextureAddressMode {
200204
MirrorOnce = 5
201205
};
202206

207+
// D3D12_COMPARISON_FUNC
203208
enum class ComparisonFunc : unsigned {
204209
Never = 1,
205210
Less = 2,
@@ -211,6 +216,7 @@ enum class ComparisonFunc : unsigned {
211216
Always = 8
212217
};
213218

219+
// D3D12_STATIC_BORDER_COLOR
214220
enum class StaticBorderColor {
215221
TransparentBlack = 0,
216222
OpaqueBlack = 1,

0 commit comments

Comments
 (0)