summaryrefslogtreecommitdiff
path: root/tools/render-test/shader-renderer-util.h
diff options
context:
space:
mode:
authorGangzheng Tong <tonggangzheng@gmail.com>2025-06-18 10:38:31 -0700
committerGitHub <noreply@github.com>2025-06-18 17:38:31 +0000
commit3822f9243f7b80be4c47318cf3d0b8d9800e67dd (patch)
tree2a0f92310625b7d83fccaef205087579f292281a /tools/render-test/shader-renderer-util.h
parent63ca2325d7f6afdbf07e8f00975fab01ec516302 (diff)
Fix additional VVL violations (#7377)
* fix: add sampleCount and mipMaps to st2DMS_f32v4 Fix VUID-VkImageCreateInfo-samples-02257: The Vulkan spec states: If an OpTypeImage has an MS operand 1, its bound image must not have been created with VkImageCreateInfo::samples as VK_SAMPLE_COUNT_1_BIT * Fix VUID-VkShaderModuleCreateInfo-pCode-08740 Rename VK_KHR_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME to VK_NV_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME * fix: add sampleCount and mipMaps to st2DMS_f32v4 Fix VUID-VkImageCreateInfo-samples-02257: The Vulkan spec states: If an OpTypeImage has an MS operand 1, its bound image must not have been created with VkImageCreateInfo::samples as VK_SAMPLE_COUNT_1_BIT * Fix VUID-VkShaderModuleCreateInfo-pCode-08740 Rename VK_KHR_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME to VK_NV_COMPUTE_SHADER_DERIVATIVES_EXTENSION_NAME * Fix VUID-vkCmdDispatch-None-06479 Use correct format for combined depth texture. * Fix VUID-vkCmdDispatch-format-07753 by setting format Parse filtering mode for sampler because the RGBA8* formats do not support linear filtering * Create MS texture type for sample count > 1 * Use different texture formats for depth compare and gather ops * Use clearTexture for init the data for MS textures
Diffstat (limited to 'tools/render-test/shader-renderer-util.h')
-rw-r--r--tools/render-test/shader-renderer-util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/render-test/shader-renderer-util.h b/tools/render-test/shader-renderer-util.h
index bf0569988..257b41039 100644
--- a/tools/render-test/shader-renderer-util.h
+++ b/tools/render-test/shader-renderer-util.h
@@ -39,6 +39,12 @@ struct ShaderRendererUtil
const void* initData,
IDevice* device,
ComPtr<IBuffer>& bufferOut);
+
+ /// Clear a texture with the specified content
+ static Slang::Result clearTexture(
+ ITexture* texture,
+ InputTextureContent content,
+ IDevice* device);
};
} // namespace renderer_test