Add TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES to supported for Vulkan and Metal.

Adapter callbacks are already there, so this is likely an oversight.
This commit is contained in:
Alex S 2021-06-19 15:24:57 +03:00
parent 1d2efb43bc
commit 1b96f1a27e
2 changed files with 4 additions and 2 deletions

View File

@ -843,7 +843,8 @@ impl super::PrivateCapabilities {
| F::DEPTH_CLAMPING
| F::TEXTURE_COMPRESSION_BC
| F::MAPPABLE_PRIMARY_BUFFERS
| F::VERTEX_WRITABLE_STORAGE;
| F::VERTEX_WRITABLE_STORAGE
| F::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES;
features.set(
F::SAMPLED_TEXTURE_BINDING_ARRAY

View File

@ -208,7 +208,8 @@ impl PhysicalDeviceFeatures {
| F::ADDRESS_MODE_CLAMP_TO_BORDER
| F::SAMPLED_TEXTURE_BINDING_ARRAY
| F::STORAGE_TEXTURE_BINDING_ARRAY
| F::BUFFER_BINDING_ARRAY;
| F::BUFFER_BINDING_ARRAY
| F::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES;
let mut dl_flags = Df::all();
dl_flags.set(Df::CUBE_ARRAY_TEXTURES, self.core.image_cube_array != 0);