change GN_IMAGE_DESCRIPTOR to GN_COMBINED_IMAGE_SAMPLER_DESCRIPTOR

This commit is contained in:
Gregory Wells
2025-07-21 10:51:55 -04:00
parent 6ac58529db
commit 46d1c2e802
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ gnUniform* allocateMetalUniforms(gnUniformPool pool, const gnUniformAllocationIn
for (int c = 0; c < allocInfo.sets[i].uniformBindingCount; c++) {
if (allocInfo.sets[i].uniformBindings[c].type == GN_IMAGE_DESCRIPTOR) {
if (allocInfo.sets[i].uniformBindings[c].type == GN_COMBINED_IMAGE_SAMPLER_DESCRIPTOR) {
MTLArgumentDescriptor* textureDescriptor = [[MTLArgumentDescriptor alloc] init];
textureDescriptor.dataType = MTLDataTypeTexture;
textureDescriptor.index = 0;