mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
refactor: impl From<ImplementedEnableExtension> for EnableExtension (#7275)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
@@ -43,6 +43,12 @@ pub enum EnableExtension {
|
||||
Unimplemented(UnimplementedEnableExtension),
|
||||
}
|
||||
|
||||
impl From<ImplementedEnableExtension> for EnableExtension {
|
||||
fn from(value: ImplementedEnableExtension) -> Self {
|
||||
Self::Implemented(value)
|
||||
}
|
||||
}
|
||||
|
||||
impl EnableExtension {
|
||||
const F16: &'static str = "f16";
|
||||
const CLIP_DISTANCES: &'static str = "clip_distances";
|
||||
|
||||
Reference in New Issue
Block a user