aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-04-20 17:24:37 +0200
committerAndre Weissflog <floooh@gmail.com>2025-04-20 17:24:37 +0200
commit06e08a8dc4a6837b41fd33fe614f76dac0591c30 (patch)
tree09f0a3f2d632f48768f18d8dfda4447868741eec
parent2856595aac70a154160fd8ed823b202767a444cf (diff)
sokol_gfx.h: storage textures wip
-rw-r--r--sokol_gfx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index f84dd91a..832b5e2a 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -1720,7 +1720,7 @@
- Likewise, the following sokol-gfx pixel formats are not supported in WebGPU:
R16, R16SN, RG16, RG16SN, RGBA16, RGBA16SN.
Unlike unsupported vertex formats, unsupported pixel formats can be queried
- in cross-backend code via sg_query_pixel_format() though.
+ in cross-backend code via sg_query_pixelformat() though.
- The Emscripten WebGPU shim currently doesn't support the Closure minification
post-link-step (e.g. currently the emcc argument '--closure 1' or '--closure 2'
@@ -3342,6 +3342,7 @@ typedef struct sg_shader_storage_buffer {
typedef struct sg_shader_storage_image {
sg_shader_stage stage; // must be NONE or COMPUTE
+ sg_image_type image_type;
sg_pixel_format access_format; // shader-access pixel format
bool writeonly; // false means read/write access
uint8_t hlsl_register_u_n; // HLSL register(un) bind slot