mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): clean up draw calls across gll and d3d backends
This commit is contained in:
parent
d869c6d898
commit
02ddaa106f
7 changed files with 20 additions and 20 deletions
|
|
@ -357,7 +357,7 @@ void CGxDeviceD3d::DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2) {
|
|||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t count) {
|
||||
void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t indexed) {
|
||||
if (!this->m_context || this->intF5C) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -369,7 +369,7 @@ void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t count) {
|
|||
baseIndex = this->m_primVertexFormatBuf[0]->m_index / this->m_primVertexFormatBuf[0]->m_itemSize;
|
||||
}
|
||||
|
||||
if (count) {
|
||||
if (indexed) {
|
||||
this->m_d3dDevice->DrawIndexedPrimitive(
|
||||
CGxDeviceD3d::s_primitiveConversion[batch->m_primType],
|
||||
baseIndex,
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ class CGxDeviceD3d : public CGxDevice {
|
|||
virtual void DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2);
|
||||
virtual void CapsWindowSize(CRect& dst);
|
||||
virtual void CapsWindowSizeInScreenCoords(CRect& dst);
|
||||
virtual void Draw(CGxBatch* batch, int32_t count);
|
||||
virtual void Draw(CGxBatch* batch, int32_t indexed);
|
||||
virtual void PoolSizeSet(CGxPool* pool, uint32_t size);
|
||||
virtual char* BufLock(CGxBuf* buf);
|
||||
virtual int32_t BufUnlock(CGxBuf* buf, uint32_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue