Index buffer upload.

This commit is contained in:
Ben Vanik
2013-10-20 00:47:32 -07:00
parent 5a80c7b9c1
commit 92899739bd
2 changed files with 26 additions and 19 deletions

View File

@@ -508,6 +508,7 @@ uint32_t RingBufferWorker::ExecutePacket(PacketArgs& args) {
uint32_t endianness = index_size >> 29;
index_size &= 0x00FFFFFF;
bool index_32bit = (d1 >> 11) & 0x1;
index_size *= index_32bit ? 4 : 2;
driver_->DrawIndexBuffer(
(XE_GPU_PRIMITIVE_TYPE)prim_type,
index_32bit, index_count, index_base, index_size, endianness);