mirror of
https://github.com/ScrelliCopter/NeHe-SDL_GPU.git
synced 2025-06-19 21:49:17 +10:00
c: Fix invalid storage buffer binding error w/ Vulkan
This commit is contained in:
@@ -359,7 +359,7 @@ static SDL_GPUShader* LoadShaderBlob(NeHeContext* restrict ctx,
|
|||||||
.format = format,
|
.format = format,
|
||||||
.stage = type,
|
.stage = type,
|
||||||
.num_samplers = (type == SDL_GPU_SHADERSTAGE_FRAGMENT) ? info->fragmentSamplers : 0,
|
.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,
|
.num_uniform_buffers = (type == SDL_GPU_SHADERSTAGE_VERTEX) ? info->vertexUniforms : 0,
|
||||||
});
|
});
|
||||||
if (!shader)
|
if (!shader)
|
||||||
|
|||||||
Reference in New Issue
Block a user