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; }