add distinction netween windows and linux for spir-v compiler (validator) run
This commit is contained in:
parent
823e7acc81
commit
2d5e64458d
@ -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/VertexShader.vert" ./vulkan/VertexShader.vert 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)
|
||||
execute_process(COMMAND sh runCompiler.sh WORKING_DIRECTORY ./vulkan)
|
||||
ENDIF()
|
||||
|
||||
# Vulkan
|
||||
IF (NOT DEFINED WINDOWS)
|
||||
|
Loading…
Reference in New Issue
Block a user