using IBAccess=IndexBufferAccess

This commit is contained in:
2024-04-27 00:05:25 +08:00
parent 6dba761a80
commit bbf94767fe
9 changed files with 19 additions and 21 deletions

View File

@@ -129,12 +129,12 @@ bool RenderCmdBuffer::BindDescriptorSets(Material *mtl)
return(true);
}
void RenderCmdBuffer::BindIBO(const IndexBufferAccess *ibd)
void RenderCmdBuffer::BindIBO(const IBAccess *iba)
{
vkCmdBindIndexBuffer( cmd_buf,
ibd->buffer->GetBuffer(),
ibd->offset,
VkIndexType(ibd->buffer->GetType()));
iba->buffer->GetBuffer(),
iba->offset,
VkIndexType(iba->buffer->GetType()));
}
bool RenderCmdBuffer::BindVBO(Renderable *ri)