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:
3
manul/shaders/.gitignore
vendored
3
manul/shaders/.gitignore
vendored
@@ -2,4 +2,5 @@
|
||||
|
||||
!*.hlsl*
|
||||
!*.h
|
||||
!project.manul
|
||||
!project.manul
|
||||
!CMakeLists.txt
|
||||
10
manul/shaders/CMakeLists.txt
Normal file
10
manul/shaders/CMakeLists.txt
Normal 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})
|
||||
Reference in New Issue
Block a user