File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
## Updates
2
2
3
+ ### 15-Aug-2025
4
+
5
+ The sokol_gfx.h WebGPU backend has been fixed for the latest breaking changes in
6
+ webgpu.h (` WGPUShaderModuleWGSLDescriptor ` has been renamed to ` WGPUShaderSourceWGSL ` ).
7
+
3
8
### 03-Aug-2025
4
9
5
10
sokol_app.h: character input on Windows now transparently supports surrogate pairs,
Original file line number Diff line number Diff line change @@ -16904,14 +16904,14 @@ _SOKOL_PRIVATE _sg_wgpu_shader_func_t _sg_wgpu_create_shader_func(const sg_shade
16904
16904
_sg_clear(&res, sizeof(res));
16905
16905
_sg_strcpy(&res.entry, func->entry);
16906
16906
16907
- WGPUShaderModuleWGSLDescriptor wgpu_shdmod_wgsl_desc ;
16908
- _sg_clear(&wgpu_shdmod_wgsl_desc , sizeof(wgpu_shdmod_wgsl_desc ));
16909
- wgpu_shdmod_wgsl_desc .chain.sType = WGPUSType_ShaderSourceWGSL;
16910
- wgpu_shdmod_wgsl_desc .code = _sg_wgpu_stringview(func->source);
16907
+ WGPUShaderSourceWGSL wgpu_shdsrc_wgsl ;
16908
+ _sg_clear(&wgpu_shdsrc_wgsl , sizeof(wgpu_shdsrc_wgsl ));
16909
+ wgpu_shdsrc_wgsl .chain.sType = WGPUSType_ShaderSourceWGSL;
16910
+ wgpu_shdsrc_wgsl .code = _sg_wgpu_stringview(func->source);
16911
16911
16912
16912
WGPUShaderModuleDescriptor wgpu_shdmod_desc;
16913
16913
_sg_clear(&wgpu_shdmod_desc, sizeof(wgpu_shdmod_desc));
16914
- wgpu_shdmod_desc.nextInChain = &wgpu_shdmod_wgsl_desc .chain;
16914
+ wgpu_shdmod_desc.nextInChain = &wgpu_shdsrc_wgsl .chain;
16915
16915
wgpu_shdmod_desc.label = _sg_wgpu_stringview(label);
16916
16916
16917
16917
// NOTE: if compilation fails we won't actually find out in this call since
You can’t perform that action at this time.
0 commit comments