Fix WebGPU in non-Debug builds

This commit is contained in:
Wojtek Figat
2026-03-06 14:45:00 +01:00
parent 6fcc963cf6
commit b408a8ce21
6 changed files with 44 additions and 43 deletions

View File

@@ -519,11 +519,8 @@ bool ShadowsPass::setupResources()
{
psDesc = GPUPipelineState::Description::DefaultFullscreenTriangle;
psDesc.BlendMode.RenderTargetWriteMask = BlendingMode::ColorWrite::RG;
if (_depthBounds)
{
psDesc.DepthEnable = psDesc.DepthBoundsEnable = true;
psDesc.DepthWriteEnable = false;
}
psDesc.DepthWriteEnable = false;
psDesc.DepthEnable = psDesc.DepthBoundsEnable = _depthBounds;
if (_psShadowDir.Create(psDesc, shader, "PS_DirLight"))
return true;
}