16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 04:39:18 +02:00

add shader compilation pipeline using dxc compiler

This commit is contained in:
WLs50
2025-04-05 13:30:13 +02:00
parent 85435c74bf
commit 900133089b
8 changed files with 447 additions and 1 deletions

View File

@@ -2,4 +2,5 @@
!*.hlsl*
!*.h
!project.manul
!project.manul
!CMakeLists.txt

View File

@@ -0,0 +1,10 @@
file(GLOB_RECURSE src "*.hlsl*" "*.h")
list(APPEND src "project.manul")
get_target_property(dxil_path MaShaderCompiler dxil_path)
add_custom_target(
${LIBMANUL_NAME}_shaders
MaShaderCompiler "${dxil_path}" "${CMAKE_CURRENT_SOURCE_DIR}/project.manul" "$<TARGET_FILE_DIR:${PROJECT_NAME}>/shaders"
DEPENDS ${src})