...And add the feature flag to Vulkan, which previously worked by accident.

This commit is contained in:
Alex S
2021-06-20 05:12:19 +03:00
parent 3d6cda100a
commit b0ba01dba6

View File

@@ -203,6 +203,7 @@ impl PhysicalDeviceFeatures {
fn to_wgpu(&self, caps: &PhysicalDeviceCapabilities) -> (wgt::Features, wgt::DownlevelFlags) {
use wgt::{DownlevelFlags as Df, Features as F};
let mut features = F::empty()
| F::SPIR_V_SHADER_MODULES
| F::MAPPABLE_PRIMARY_BUFFERS
| F::PUSH_CONSTANTS
| F::ADDRESS_MODE_CLAMP_TO_BORDER