Removed D3D9. (#3191)

This commit is contained in:
Бранимир Караџић
2023-11-03 21:15:42 -07:00
committed by GitHub
parent 6a914f5b13
commit f14c14a485
333 changed files with 8957 additions and 23428 deletions

View File

@@ -5,7 +5,6 @@
#include "bgfx_p.h"
#include "shader_dxbc.h"
#include "shader_dx9bc.h"
#include "shader_spirv.h"
namespace bgfx
@@ -128,19 +127,6 @@ namespace bgfx
return true;
}
static bool printAsm(uint32_t _offset, const Dx9bcInstruction& _instruction, void* _userData)
{
BX_UNUSED(_offset);
bx::WriterI* writer = reinterpret_cast<bx::WriterI*>(_userData);
char temp[512];
toString(temp, sizeof(temp), _instruction);
bx::Error err;
bx::write(writer, temp, (int32_t)bx::strLen(temp), &err);
bx::write(writer, '\n', &err);
return true;
}
static bool printAsm(uint32_t _offset, const SpvInstruction& _instruction, void* _userData)
{
BX_UNUSED(_offset);
@@ -173,9 +159,8 @@ namespace bgfx
}
else
{
Dx9bc dx9bc;
read(_reader, dx9bc, _err);
parse(dx9bc.shader, printAsm, _writer, _err);
BX_TRACE("Unrecognized shader binary format (magic: 0x%08x)!", magic);
BX_ERROR_SET(_err, kShaderInvalidHeader, "Failed to read shader binary. Invalid magic number.");
}
}