diff --git a/src/conv.rs b/src/conv.rs index e8a3416e..242ff064 100644 --- a/src/conv.rs +++ b/src/conv.rs @@ -1126,13 +1126,15 @@ pub fn map_feature(feature: native::WGPUFeatureName) -> Option { match feature { native::WGPUFeatureName_DepthClipControl => Some(Features::DEPTH_CLIP_CONTROL), native::WGPUFeatureName_Depth32FloatStencil8 => Some(Features::DEPTH32FLOAT_STENCIL8), - native::WGPUFeatureName_TimestampQuery => Some(Features::TIMESTAMP_QUERY), native::WGPUFeatureName_TextureCompressionBC => Some(Features::TEXTURE_COMPRESSION_BC), native::WGPUFeatureName_TextureCompressionETC2 => Some(Features::TEXTURE_COMPRESSION_ETC2), native::WGPUFeatureName_TextureCompressionASTC => Some(Features::TEXTURE_COMPRESSION_ASTC), + native::WGPUFeatureName_TimestampQuery => Some(Features::TIMESTAMP_QUERY), native::WGPUFeatureName_IndirectFirstInstance => Some(Features::INDIRECT_FIRST_INSTANCE), native::WGPUFeatureName_ShaderF16 => Some(Features::SHADER_F16), native::WGPUFeatureName_RG11B10UfloatRenderable => Some(Features::RG11B10UFLOAT_RENDERABLE), + native::WGPUFeatureName_BGRA8UnormStorage => Some(Features::BGRA8UNORM_STORAGE), + //native::WGPUFeatureName_Float32Filterable => Some(Features::FLOAT32_FILTERABLE), // wgpu-rs only features native::WGPUNativeFeature_PushConstants => Some(Features::PUSH_CONSTANTS), @@ -1143,8 +1145,7 @@ pub fn map_feature(feature: native::WGPUFeatureName) -> Option { native::WGPUNativeFeature_TextureBindingArray => Some(Features::TEXTURE_BINDING_ARRAY), native::WGPUNativeFeature_SampledTextureAndStorageBufferArrayNonUniformIndexing => Some(Features::SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING), native::WGPUNativeFeature_PipelineStatisticsQuery => Some(Features::PIPELINE_STATISTICS_QUERY), - // not available in wgpu-core - native::WGPUFeatureName_BGRA8UnormStorage => None, + // fallback, probably not available in wgpu-core _ => None, } }