Skip to content

Commit

Permalink
Remove dx9 shader compilation option
Browse files Browse the repository at this point in the history
  • Loading branch information
MRNIU authored and bwrsandman committed Dec 2, 2023
1 parent 26af75d commit 2f0e950
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
13 changes: 0 additions & 13 deletions cmake/bgfx/examples.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 1 addition & 2 deletions cmake/bgfx/generated/shader.cpp.in
Original file line number Diff line number Diff line change
@@ -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"
#include "@BGFX_DIR@/src/shader_spirv.cpp"
12 changes: 2 additions & 10 deletions cmake/bgfxToolUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2f0e950

Please sign in to comment.