Skip to content

Commit 3493041

Browse files
committed
WebGPU: Don't forget to call DvpValidateCommittedShaderResources on MultiDraw early return
1 parent b3e92e3 commit 3493041

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Graphics/GraphicsEngineWebGPU/src/DeviceContextWebGPUImpl.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,12 @@ void DeviceContextWebGPUImpl::MultiDraw(const MultiDrawAttribs& Attribs)
413413
TDeviceContextBase::MultiDraw(Attribs, 0);
414414

415415
if (Attribs.NumInstances == 0)
416+
{
417+
#ifdef DILIGENT_DEVELOPMENT
418+
DvpValidateCommittedShaderResources();
419+
#endif
416420
return;
421+
}
417422

418423
WGPURenderPassEncoder wgpuRenderCmdEncoder = PrepareForDraw(Attribs.Flags);
419424
for (Uint32 DrawIdx = 0; DrawIdx < Attribs.DrawCount; ++DrawIdx)

0 commit comments

Comments
 (0)