mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Added D3DXDisassembleShader definition for MinGW.
This commit is contained in:
parent
dbca022e31
commit
2d426d0e50
1 changed files with 6 additions and 2 deletions
|
@ -14,6 +14,12 @@ BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG_GCC("-Wundef");
|
|||
#include <d3dx9.h>
|
||||
BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
|
||||
#if defined(__MINGW32__)
|
||||
# ifndef D3DXDisassembleShader
|
||||
extern "C" HRESULT WINAPI D3DXDisassembleShader(CONST DWORD* pShader, BOOL EnableColorCode, LPCSTR pComments, LPD3DXBUFFER* ppDisassembly);
|
||||
# endif // D3DXDisassembleShader
|
||||
#endif // !defined(__MINGW32__)
|
||||
|
||||
struct UniformRemapDx9
|
||||
{
|
||||
UniformType::Enum id;
|
||||
|
@ -250,7 +256,6 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
|
|||
uint8_t nul = 0;
|
||||
bx::write(_writer, nul);
|
||||
|
||||
#if !defined(__MINGW32__)
|
||||
if (_cmdLine.hasArg('\0', "disasm") )
|
||||
{
|
||||
LPD3DXBUFFER disasm;
|
||||
|
@ -269,7 +274,6 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b
|
|||
disasm->Release();
|
||||
}
|
||||
}
|
||||
#endif // !defined(__MINGW32__)
|
||||
|
||||
if (NULL != code)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue