aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_debugtext.h
diff options
context:
space:
mode:
authorMatt Chiasson <mchiasson@gmail.com>2021-12-30 14:34:25 -0500
committerMathieu-Andre Chiasson <mchiasson@gmail.com>2021-12-30 14:38:46 -0500
commit40e2cf35feee47e5f6421acdb8c59ed865488efb (patch)
tree27ebad694e5b1955763c2796e240d0207f5b127b /util/sokol_debugtext.h
parent92f3c83c63456e43a5e03ebf761ff670088aea97 (diff)
fixed sokol_debugtext.h for SOKOL_WGPU backend
Just a minor typo and some code that probably didn't get updated during a past refactoring session.
Diffstat (limited to 'util/sokol_debugtext.h')
-rw-r--r--util/sokol_debugtext.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index 02f5d3b7..a87d9775 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -3307,7 +3307,7 @@ static const uint8_t _sdtx_vs_bytecode_wgpu[1648] = {
0x08,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x3e,0x00,0x03,0x00,
0x27,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0xfd,0x00,0x01,0x00,0x38,0x00,0x01,0x00,
};
-static const uint8_t _sdtx_vs_bytecode_wgpu[940] = {
+static const uint8_t _sdtx_fs_bytecode_wgpu[940] = {
0x03,0x02,0x23,0x07,0x00,0x00,0x01,0x00,0x08,0x00,0x08,0x00,0x1a,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x11,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x0b,0x00,0x06,0x00,
0x02,0x00,0x00,0x00,0x47,0x4c,0x53,0x4c,0x2e,0x73,0x74,0x64,0x2e,0x34,0x35,0x30,
@@ -3738,10 +3738,8 @@ static void _sdtx_setup_common(void) {
shd_desc.vs.bytecode = SG_RANGE(_sdtx_vs_bytecode_d3d11);
shd_desc.fs.bytecode = SG_RANGE(_sdtx_fs_bytecode_d3d11);
#elif defined(SOKOL_WGPU)
- shd_desc.vs.byte_code = _sdtx_vs_bytecode_wgpu;
- shd_desc.vs.byte_code_size = sizeof(_sdtx_vs_bytecode_wgpu);
- shd_desc.fs.byte_code = _sdtx_fs_bytecode_wgpu;
- shd_desc.fs.byte_code_size = sizeof(_sdtx_fs_bytecode_wgpu);
+ shd_desc.vs.bytecode = SG_RANGE(_sdtx_vs_bytecode_wgpu);
+ shd_desc.fs.bytecode = SG_RANGE(_sdtx_fs_bytecode_wgpu);
#else
shd_desc.vs.source = _sdtx_vs_src_dummy;
shd_desc.fs.source = _sdtx_fs_src_dummy;