mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
Merge #1519
1519: Add TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES to supported for Vulkan and Metal. r=kvark a=ElectronicRU Adapter callbacks are already there, so this is likely an oversight. **Description** Adapter callbacks for texture capabilities were there, but feature flags weren't enabled, which prevented use of them. Co-authored-by: Alex S <alex0player@gmail.com>
This commit is contained in:
commit
77e57ebcc6
@ -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
|
||||
|
@ -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);
|
||||
@ -802,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(
|
||||
|
Loading…
Reference in New Issue
Block a user