Skip to content

Commit 151e318

Browse files
committed
Add a comment to describe the bitmask and to refer to GetFeatureInfo() and GetGlobalFlags() for shader feature and global flags
1 parent 1f20688 commit 151e318

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/dxc/DXIL/DxilShaderFlags.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ class ShaderFlags {
220220
bool GetRequiresGroup() const { return m_bRequiresGroup; }
221221

222222
private:
223+
// Each of the shader flags are defined below within a bitfield to form the
224+
// shader flag bitmask of a DXIL module.
225+
// These shader flags are also used to set Shader Feature Info flags via the
226+
// function ShaderFlags::GetFeatureInfo().
227+
// For DXBC, these shader flags are also used to set Global Flags via the
228+
// function ShaderFlags::GetGlobalFlags().
229+
223230
// Bit: 0
224231
unsigned
225232
m_bDisableOptimizations : 1; // D3D11_1_SB_GLOBAL_FLAG_SKIP_OPTIMIZATION

0 commit comments

Comments
 (0)