diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-10-15 17:33:33 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2024-10-15 17:33:33 +0200 |
| commit | 108006357e7d7dbdc239d60a39747edf01c8dafd (patch) | |
| tree | a32638589a73634a3ea51be68525d65fe55d7c2e | |
| parent | 1b62020df6379ed89175dffcfd6afd58cd9ac0ab (diff) | |
sokol_gfx.h: fix msvc warnings
| -rw-r--r-- | sokol_gfx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index 8aceb5ea..2f9d732d 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -16611,7 +16611,7 @@ _SOKOL_PRIVATE bool _sg_validate_shader_desc(const sg_shader_desc* desc) { #endif } - uint64_t img_slot_mask = 0; + uint32_t img_slot_mask = 0; for (size_t img_idx = 0; img_idx < SG_MAX_IMAGE_BINDSLOTS; img_idx++) { const sg_shader_image* img_desc = &desc->images[img_idx]; if (img_desc->stage == SG_SHADERSTAGE_NONE) { @@ -16655,8 +16655,8 @@ _SOKOL_PRIVATE bool _sg_validate_shader_desc(const sg_shader_desc* desc) { #endif } - uint64_t ref_img_slot_mask = 0; - uint64_t ref_smp_slot_mask = 0; + uint32_t ref_img_slot_mask = 0; + uint32_t ref_smp_slot_mask = 0; for (size_t img_smp_idx = 0; img_smp_idx < SG_MAX_IMAGE_SAMPLER_PAIRS; img_smp_idx++) { const sg_shader_image_sampler_pair* img_smp_desc = &desc->image_sampler_pairs[img_smp_idx]; if (img_smp_desc->stage == SG_SHADERSTAGE_NONE) { |