vk_graphics_pipeline: Add sample_count to AttachmentInfo

Controls the actual Multisample pipeline-state
This commit is contained in:
Wunkolo 2023-11-10 11:45:19 -08:00
parent 0f1e969211
commit 85a2304b42
2 changed files with 2 additions and 1 deletions

View file

@ -154,7 +154,7 @@ bool GraphicsPipeline::Build(bool fail_on_compile_required) {
};
const vk::PipelineMultisampleStateCreateInfo multisampling = {
.rasterizationSamples = vk::SampleCountFlagBits::e1,
.rasterizationSamples = vk::SampleCountFlagBits(info.attachments.sample_count),
.sampleShadingEnable = false,
};

View file

@ -123,6 +123,7 @@ struct VertexLayout {
struct AttachmentInfo {
VideoCore::PixelFormat color;
VideoCore::PixelFormat depth;
u8 sample_count;
};
/**