Asserting byte swapped vbs.

This commit is contained in:
Ben Vanik 2014-01-23 23:58:23 -08:00
parent 53b9ed5214
commit dfbbefa97f
2 changed files with 3 additions and 1 deletions

View File

@ -949,6 +949,8 @@ int D3D11GraphicsDriver::PrepareVertexBuffer(Shader::vtx_buffer_desc_t& desc) {
XEASSERT(fetch->type == 0x3);
XEASSERTNOTZERO(fetch->size);
XEASSERT(fetch->endian == 0x2);
ID3D11Buffer* buffer = 0;
D3D11_BUFFER_DESC buffer_desc;
xe_zero_struct(&buffer_desc, sizeof(buffer_desc));

View File

@ -127,7 +127,7 @@ XEPACKEDUNION(xe_gpu_vertex_fetch_t, {
XEPACKEDSTRUCTANONYMOUS({
uint32_t type : 2;
uint32_t address : 30;
uint32_t unk0 : 2;
uint32_t endian : 2;
uint32_t size : 24;
uint32_t unk1 : 6;
});