diff --git a/cmake/bgfx/examples.cmake b/cmake/bgfx/examples.cmake index a0c1aae..fcb6185 100755 --- a/cmake/bgfx/examples.cmake +++ b/cmake/bgfx/examples.cmake @@ -33,19 +33,6 @@ function(add_bgfx_shader FILE FOLDER) set(OUTPUTS_PRETTY "") if(WIN32) - # dx9 - if(NOT "${TYPE}" STREQUAL "COMPUTE") - set(DX9_OUTPUT ${BGFX_DIR}/examples/runtime/shaders/dx9/${FILENAME}.bin) - _bgfx_shaderc_parse( - DX9 ${COMMON} WINDOWS - PROFILE s_3_0 - O 3 - OUTPUT ${DX9_OUTPUT} - ) - list(APPEND OUTPUTS "DX9") - set(OUTPUTS_PRETTY "${OUTPUTS_PRETTY}DX9, ") - endif() - # dx11 set(DX11_OUTPUT ${BGFX_DIR}/examples/runtime/shaders/dx11/${FILENAME}.bin) if(NOT "${TYPE}" STREQUAL "COMPUTE") diff --git a/cmake/bgfx/generated/shader.cpp.in b/cmake/bgfx/generated/shader.cpp.in index 9260c65..bbfce0d 100644 --- a/cmake/bgfx/generated/shader.cpp.in +++ b/cmake/bgfx/generated/shader.cpp.in @@ -1,4 +1,3 @@ #include "@BGFX_DIR@/src/shader.cpp" -#include "@BGFX_DIR@/src/shader_dx9bc.cpp" #include "@BGFX_DIR@/src/shader_dxbc.cpp" -#include "@BGFX_DIR@/src/shader_spirv.cpp" \ No newline at end of file +#include "@BGFX_DIR@/src/shader_spirv.cpp" diff --git a/cmake/bgfxToolUtils.cmake b/cmake/bgfxToolUtils.cmake index 79c64e6..0c05556 100644 --- a/cmake/bgfxToolUtils.cmake +++ b/cmake/bgfxToolUtils.cmake @@ -581,16 +581,8 @@ if(TARGET bgfx::shaderc) OR CYGWIN ) set(PLATFORM WINDOWS) - if(ARGS_TYPE STREQUAL "VERTEX" OR ARGS_TYPE STREQUAL "FRAGMENT") - list(APPEND PROFILES s_3_0) - list(APPEND PROFILES s_4_0) - list(APPEND PROFILES s_5_0) - elseif(ARGS_TYPE STREQUAL "COMPUTE") - list(APPEND PROFILES s_4_0) - list(APPEND PROFILES s_5_0) - else() - message(error "shaderc: Unsupported type") - endif() + list(APPEND PROFILES s_4_0) + list(APPEND PROFILES s_5_0) else() message(error "shaderc: Unsupported platform") endif()