10 #ifndef __D3D10SHADER_H__ 11 #define __D3D10SHADER_H__ 28 #define D3D10_TX_VERSION(_Major,_Minor) (('T' << 24) | ('X' << 16) | ((_Major) << 8) | (_Minor)) 93 #define D3D10_SHADER_DEBUG (1 << 0) 94 #define D3D10_SHADER_SKIP_VALIDATION (1 << 1) 95 #define D3D10_SHADER_SKIP_OPTIMIZATION (1 << 2) 96 #define D3D10_SHADER_PACK_MATRIX_ROW_MAJOR (1 << 3) 97 #define D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR (1 << 4) 98 #define D3D10_SHADER_PARTIAL_PRECISION (1 << 5) 99 #define D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT (1 << 6) 100 #define D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT (1 << 7) 101 #define D3D10_SHADER_NO_PRESHADER (1 << 8) 102 #define D3D10_SHADER_AVOID_FLOW_CONTROL (1 << 9) 103 #define D3D10_SHADER_PREFER_FLOW_CONTROL (1 << 10) 104 #define D3D10_SHADER_ENABLE_STRICTNESS (1 << 11) 105 #define D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY (1 << 12) 106 #define D3D10_SHADER_IEEE_STRICTNESS (1 << 13) 107 #define D3D10_SHADER_WARNINGS_ARE_ERRORS (1 << 18) 108 #define D3D10_SHADER_RESOURCES_MAY_ALIAS (1 << 19) 109 #define D3D10_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES (1 << 20) 110 #define D3D10_ALL_RESOURCES_BOUND (1 << 21) 111 #define D3D10_SHADER_DEBUG_NAME_FOR_SOURCE (1 << 22) 112 #define D3D10_SHADER_DEBUG_NAME_FOR_BINARY (1 << 23) 116 #define D3D10_SHADER_OPTIMIZATION_LEVEL0 (1 << 14) 117 #define D3D10_SHADER_OPTIMIZATION_LEVEL1 0 118 #define D3D10_SHADER_OPTIMIZATION_LEVEL2 ((1 << 14) | (1 << 15)) 119 #define D3D10_SHADER_OPTIMIZATION_LEVEL3 (1 << 15) 123 #define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST 0 124 #define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 (1 << 4) 125 #define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 (1 << 5) 166 #define IID_ID3D10Include IID_ID3DInclude 283 0xc530ad7d, 0x9b16, 0x4395, 0xa9, 0x79, 0xba, 0x2e, 0xcf, 0xf8, 0x3a, 0xdd);
286 #define INTERFACE ID3D10ShaderReflectionType 294 STDMETHOD_(LPCSTR, GetMemberTypeName)(THIS_
UINT Index) PURE;
303 0x1bf63c95, 0x2650, 0x405d, 0x99, 0xc1, 0x36, 0x36, 0xbd, 0x1d, 0xa0, 0xa1);
306 #define INTERFACE ID3D10ShaderReflectionVariable 320 DEFINE_GUID(IID_ID3D10ShaderReflectionConstantBuffer,
321 0x66c66a94, 0xdddd, 0x4b62, 0xa6, 0x6a, 0xf0, 0xda, 0x33, 0xc2, 0xb4, 0xd0);
324 #define INTERFACE ID3D10ShaderReflectionConstantBuffer 340 0xd40e20b6, 0xf8f7, 0x42ad, 0xab, 0x20, 0x4b, 0xaf, 0x8f, 0x15, 0xdf, 0xaa);
343 #define INTERFACE ID3D10ShaderReflection 347 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
348 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
349 STDMETHOD_(ULONG,
Release)(THIS) PURE;
411 LPCSTR pFunctionName, LPCSTR pProfile,
UINT Flags, _Out_
ID3D10Blob** ppShader, _Out_opt_
ID3D10Blob** ppErrorMsgs);
559 #endif //__D3D10SHADER_H__ enum _D3D_SHADER_VARIABLE_CLASS D3D_SHADER_VARIABLE_CLASS
DECLARE_INTERFACE_(ID3D10ShaderReflection, IUnknown)
Definition: d3d10shader.h:345
D3D10_SHADER_INPUT_TYPE * LPD3D10_SHADER_INPUT_TYPE
Definition: d3d10shader.h:147
UINT ConstantBuffers
Definition: d3d10shader.h:183
UINT uFlags
Definition: d3d10shader.h:225
UINT Size
Definition: d3d10shader.h:224
interface ID3D10ShaderReflectionConstantBuffer * LPD3D10SHADERREFLECTIONCONSTANTBUFFER
Definition: d3d10shader.h:316
interface ID3D10ShaderReflectionType ID3D10ShaderReflectionType
Definition: d3d10shader.h:277
UINT Size
Definition: d3d10shader.h:216
Definition: d3d10shader.h:211
D3D_SHADER_INPUT_TYPE D3D10_SHADER_INPUT_TYPE
Definition: d3d10shader.h:146
interface ID3D10ShaderReflection * LPD3D10SHADERREFLECTION
Definition: d3d10shader.h:335
D3D10_SHADER_VARIABLE_CLASS Class
Definition: d3d10shader.h:231
LPCSTR SemanticName
Definition: d3d10shader.h:255
LPCSTR WINAPI D3D10GetPixelShaderProfile(_In_ ID3D10Device *pDevice)
struct _D3D10_SHADER_VARIABLE_DESC D3D10_SHADER_VARIABLE_DESC
Definition: d3d10shader.h:240
BYTE Mask
Definition: d3d10shader.h:260
UINT DefCount
Definition: d3d10shader.h:191
LPCSTR Name
Definition: d3d10shader.h:213
D3D10_SHADER_VARIABLE_CLASS * LPD3D10_SHADER_VARIABLE_CLASS
Definition: d3d10shader.h:135
interface ID3D10ShaderReflectionVariable * LPD3D10SHADERREFLECTIONVARIABLE
Definition: d3d10shader.h:298
HRESULT WINAPI D3D10ReflectShader(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10ShaderReflection **ppReflector)
struct _D3D10_SHADER_DESC D3D10_SHADER_DESC
interface ID3D10ShaderReflectionType * LPD3D10SHADERREFLECTIONTYPE
Definition: d3d10shader.h:278
Definition: d3dcommon.h:344
enum _D3D_SHADER_VARIABLE_FLAGS D3D_SHADER_VARIABLE_FLAGS
D3D_SHADER_VARIABLE_CLASS D3D10_SHADER_VARIABLE_CLASS
Definition: d3d10shader.h:134
D3D_SHADER_INPUT_FLAGS D3D10_SHADER_INPUT_FLAGS
Definition: d3d10shader.h:143
Definition: d3d10shader.h:177
UINT GSMaxOutputVertexCount
Definition: d3d10shader.h:208
UINT Version
Definition: d3d10shader.h:179
HRESULT WINAPI D3D10GetOutputSignatureBlob(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppSignatureBlob)
D3D_NAME
Definition: d3dcommon.h:805
HRESULT WINAPI D3D10CompileShader(_In_reads_bytes_(SrcDataSize) LPCSTR pSrcData, SIZE_T SrcDataSize, _In_opt_ LPCSTR pFileName, _In_opt_ CONST D3D10_SHADER_MACRO *pDefines, _In_opt_ LPD3D10INCLUDE pInclude, LPCSTR pFunctionName, LPCSTR pProfile, UINT Flags, _Out_ ID3D10Blob **ppShader, _Out_opt_ ID3D10Blob **ppErrorMsgs)
UINT TempRegisterCount
Definition: d3d10shader.h:189
D3D10_SHADER_VARIABLE_TYPE Type
Definition: d3d10shader.h:232
UINT CutInstructionCount
Definition: d3d10shader.h:205
UINT BoundResources
Definition: d3d10shader.h:184
LPCSTR Name
Definition: d3d10shader.h:222
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
UINT TempArrayCount
Definition: d3d10shader.h:190
DEFINE_GUID(IID_ID3D10ShaderReflectionType, 0xc530ad7d, 0x9b16, 0x4395, 0xa9, 0x79, 0xba, 0x2e, 0xcf, 0xf8, 0x3a, 0xdd)
LPCSTR WINAPI D3D10GetVertexShaderProfile(_In_ ID3D10Device *pDevice)
interface ID3D10Blob ID3D10Blob
Definition: d3dcommon.h:44
UINT BindPoint
Definition: d3d10shader.h:244
BYTE ReadWriteMask
Definition: d3d10shader.h:262
LPCSTR WINAPI D3D10GetGeometryShaderProfile(_In_ ID3D10Device *pDevice)
struct _D3D10_SHADER_TYPE_DESC D3D10_SHADER_TYPE_DESC
UINT ArrayInstructionCount
Definition: d3d10shader.h:204
UINT uFlags
Definition: d3d10shader.h:247
HRESULT WINAPI D3D10GetShaderDebugInfo(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppDebugInfo)
interface ID3D10ShaderReflection ID3D10ShaderReflection
Definition: d3d10shader.h:332
LPCSTR Name
Definition: d3d10shader.h:242
UINT TextureNormalInstructions
Definition: d3d10shader.h:193
UINT NumSamples
Definition: d3d10shader.h:250
D3D_SHADER_VARIABLE_FLAGS D3D10_SHADER_VARIABLE_FLAGS
Definition: d3d10shader.h:137
interface ID3DInclude ID3D10Include
Definition: d3d10shader.h:164
UINT UintInstructionCount
Definition: d3d10shader.h:200
D3D_REGISTER_COMPONENT_TYPE
Definition: d3dcommon.h:887
Definition: d3d10shader.h:229
UINT Columns
Definition: d3d10shader.h:234
UINT Offset
Definition: d3d10shader.h:237
interface DECLSPEC_UUID("C530AD7D-9B16-4395-A979-BA2ECFF83ADD") ID3D10ShaderReflectionType
D3D10_NAME SystemValueType
Definition: d3d10shader.h:258
DECLARE_INTERFACE(ID3D10ShaderReflectionType)
Definition: d3d10shader.h:288
D3D10_SHADER_INPUT_FLAGS * LPD3D10_SHADER_INPUT_FLAGS
Definition: d3d10shader.h:144
D3D_REGISTER_COMPONENT_TYPE D3D10_REGISTER_COMPONENT_TYPE
Definition: d3d10shader.h:159
D3D_SHADER_MACRO D3D10_SHADER_MACRO
Definition: d3d10shader.h:130
UINT Variables
Definition: d3d10shader.h:215
UINT uFlags
Definition: d3d10shader.h:217
UINT SemanticIndex
Definition: d3d10shader.h:256
UINT Elements
Definition: d3d10shader.h:235
Definition: d3d10shader.h:253
D3D10_CBUFFER_TYPE Type
Definition: d3d10shader.h:214
struct _D3D10_SIGNATURE_PARAMETER_DESC D3D10_SIGNATURE_PARAMETER_DESC
D3D_SRV_DIMENSION
Definition: d3dcommon.h:294
Definition: d3d10shader.h:220
D3D_CBUFFER_TYPE D3D10_CBUFFER_TYPE
Definition: d3d10shader.h:152
D3D_NAME D3D10_NAME
Definition: d3d10shader.h:155
D3D10_SHADER_VARIABLE_TYPE * LPD3D10_SHADER_VARIABLE_TYPE
Definition: d3d10shader.h:141
UINT Flags
Definition: d3d10shader.h:181
LPCSTR Creator
Definition: d3d10shader.h:180
D3D10_SHADER_MACRO * LPD3D10_SHADER_MACRO
Definition: d3d10shader.h:131
enum _D3D_SHADER_INPUT_FLAGS D3D_SHADER_INPUT_FLAGS
interface ID3D10ShaderReflectionConstantBuffer ID3D10ShaderReflectionConstantBuffer
Definition: d3d10shader.h:313
interface ID3DInclude * LPD3D10INCLUDE
Definition: d3d10shader.h:165
D3D10_REGISTER_COMPONENT_TYPE ComponentType
Definition: d3d10shader.h:259
D3D10_SHADER_CBUFFER_FLAGS * LPD3D10_SHADER_CBUFFER_FLAGS
Definition: d3d10shader.h:150
interface ID3D10ShaderReflectionVariable ID3D10ShaderReflectionVariable
Definition: d3d10shader.h:295
UINT Rows
Definition: d3d10shader.h:233
UINT MacroInstructionCount
Definition: d3d10shader.h:203
enum _D3D_SHADER_INPUT_TYPE D3D_SHADER_INPUT_TYPE
struct _D3D10_SHADER_BUFFER_DESC D3D10_SHADER_BUFFER_DESC
interface ID3D10Device ID3D10Device
Definition: d3d10.h:203
UINT Members
Definition: d3d10shader.h:236
enum _D3D_CBUFFER_TYPE D3D_CBUFFER_TYPE
static INLINE ULONG Release(void *object)
Definition: dxgi_common.h:253
unsigned int BOOL
Definition: gctypes.h:51
UINT DynamicFlowControlCount
Definition: d3d10shader.h:202
enum _D3D_SHADER_CBUFFER_FLAGS D3D_SHADER_CBUFFER_FLAGS
D3D_SHADER_VARIABLE_TYPE D3D10_SHADER_VARIABLE_TYPE
Definition: d3d10shader.h:140
D3D_SHADER_CBUFFER_FLAGS D3D10_SHADER_CBUFFER_FLAGS
Definition: d3d10shader.h:149
enum _D3D_SHADER_VARIABLE_TYPE D3D_SHADER_VARIABLE_TYPE
D3D_PRIMITIVE_TOPOLOGY
Definition: d3dcommon.h:108
UINT TextureBiasInstructions
Definition: d3d10shader.h:196
HRESULT WINAPI D3D10GetInputSignatureBlob(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppSignatureBlob)
D3D_RESOURCE_RETURN_TYPE
Definition: d3dcommon.h:860
D3D10_SHADER_VARIABLE_FLAGS * LPD3D10_SHADER_VARIABLE_FLAGS
Definition: d3d10shader.h:138
D3D10_RESOURCE_RETURN_TYPE ReturnType
Definition: d3d10shader.h:248
Definition: glslang_tab.cpp:136
D3D_INCLUDE_TYPE D3D10_INCLUDE_TYPE
Definition: d3d10shader.h:161
struct _D3D10_SHADER_INPUT_BIND_DESC D3D10_SHADER_INPUT_BIND_DESC
UINT BindCount
Definition: d3d10shader.h:245
UINT TextureCompInstructions
Definition: d3d10shader.h:195
UINT IntInstructionCount
Definition: d3d10shader.h:199
UINT DclCount
Definition: d3d10shader.h:192
HRESULT WINAPI D3D10PreprocessShader(_In_reads_bytes_(SrcDataSize) LPCSTR pSrcData, SIZE_T SrcDataSize, _In_opt_ LPCSTR pFileName, _In_opt_ CONST D3D10_SHADER_MACRO *pDefines, _In_opt_ LPD3D10INCLUDE pInclude, _Out_ ID3D10Blob **ppShaderText, _Out_opt_ ID3D10Blob **ppErrorMsgs)
Definition: glslang_tab.cpp:133
UINT StartOffset
Definition: d3d10shader.h:223
UINT TextureGradientInstructions
Definition: d3d10shader.h:197
UINT OutputParameters
Definition: d3d10shader.h:186
UINT StaticFlowControlCount
Definition: d3d10shader.h:201
enum _D3D_INCLUDE_TYPE D3D_INCLUDE_TYPE
UINT EmitInstructionCount
Definition: d3d10shader.h:206
UINT InputParameters
Definition: d3d10shader.h:185
UINT FloatInstructionCount
Definition: d3d10shader.h:198
UINT Register
Definition: d3d10shader.h:257
UINT InstructionCount
Definition: d3d10shader.h:188
static const unsigned char ad[]
Definition: ccm.c:369
D3D10_SHADER_INPUT_TYPE Type
Definition: d3d10shader.h:243
D3D_RESOURCE_RETURN_TYPE D3D10_RESOURCE_RETURN_TYPE
Definition: d3d10shader.h:157
HRESULT WINAPI D3D10DisassembleShader(_In_reads_bytes_(BytecodeLength) CONST void *pShader, SIZE_T BytecodeLength, BOOL EnableColorCode, _In_opt_ LPCSTR pComments, _Out_ ID3D10Blob **ppDisassembly)
D3D10_PRIMITIVE_TOPOLOGY GSOutputTopology
Definition: d3d10shader.h:207
D3D10_SRV_DIMENSION Dimension
Definition: d3d10shader.h:249
LPVOID DefaultValue
Definition: d3d10shader.h:226
D3D10_CBUFFER_TYPE * LPD3D10_CBUFFER_TYPE
Definition: d3d10shader.h:153
UINT TextureLoadInstructions
Definition: d3d10shader.h:194
HRESULT WINAPI D3D10GetInputAndOutputSignatureBlob(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppSignatureBlob)
interface ID3DInclude ID3DInclude
Definition: d3dcommon.h:575