From e6035a66e48225e3e6072cde5170a9cbb78db3b0 Mon Sep 17 00:00:00 2001
From: cosmonaut <[EMAIL REDACTED]>
Date: Sun, 27 Oct 2024 12:43:17 -0700
Subject: [PATCH] fix another one
---
src/SDL_gpu_shadercross.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/SDL_gpu_shadercross.c b/src/SDL_gpu_shadercross.c
index 6101abd..b0dad80 100644
--- a/src/SDL_gpu_shadercross.c
+++ b/src/SDL_gpu_shadercross.c
@@ -996,7 +996,7 @@ static SPIRVTranspileContext *SDL_ShaderCross_INTERNAL_TranspileFromSPIRV(
}
// Determine readonly vs writeonly resources
- for (int i = 0; i < num_storage_textures; i += 1) {
+ for (size_t i = 0; i < num_storage_textures; i += 1) {
if (!SDL_spvc_compiler_has_decoration(compiler, reflected_resources[i].id, SpvDecorationDescriptorSet) || !SDL_spvc_compiler_has_decoration(compiler, reflected_resources[i].id, SpvDecorationBinding)) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%s", "Shader resources must have descriptor set and binding index!");
SDL_spvc_context_destroy(context);