diff options
| author | Yong He <yonghe@outlook.com> | 2021-12-06 14:50:42 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-06 14:50:42 -0800 |
| commit | ef4ee0b2d42b1fe9ce36c67526cf853343d98ea0 (patch) | |
| tree | 15d4c441cb407a4f4d39318f525e471a98ff1d87 /tools/gfx/d3d12/render-d3d12.cpp | |
| parent | 5cbd61774c6ef2209fa0afc79b1dbbb68514346b (diff) | |
Fix shader-toy example. (#2047)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/d3d12/render-d3d12.cpp')
| -rw-r--r-- | tools/gfx/d3d12/render-d3d12.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp index 5a0478f68..e8dadfbbb 100644 --- a/tools/gfx/d3d12/render-d3d12.cpp +++ b/tools/gfx/d3d12/render-d3d12.cpp @@ -5967,6 +5967,7 @@ Result D3D12Device::createGraphicsPipelineState(const GraphicsPipelineStateDesc& D3D12_BLEND_DESC& blend = psoDesc.BlendState; blend.IndependentBlendEnable = FALSE; blend.AlphaToCoverageEnable = desc.blend.alphaToCoverageEnable ? TRUE : FALSE; + blend.RenderTarget[0].RenderTargetWriteMask = (uint8_t)RenderTargetWriteMask::EnableAll; for (uint32_t i = 0; i < desc.blend.targetCount; i++) { auto& d3dDesc = blend.RenderTarget[i]; |
