Update multisampling
This commit is contained in:
@@ -373,7 +373,10 @@ class HelloTriangleApplication {
|
|||||||
vk::PhysicalDeviceVulkan13Features,
|
vk::PhysicalDeviceVulkan13Features,
|
||||||
vk::PhysicalDeviceVulkan11Features,
|
vk::PhysicalDeviceVulkan11Features,
|
||||||
vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT> featureChain = {
|
vk::PhysicalDeviceExtendedDynamicStateFeaturesEXT> featureChain = {
|
||||||
{.features = {.samplerAnisotropy = true}}, // vk::PhysicalDeviceFeatures2
|
{.features = {
|
||||||
|
.sampleRateShading = true,
|
||||||
|
.samplerAnisotropy = true,
|
||||||
|
}}, // vk::PhysicalDeviceFeatures2
|
||||||
{.synchronization2 = true,
|
{.synchronization2 = true,
|
||||||
.dynamicRendering = true}, // Enable dynamic rendering and synchronization2 from Vulkan 1.3
|
.dynamicRendering = true}, // Enable dynamic rendering and synchronization2 from Vulkan 1.3
|
||||||
{.shaderDrawParameters = true}, // Enable shader draw parameters from Vulkan 1.2
|
{.shaderDrawParameters = true}, // Enable shader draw parameters from Vulkan 1.2
|
||||||
@@ -523,7 +526,7 @@ class HelloTriangleApplication {
|
|||||||
// Multisampling
|
// Multisampling
|
||||||
vk::PipelineMultisampleStateCreateInfo multisampling = {
|
vk::PipelineMultisampleStateCreateInfo multisampling = {
|
||||||
.rasterizationSamples = msaaSamples,
|
.rasterizationSamples = msaaSamples,
|
||||||
.sampleShadingEnable = vk::False,
|
.sampleShadingEnable = vk::True,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Color blending
|
// Color blending
|
||||||
|
|||||||
Reference in New Issue
Block a user