Renamed shader gles dir to essl.
This commit is contained in:
parent
69c5902453
commit
15349a45a9
examples
common
runtime
.gitignore
shaders/essl
cs_indirect.bincs_init_instances.bincs_update_instances.binfs_bump.binfs_callback.binfs_cubes.binfs_deferred_combine.binfs_deferred_debug.binfs_deferred_debug_line.binfs_deferred_geom.binfs_deferred_light.binfs_hdr_blur.binfs_hdr_bright.binfs_hdr_lum.binfs_hdr_lumavg.binfs_hdr_mesh.binfs_hdr_skybox.binfs_hdr_tonemap.binfs_ibl_mesh.binfs_ibl_skybox.binfs_instancing.binfs_mesh.binfs_oit.binfs_oit_wb.binfs_oit_wb_blit.binfs_oit_wb_separate.binfs_oit_wb_separate_blit.binfs_particle.binfs_picking_id.binfs_picking_shaded.binfs_raymarching.binfs_rsm_combine.binfs_rsm_gbuffer.binfs_rsm_lbuffer.binfs_rsm_shadow.binfs_shadowmaps_color_black.binfs_shadowmaps_color_lighting_esm.binfs_shadowmaps_color_lighting_esm_csm.binfs_shadowmaps_color_lighting_esm_linear.binfs_shadowmaps_color_lighting_esm_linear_csm.binfs_shadowmaps_color_lighting_esm_linear_omni.binfs_shadowmaps_color_lighting_esm_omni.binfs_shadowmaps_color_lighting_hard.binfs_shadowmaps_color_lighting_hard_csm.binfs_shadowmaps_color_lighting_hard_linear.binfs_shadowmaps_color_lighting_hard_linear_csm.binfs_shadowmaps_color_lighting_hard_linear_omni.binfs_shadowmaps_color_lighting_hard_omni.binfs_shadowmaps_color_lighting_pcf.binfs_shadowmaps_color_lighting_pcf_csm.binfs_shadowmaps_color_lighting_pcf_linear.binfs_shadowmaps_color_lighting_pcf_linear_csm.binfs_shadowmaps_color_lighting_pcf_linear_omni.binfs_shadowmaps_color_lighting_pcf_omni.binfs_shadowmaps_color_lighting_vsm.binfs_shadowmaps_color_lighting_vsm_csm.binfs_shadowmaps_color_lighting_vsm_linear.binfs_shadowmaps_color_lighting_vsm_linear_csm.binfs_shadowmaps_color_lighting_vsm_linear_omni.binfs_shadowmaps_color_lighting_vsm_omni.binfs_shadowmaps_color_texture.binfs_shadowmaps_hblur.binfs_shadowmaps_hblur_vsm.binfs_shadowmaps_packdepth.binfs_shadowmaps_packdepth_linear.binfs_shadowmaps_packdepth_vsm.binfs_shadowmaps_packdepth_vsm_linear.binfs_shadowmaps_texture.binfs_shadowmaps_unpackdepth.binfs_shadowmaps_unpackdepth_vsm.binfs_shadowmaps_vblur.binfs_shadowmaps_vblur_vsm.binfs_shadowvolume_color_lighting.binfs_shadowvolume_color_texture.binfs_shadowvolume_svbackblank.binfs_shadowvolume_svbackcolor.binfs_shadowvolume_svbacktex1.binfs_shadowvolume_svbacktex2.binfs_shadowvolume_svfrontblank.binfs_shadowvolume_svfrontcolor.binfs_shadowvolume_svfronttex1.binfs_shadowvolume_svfronttex2.binfs_shadowvolume_svside.binfs_shadowvolume_svsideblank.binfs_shadowvolume_svsidecolor.binfs_shadowvolume_svsidetex.binfs_shadowvolume_texture.binfs_shadowvolume_texture_lighting.binfs_sms_mesh.binfs_sms_mesh_pd.binfs_sms_shadow.binfs_sms_shadow_pd.binfs_stencil_color_black.binfs_stencil_color_lighting.binfs_stencil_color_texture.binfs_stencil_texture.binfs_stencil_texture_lighting.binfs_terrain.bin
@ -108,28 +108,22 @@ static bgfx::ShaderHandle loadShader(bx::FileReaderI* _reader, const char* _name
|
||||
{
|
||||
char filePath[512];
|
||||
|
||||
const char* shaderPath = "shaders/dx9/";
|
||||
const char* shaderPath = "???";
|
||||
|
||||
switch (bgfx::getRendererType() )
|
||||
{
|
||||
case bgfx::RendererType::Noop:
|
||||
case bgfx::RendererType::Direct3D9: shaderPath = "shaders/dx9/"; break;
|
||||
case bgfx::RendererType::Direct3D11:
|
||||
case bgfx::RendererType::Direct3D12:
|
||||
shaderPath = "shaders/dx11/";
|
||||
break;
|
||||
case bgfx::RendererType::Direct3D12: shaderPath = "shaders/dx11/"; break;
|
||||
case bgfx::RendererType::Gnm: shaderPath = "shaders/pssl/"; break;
|
||||
case bgfx::RendererType::Metal: shaderPath = "shaders/metal/"; break;
|
||||
case bgfx::RendererType::OpenGL: shaderPath = "shaders/glsl/"; break;
|
||||
case bgfx::RendererType::OpenGLES: shaderPath = "shaders/essl/"; break;
|
||||
case bgfx::RendererType::Vulkan: shaderPath = "shaders/spirv/"; break;
|
||||
|
||||
case bgfx::RendererType::OpenGL:
|
||||
shaderPath = "shaders/glsl/";
|
||||
break;
|
||||
|
||||
case bgfx::RendererType::Metal:
|
||||
shaderPath = "shaders/metal/";
|
||||
break;
|
||||
|
||||
case bgfx::RendererType::OpenGLES:
|
||||
shaderPath = "shaders/gles/";
|
||||
break;
|
||||
|
||||
default:
|
||||
case bgfx::RendererType::Count:
|
||||
BX_CHECK(false, "You should not be here!");
|
||||
break;
|
||||
}
|
||||
|
||||
|
2
examples/runtime/.gitignore
vendored
2
examples/runtime/.gitignore
vendored
@ -2,3 +2,5 @@
|
||||
*.so
|
||||
*.pdb
|
||||
imgui*
|
||||
shaders/pssl/*
|
||||
shaders/spirv/*
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user