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

@@ -76,11 +76,8 @@ bool LightPass::setupResources()
psDesc = GPUPipelineState::Description::DefaultFullscreenTriangle;
psDesc.BlendMode = BlendingMode::Add;
psDesc.BlendMode.RenderTargetWriteMask = BlendingMode::ColorWrite::RGB;
if (_depthBounds)
{
psDesc.DepthEnable = psDesc.DepthBoundsEnable = true;
psDesc.DepthWriteEnable = false;
}
psDesc.DepthWriteEnable = false;
psDesc.DepthEnable = psDesc.DepthBoundsEnable = _depthBounds;
if (_psLightDir.Create(psDesc, shader, "PS_Directional"))
return true;
}