c: Fix invalid storage buffer binding error w/ Vulkan

This commit is contained in:
2025-06-15 22:35:43 +10:00
parent 75e67ba630
commit 1ed13961e8

View File

@@ -359,7 +359,7 @@ static SDL_GPUShader* LoadShaderBlob(NeHeContext* restrict ctx,
.format = format,
.stage = type,
.num_samplers = (type == SDL_GPU_SHADERSTAGE_FRAGMENT) ? info->fragmentSamplers : 0,
.num_storage_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexUniforms : 0,
.num_storage_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexStorage : 0,
.num_uniform_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexUniforms : 0,
});
if (!shader)