Enable sample shading

This commit is contained in:
Timothy Warren 2023-04-25 09:42:47 -04:00
parent 9ac0d69f73
commit 8c85397b1a

View File

@ -418,7 +418,9 @@ impl AppData {
}
// Features
let features = vk::PhysicalDeviceFeatures::builder().sampler_anisotropy(true);
let features = vk::PhysicalDeviceFeatures::builder()
.sampler_anisotropy(true)
.sample_rate_shading(true);
// Create
let info = vk::DeviceCreateInfo::builder()
@ -746,7 +748,8 @@ impl AppData {
.depth_bias_enable(false);
let multisample_state = vk::PipelineMultisampleStateCreateInfo::builder()
.sample_shading_enable(false)
.sample_shading_enable(true)
.min_sample_shading(0.2)
.rasterization_samples(self.msaa_samples);
let depth_stencil_state = vk::PipelineDepthStencilStateCreateInfo::builder()