From 917c076226f9fcdc4aadf620e9d103d22f150b06 Mon Sep 17 00:00:00 2001 From: StarsX Date: Tue, 25 Oct 2022 09:00:01 +0800 Subject: [PATCH] Update XUSGRayTracing-EZ.cpp --- XUSGRayTracing-EZ/XUSGRayTracing-EZ.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/XUSGRayTracing-EZ/XUSGRayTracing-EZ.cpp b/XUSGRayTracing-EZ/XUSGRayTracing-EZ.cpp index beeee3c..fda819d 100644 --- a/XUSGRayTracing-EZ/XUSGRayTracing-EZ.cpp +++ b/XUSGRayTracing-EZ/XUSGRayTracing-EZ.cpp @@ -23,6 +23,7 @@ XUSG::EZ::ResourceView EZ::GetSRV(AccelerationStructure* pAS) resourceView.View = pResource->GetSRV(); resourceView.Subresources = { XUSG_BARRIER_ALL_SUBRESOURCES }; resourceView.DstState = XUSG::ResourceState::RAYTRACING_ACCELERATION_STRUCTURE; + resourceView.pCounter = nullptr; return resourceView; }