Skip to content

Commit fec56c9

Browse files
committed
remove shadercross binaries
1 parent 2727054 commit fec56c9

File tree

10 files changed

+324
-325
lines changed

10 files changed

+324
-325
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ add_executable(rtiow WIN32 main.c shader.c)
1717
set_target_properties(rtiow PROPERTIES C_STANDARD 11)
1818
target_link_libraries(rtiow PUBLIC SDL3::SDL3)
1919

20+
find_program(SHADERCROSS shadercross)
2021
function(add_shader FILE)
2122
set(DEPENDS ${ARGN})
2223
set(HLSL ${CMAKE_SOURCE_DIR}/${FILE})
2324
set(SPV ${CMAKE_SOURCE_DIR}/bin/${FILE}.spv)
2425
set(DXIL ${CMAKE_SOURCE_DIR}/bin/${FILE}.dxil)
2526
set(MSL ${CMAKE_SOURCE_DIR}/bin/${FILE}.msl)
2627
set(JSON ${CMAKE_SOURCE_DIR}/bin/${FILE}.json)
27-
if(MSVC)
28-
set(SHADERCROSS SDL_shadercross/msvc/shadercross.exe)
29-
endif()
3028
function(compile OUTPUT)
3129
add_custom_command(
3230
OUTPUT ${OUTPUT}
@@ -41,7 +39,7 @@ function(add_shader FILE)
4139
add_custom_target(${NAME} DEPENDS ${OUTPUT})
4240
add_dependencies(rtiow ${NAME})
4341
endfunction()
44-
if (MSVC)
42+
if (EXISTS ${SHADERCROSS})
4543
compile(${SPV})
4644
compile(${DXIL})
4745
compile(${MSL})

SDL_shadercross/msvc/SDL3.dll

-5.64 MB
Binary file not shown.
-31 KB
Binary file not shown.
-17.3 MB
Binary file not shown.

SDL_shadercross/msvc/dxil.dll

-1.45 MB
Binary file not shown.
-21 KB
Binary file not shown.
-1.91 MB
Binary file not shown.

bin/shader.comp.dxil

0 Bytes
Binary file not shown.

bin/shader.comp.msl

Lines changed: 322 additions & 321 deletions
Large diffs are not rendered by default.

bin/shader.comp.spv

20 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)