allow binding uniform at set

This commit is contained in:
Greg Wells
2025-06-08 15:26:06 -04:00
parent df0cbb78d0
commit 93d81966e3
5 changed files with 7 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ void gnCommandDrawIndexedFn(gnCommandBufferHandle buffer, gnIndexType type, int
];
}
void gnCommandBindUniformFn(gnCommandBufferHandle buffer, gnUniform uniform) {
void gnCommandBindUniformFn(gnCommandBufferHandle buffer, gnUniform uniform, uint32_t set) {
id<MTLRenderCommandEncoder> encoder = (id<MTLRenderCommandEncoder>)buffer->commandBuffer->encoder;
if (uniform->uniform->type == GN_UNIFORM_BUFFER_DESCRIPTOR) {
gnBufferUniformInfo info = *(gnBufferUniformInfo*)uniform->uniform->data;