Fixed issue #322.

This commit is contained in:
Branimir Karadžić 2015-04-05 11:24:59 -07:00
parent efed576e75
commit 9604a3f23b

View file

@ -14,7 +14,10 @@
# define D3D_SVF_USED 2 # define D3D_SVF_USED 2
#endif // D3D_SVF_USED #endif // D3D_SVF_USED
#ifndef IID_ID3D11ShaderReflection
static const GUID GUID_ID3D11ShaderReflection = { 0x0a233719, 0x3960, 0x4578, { 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1 } }; static const GUID GUID_ID3D11ShaderReflection = { 0x0a233719, 0x3960, 0x4578, { 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1 } };
# define IID_ID3D11ShaderReflection GUID_ID3D11ShaderReflection
#endif // IID_ID3D11ShaderReflection
struct RemapInputSemantic struct RemapInputSemantic
{ {
@ -209,7 +212,7 @@ bool compileHLSLShaderDx11(bx::CommandLine& _cmdLine, const std::string& _code,
ID3D11ShaderReflection* reflect = NULL; ID3D11ShaderReflection* reflect = NULL;
hr = D3DReflect(code->GetBufferPointer() hr = D3DReflect(code->GetBufferPointer()
, code->GetBufferSize() , code->GetBufferSize()
, GUID_ID3D11ShaderReflection , IID_ID3D11ShaderReflection
, (void**)&reflect , (void**)&reflect
); );
if (FAILED(hr) ) if (FAILED(hr) )