Skip to content

Commit 130ac15

Browse files
committed
Fix MTLLoader ICPURenderPassIndependantPipeline for Vulkan
1 parent 695243a commit 130ac15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nbl/asset/interchange/CGraphicsPipelineLoaderMTL.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ core::smart_refctd_ptr<ICPURenderpassIndependentPipeline> CGraphicsPipelineLoade
179179
{
180180
SBlendParams blendParams;
181181

182+
for (size_t i = 0ull; i < SBlendParams::MAX_COLOR_ATTACHMENT_COUNT; i++)
183+
blendParams.blendParams[i].attachmentEnabled = (i == 0ull);
184+
182185
std::string cacheKey("nbl/builtin/renderpass_independent_pipeline/loader/mtl/");
183186
{
184187
const uint32_t illum = _mtl.params.extra&0xfu;

0 commit comments

Comments
 (0)