From d87dd1dcfd0f13a6be1a2096d654f4d62044ad48 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 2 May 2023 20:31:01 -0700 Subject: gfx: fix vulkan validation errors. (#2861) * Fix VK validation errors when using vk1.2 features. * Fix vulkan validation errors. * Fix. --------- Co-authored-by: Yong He --- tools/gfx/debug-layer/debug-helper-functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/gfx/debug-layer/debug-helper-functions.cpp') diff --git a/tools/gfx/debug-layer/debug-helper-functions.cpp b/tools/gfx/debug-layer/debug-helper-functions.cpp index e7c4e0246..e75d0a3c3 100644 --- a/tools/gfx/debug-layer/debug-helper-functions.cpp +++ b/tools/gfx/debug-layer/debug-helper-functions.cpp @@ -53,14 +53,14 @@ void validateAccelerationStructureBuildInputs( case IAccelerationStructure::Kind::TopLevel: if (!buildInputs.instanceDescs) { - GFX_DIAGNOSE_ERROR("IAccelerationStructure::BuildInputs::instanceDescs cannot be null " + GFX_DIAGNOSE_WARNING("IAccelerationStructure::BuildInputs::instanceDescs is null " "when creating a top-level acceleration structure."); } break; case IAccelerationStructure::Kind::BottomLevel: if (!buildInputs.geometryDescs) { - GFX_DIAGNOSE_ERROR("IAccelerationStructure::BuildInputs::geometryDescs cannot be null " + GFX_DIAGNOSE_WARNING("IAccelerationStructure::BuildInputs::geometryDescs is null " "when creating a bottom-level acceleration structure."); } for (int i = 0; i < buildInputs.descCount; i++) -- cgit v1.2.3