diff --git a/tools/shaderc/shaderc_dx11.cpp b/tools/shaderc/shaderc_dx11.cpp index 23075800..4dcbb75b 100644 --- a/tools/shaderc/shaderc_dx11.cpp +++ b/tools/shaderc/shaderc_dx11.cpp @@ -14,7 +14,10 @@ # define D3D_SVF_USED 2 #endif // D3D_SVF_USED +#ifndef IID_ID3D11ShaderReflection 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 { @@ -209,7 +212,7 @@ bool compileHLSLShaderDx11(bx::CommandLine& _cmdLine, const std::string& _code, ID3D11ShaderReflection* reflect = NULL; hr = D3DReflect(code->GetBufferPointer() , code->GetBufferSize() - , GUID_ID3D11ShaderReflection + , IID_ID3D11ShaderReflection , (void**)&reflect ); if (FAILED(hr) )