[][src]Function nannou::vk::msaa_samples_limited

pub fn msaa_samples_limited(
    physical_device: &PhysicalDevice,
    target_msaa_samples: u32
) -> u32

Given some target MSAA samples, limit it by the capabilities of the given physical_device.

This is useful for attempting a specific multisampling sample count but falling back to a supported count in the case that the desired count is unsupported.

Specifically, this function limits the given target_msaa_samples to the minimum of the color and depth sample count limits.