mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed issue #322.
This commit is contained in:
parent
efed576e75
commit
9604a3f23b
1 changed files with 4 additions and 1 deletions
|
@ -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) )
|
||||||
|
|
Loading…
Reference in a new issue