From abf7e3bd90e34bcacd07107f592abe5d4f31eba5 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 24 Nov 2020 16:44:08 +0000 Subject: [PATCH] Only declare half type if shaderFloat16 is supported * Without this, the 16-bit storage only refers to ints (if that feature is available). --- util/test/demos/vk/vk_shader_debug_zoo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/test/demos/vk/vk_shader_debug_zoo.cpp b/util/test/demos/vk/vk_shader_debug_zoo.cpp index d94fa23fc..2b9a73999 100644 --- a/util/test/demos/vk/vk_shader_debug_zoo.cpp +++ b/util/test/demos/vk/vk_shader_debug_zoo.cpp @@ -3105,9 +3105,7 @@ OpBranch %_bottomlabel capabilities += "OpCapability Float64\n"; } - if(float16Int8Features.shaderFloat16 || storage16Features.storageBuffer16BitAccess || - storage16Features.uniformAndStorageBuffer16BitAccess || - storage16Features.storagePushConstant16 || storage16Features.storageInputOutput16) + if(float16Int8Features.shaderFloat16) { typesConstants += "%half = OpTypeFloat 16\n"; capabilities += "OpCapability Float16\n";