#[repr(i32)]pub enum WGPUSType {
ShaderSourceSPIRV = 1,
ShaderSourceWGSL = 2,
RenderPassMaxDrawCount = 3,
SurfaceSourceMetalLayer = 4,
SurfaceSourceWindowsHWND = 5,
SurfaceSourceXlibWindow = 6,
SurfaceSourceWaylandSurface = 7,
SurfaceSourceAndroidNativeWindow = 8,
SurfaceSourceXCBWindow = 9,
SurfaceColorManagement = 10,
RequestAdapterWebXROptions = 11,
}Variants§
ShaderSourceSPIRV = 1
ShaderSourceWGSL = 2
RenderPassMaxDrawCount = 3
SurfaceSourceMetalLayer = 4
SurfaceSourceWindowsHWND = 5
SurfaceSourceXlibWindow = 6
SurfaceSourceWaylandSurface = 7
SurfaceSourceAndroidNativeWindow = 8
SurfaceSourceXCBWindow = 9
SurfaceColorManagement = 10
RequestAdapterWebXROptions = 11
Implementations§
Source§impl WGPUSType
impl WGPUSType
Sourcepub const fn is_shader_source_spirv(&self) -> bool
pub const fn is_shader_source_spirv(&self) -> bool
Returns true if the enum is WGPUSType::ShaderSourceSPIRV otherwise false
Sourcepub const fn is_shader_source_wgsl(&self) -> bool
pub const fn is_shader_source_wgsl(&self) -> bool
Returns true if the enum is WGPUSType::ShaderSourceWGSL otherwise false
Sourcepub const fn is_render_pass_max_draw_count(&self) -> bool
pub const fn is_render_pass_max_draw_count(&self) -> bool
Returns true if the enum is WGPUSType::RenderPassMaxDrawCount otherwise false
Sourcepub const fn is_surface_source_metal_layer(&self) -> bool
pub const fn is_surface_source_metal_layer(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceSourceMetalLayer otherwise false
Sourcepub const fn is_surface_source_windows_hwnd(&self) -> bool
pub const fn is_surface_source_windows_hwnd(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceSourceWindowsHWND otherwise false
Sourcepub const fn is_surface_source_xlib_window(&self) -> bool
pub const fn is_surface_source_xlib_window(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceSourceXlibWindow otherwise false
Sourcepub const fn is_surface_source_wayland_surface(&self) -> bool
pub const fn is_surface_source_wayland_surface(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceSourceWaylandSurface otherwise false
Sourcepub const fn is_surface_source_android_native_window(&self) -> bool
pub const fn is_surface_source_android_native_window(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceSourceAndroidNativeWindow otherwise false
Sourcepub const fn is_surface_source_xcb_window(&self) -> bool
pub const fn is_surface_source_xcb_window(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceSourceXCBWindow otherwise false
Sourcepub const fn is_surface_color_management(&self) -> bool
pub const fn is_surface_color_management(&self) -> bool
Returns true if the enum is WGPUSType::SurfaceColorManagement otherwise false
Sourcepub const fn is_request_adapter_web_xr_options(&self) -> bool
pub const fn is_request_adapter_web_xr_options(&self) -> bool
Returns true if the enum is WGPUSType::RequestAdapterWebXROptions otherwise false