Query optimal tiling features for Vulkan.

Images are always created with vk::ImageTiling::OPTIMAL,
so it doesn't make much sense querying linear tiling features.
This commit is contained in:
Alex S 2021-06-19 16:08:43 +03:00
parent 1b96f1a27e
commit 70168ee0f5

View File

@ -803,7 +803,7 @@ impl crate::Adapter<super::Api> for super::Adapter {
.instance
.raw
.get_physical_device_format_properties(self.raw, vk_format);
let features = properties.linear_tiling_features;
let features = properties.optimal_tiling_features;
let mut flags = Tfc::empty();
flags.set(