aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-10-25 17:00:05 +0200
committerAndre Weissflog <floooh@gmail.com>2024-10-25 17:00:05 +0200
commit8bfb44333a4dbf56c8f84de3fbe78321b2a4d62f (patch)
treeb891b4006c8c377306706cb7de4cb122d6cf17e8
parentabc9ecec84078243ac5fa7f6a7202124cb6d532f (diff)
sokol_gfx.h: fix comment for sg_glsl_shader_uniform.offset
-rw-r--r--sokol_gfx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 62516977..7ad4d65e 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -2960,7 +2960,7 @@ typedef struct sg_shader_vertex_attr {
typedef struct sg_glsl_shader_uniform {
sg_uniform_type type;
- uint32_t offset; // offset into uniform block struct
+ uint32_t offset; // optional explicit offset into uniform block struct (if zero, the offset will be computed)
uint16_t array_count; // 0 for scalars, or >1 for arrays
const char* glsl_name; // glsl name binding is required on GL 4.1 and WebGL2
} sg_glsl_shader_uniform;