You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Engine/Source/Volt-Renderer/Private/Volt-Renderer/MeshPassProcessorsBindless/MeshPassProcessorBindless.cpp
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,10 @@ namespace Volt
48
48
{
49
49
VT_PROFILE_FUNCTION();
50
50
51
+
// Reset the resources tied to the lifetime of the RenderGraph.
52
+
m_perDrawCommandInstancesBuffer = nullptr;
53
+
m_rhiDrawCommandsCopy = nullptr;
54
+
51
55
if (m_meshDrawCommands.empty())
52
56
{
53
57
return;
@@ -144,6 +148,12 @@ namespace Volt
144
148
{
145
149
VT_PROFILE_FUNCTION();
146
150
151
+
// Processor has no commands.
152
+
if (m_meshDrawCommands.empty())
153
+
{
154
+
return;
155
+
}
156
+
147
157
// Use RHIDrawCommandSceneInstanceOffsets to pass in as per instance value, which contains the start offset of the scene instances.
0 commit comments