Match spv and api version for Vulkan test (#2536)

- Vulkan api version is 1_1, so target env for shaders should be
vulkan1.1
This commit is contained in:
Daniel Crawley
2025-10-28 11:53:54 -04:00
committed by GitHub
parent 1a4862e84e
commit 39f961b71f

View File

@@ -17,7 +17,7 @@ else()
add_custom_command(
OUTPUT ${VULKAN_TEST_RESOURCES}/buffer.spv
COMMAND ${Vulkan_glslang_binary}
--target-env vulkan1.0
--target-env vulkan1.1
-o ${VULKAN_TEST_RESOURCES}/buffer.spv
${CMAKE_CURRENT_SOURCE_DIR}/buffer.comp
DEPENDS buffer.comp
@@ -35,7 +35,7 @@ else()
add_custom_command(
OUTPUT ${VULKAN_TEST_RESOURCES}/image2D_${GLSL_FORMAT}.spv
COMMAND ${Vulkan_glslang_binary}
--target-env vulkan1.0
--target-env vulkan1.1
-o ${VULKAN_TEST_RESOURCES}/image2D_${GLSL_FORMAT}.spv
${CMAKE_CURRENT_BINARY_DIR}/image2D_${GLSL_FORMAT}.comp
DEPENDS image2D_${GLSL_FORMAT}.comp