D3D_SHADER_INPUT_FLAGS enumeration (d3dcommon.h)
Values that identify shader-input options.
Note
For programming with Direct3D 10, this API has a type alias that begins D3D10_
instead of D3D_
. These Direct3D 10 type aliases are defined in d3d10.h
, d3d10misc.h
, and d3d10shader.h
.
Syntax
typedef enum _D3D_SHADER_INPUT_FLAGS {
D3D_SIF_USERPACKED = 0x1,
D3D_SIF_COMPARISON_SAMPLER = 0x2,
D3D_SIF_TEXTURE_COMPONENT_0 = 0x4,
D3D_SIF_TEXTURE_COMPONENT_1 = 0x8,
D3D_SIF_TEXTURE_COMPONENTS = 0xc,
D3D_SIF_UNUSED = 0x10,
D3D10_SIF_USERPACKED,
D3D10_SIF_COMPARISON_SAMPLER,
D3D10_SIF_TEXTURE_COMPONENT_0,
D3D10_SIF_TEXTURE_COMPONENT_1,
D3D10_SIF_TEXTURE_COMPONENTS,
D3D_SIF_FORCE_DWORD = 0x7fffffff
} D3D_SHADER_INPUT_FLAGS;
Constants
D3D_SIF_USERPACKED Value: 0x1 Assign a shader input to a register based on the register assignment in the HLSL code (instead of letting the compiler choose the register). |
D3D_SIF_COMPARISON_SAMPLER Value: 0x2 Use a comparison sampler, which uses the SampleCmp (DirectX HLSL Texture Object) and SampleCmpLevelZero (DirectX HLSL Texture Object) sampling functions. |
D3D_SIF_TEXTURE_COMPONENT_0 Value: 0x4 A 2-bit value for encoding texture components. |
D3D_SIF_TEXTURE_COMPONENT_1 Value: 0x8 A 2-bit value for encoding texture components. |
D3D_SIF_TEXTURE_COMPONENTS Value: 0xc A 2-bit value for encoding texture components. |
D3D_SIF_UNUSED Value: 0x10 This value is reserved. |
D3D10_SIF_USERPACKED Assign a shader input to a register based on the register assignment in the HLSL code (instead of letting the compiler choose the register). |
D3D10_SIF_COMPARISON_SAMPLER Use a comparison sampler, which uses the SampleCmp (DirectX HLSL Texture Object) and SampleCmpLevelZero (DirectX HLSL Texture Object) sampling functions. |
D3D10_SIF_TEXTURE_COMPONENT_0 A 2-bit value for encoding texture components. |
D3D10_SIF_TEXTURE_COMPONENT_1 A 2-bit value for encoding texture components. |
D3D10_SIF_TEXTURE_COMPONENTS A 2-bit value for encoding texture components. |
D3D_SIF_FORCE_DWORD Value: 0x7fffffff Forces the enumeration to compile to 32 bits. This value is not used directly by titles. |
Remarks
D3D_SHADER_INPUT_FLAGS-typed values are specified in the uFlags member of the D3D11_SHADER_INPUT_BIND_DESC structure.
Requirements
Requirement | Value |
---|---|
Header | d3dcommon.h |