From 1ed13961e804d3b1726df8046a879f40b7e9f788 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Sun, 15 Jun 2025 22:35:43 +1000 Subject: [PATCH] c: Fix invalid storage buffer binding error w/ Vulkan --- src/c/nehe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/nehe.c b/src/c/nehe.c index 0ca8d67..40974b5 100644 --- a/src/c/nehe.c +++ b/src/c/nehe.c @@ -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)