aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_debugtext.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2020-06-21 19:24:09 +0200
committerAndre Weissflog <floooh@gmail.com>2020-06-21 19:24:09 +0200
commit74ef01166c1b76c2e189a6a052df0feaf9a168e3 (patch)
tree27ee5f4ae7ebf157d3174dca158a2ecd84f17f40 /util/sokol_debugtext.h
parentf1dd65ddb1028df98eedc6eed7ae5aaf937abfa9 (diff)
sokol_gl.h, sokol_debugtext.h, metal: minor code cleanup in shader creation
Diffstat (limited to 'util/sokol_debugtext.h')
-rw-r--r--util/sokol_debugtext.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index 7f50816a..3206c46b 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -3671,28 +3671,24 @@ static void _sdtx_setup_common(void) {
shd_desc.vs.source = _sdtx_vs_src_gles2;
shd_desc.fs.source = _sdtx_fs_src_gles2;
#elif defined(SOKOL_METAL)
+ shd_desc.vs.entry = "main0";
+ shd_desc.fs.entry = "main0";
switch (sg_query_backend()) {
case SG_BACKEND_METAL_MACOS:
shd_desc.vs.byte_code = _sdtx_vs_bytecode_metal_macos;
shd_desc.vs.byte_code_size = sizeof(_sdtx_vs_bytecode_metal_macos);
- shd_desc.vs.entry = "main0";
shd_desc.fs.byte_code = _sdtx_fs_bytecode_metal_macos;
shd_desc.fs.byte_code_size = sizeof(_sdtx_fs_bytecode_metal_macos);
- shd_desc.fs.entry = "main0";
break;
case SG_BACKEND_METAL_IOS:
shd_desc.vs.byte_code = _sdtx_vs_bytecode_metal_ios;
shd_desc.vs.byte_code_size = sizeof(_sdtx_vs_bytecode_metal_ios);
- shd_desc.vs.entry = "main0";
shd_desc.fs.byte_code = _sdtx_fs_bytecode_metal_ios;
shd_desc.fs.byte_code_size = sizeof(_sdtx_fs_bytecode_metal_ios);
- shd_desc.fs.entry = "main0";
break;
default:
shd_desc.vs.source = _sdtx_vs_src_metal_sim;
- shd_desc.vs.entry = "main0";
shd_desc.fs.source = _sdtx_fs_src_metal_sim;
- shd_desc.fs.entry = "main0";
break;
}
#elif defined(SOKOL_D3D11)