1
0

add distinction netween windows and linux for spir-v compiler (validator) run

This commit is contained in:
Niklas Birk 2022-05-21 22:51:16 +02:00
parent 823e7acc81
commit 2d5e64458d

View File

@ -20,8 +20,14 @@ configure_file(./shaders/opengl/FragmentShader.glsl ./opengl/FragmentShader.glsl
configure_file(./shaders/vulkan/ComputeShader.comp ./vulkan/ComputeShader.comp COPYONLY) configure_file(./shaders/vulkan/ComputeShader.comp ./vulkan/ComputeShader.comp COPYONLY)
configure_file("shaders/vulkan/VertexShader.vert" ./vulkan/VertexShader.vert COPYONLY) configure_file("shaders/vulkan/VertexShader.vert" ./vulkan/VertexShader.vert COPYONLY)
configure_file("shaders/vulkan/FragmentShader.frag" ./vulkan/FragmentShader.frag COPYONLY) configure_file("shaders/vulkan/FragmentShader.frag" ./vulkan/FragmentShader.frag COPYONLY)
IF (DEFINED WINDOWS)
configure_file(./shaders/vulkan/runCompiler.bat ./vulkan/runCompiler.bat COPYONLY)
execute_process(COMMAND runCompiler.bat WORKING_DIRECTORY ./vulkan)
ELSE()
configure_file(shaders/vulkan/runCompiler.sh ./vulkan/runCompiler.sh COPYONLY) configure_file(shaders/vulkan/runCompiler.sh ./vulkan/runCompiler.sh COPYONLY)
execute_process(COMMAND sh runCompiler.sh WORKING_DIRECTORY ./vulkan) execute_process(COMMAND sh runCompiler.sh WORKING_DIRECTORY ./vulkan)
ENDIF()
# Vulkan # Vulkan
IF (NOT DEFINED WINDOWS) IF (NOT DEFINED WINDOWS)