mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 06:19:16 +01:00
Set Default Color Write Mask to RGBA
The default color write mask should mask no channels and write all of them and should be mutated to mask out certain channels as required by the guest.
This commit is contained in:
parent
23faf1370c
commit
f06a12170f
@ -63,6 +63,12 @@ namespace skyline::gpu::interconnect {
|
||||
for (auto &vertexAttribute : vertexAttributes)
|
||||
vertexAttribute.description.location = attributeIndex++;
|
||||
|
||||
for (auto &rtBlendState : commonRtBlendState)
|
||||
rtBlendState.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA;
|
||||
|
||||
for (auto &rtBlendState : independentRtBlendState)
|
||||
rtBlendState.colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA;
|
||||
|
||||
if (!gpu.quirks.supportsLastProvokingVertex)
|
||||
rasterizerState.unlink<vk::PipelineRasterizationProvokingVertexStateCreateInfoEXT>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user