vk_graphics_pipeline: Add sample_count
to AttachmentInfo
Controls the actual Multisample pipeline-state
This commit is contained in:
@@ -154,7 +154,7 @@ bool GraphicsPipeline::Build(bool fail_on_compile_required) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const vk::PipelineMultisampleStateCreateInfo multisampling = {
|
const vk::PipelineMultisampleStateCreateInfo multisampling = {
|
||||||
.rasterizationSamples = vk::SampleCountFlagBits::e1,
|
.rasterizationSamples = vk::SampleCountFlagBits(info.attachments.sample_count),
|
||||||
.sampleShadingEnable = false,
|
.sampleShadingEnable = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -123,6 +123,7 @@ struct VertexLayout {
|
|||||||
struct AttachmentInfo {
|
struct AttachmentInfo {
|
||||||
VideoCore::PixelFormat color;
|
VideoCore::PixelFormat color;
|
||||||
VideoCore::PixelFormat depth;
|
VideoCore::PixelFormat depth;
|
||||||
|
u8 sample_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user