Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Sep 5, 2024
1 parent 1d5a572 commit 8a19af6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/d3d12/d3d12-pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ Result PipelineImpl::ensureAPIPipelineCreated()
break;
}
}
for (uint32_t i = (uint32_t)numRenderTargets; i < D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT;
++i)
for (uint32_t i = (uint32_t)numRenderTargets; i < D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i)
{
blend.RenderTarget[i] = blend.RenderTarget[0];
}
Expand Down
10 changes: 3 additions & 7 deletions src/metal/metal-pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,10 @@ Result PipelineImpl::createMetalRenderPipelineState()
const TargetBlendDesc& targetBlendDesc = blend.targets[i];
colorAttachment->setBlendingEnabled(targetBlendDesc.enableBlend);
colorAttachment->setSourceRGBBlendFactor(MetalUtil::translateBlendFactor(targetBlendDesc.color.srcFactor));
colorAttachment->setDestinationRGBBlendFactor(
MetalUtil::translateBlendFactor(targetBlendDesc.color.dstFactor)
);
colorAttachment->setDestinationRGBBlendFactor(MetalUtil::translateBlendFactor(targetBlendDesc.color.dstFactor));
colorAttachment->setRgbBlendOperation(MetalUtil::translateBlendOperation(targetBlendDesc.color.op));
colorAttachment->setSourceAlphaBlendFactor(MetalUtil::translateBlendFactor(targetBlendDesc.alpha.srcFactor)
);
colorAttachment->setDestinationAlphaBlendFactor(
MetalUtil::translateBlendFactor(targetBlendDesc.alpha.dstFactor)
colorAttachment->setSourceAlphaBlendFactor(MetalUtil::translateBlendFactor(targetBlendDesc.alpha.srcFactor));
colorAttachment->setDestinationAlphaBlendFactor(MetalUtil::translateBlendFactor(targetBlendDesc.alpha.dstFactor)
);
colorAttachment->setAlphaBlendOperation(MetalUtil::translateBlendOperation(targetBlendDesc.alpha.op));
colorAttachment->setWriteMask(MetalUtil::translateColorWriteMask(targetBlendDesc.writeMask));
Expand Down

0 comments on commit 8a19af6

Please sign in to comment.