pub enum WGSLEntryPoint {
None,
Vertex,
Fragment,
Compute {
x: u32,
y: u32,
z: u32,
},
}Expand description
The entry-point type for a WGSL function.
Variants§
None
Not an entry point (helper function).
Vertex
@vertex
Fragment
@fragment
Compute
@compute @workgroup_size(x, y, z)
Implementations§
Trait Implementations§
Source§impl Clone for WGSLEntryPoint
impl Clone for WGSLEntryPoint
Source§fn clone(&self) -> WGSLEntryPoint
fn clone(&self) -> WGSLEntryPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WGSLEntryPoint
impl Debug for WGSLEntryPoint
Source§impl PartialEq for WGSLEntryPoint
impl PartialEq for WGSLEntryPoint
impl Eq for WGSLEntryPoint
impl StructuralPartialEq for WGSLEntryPoint
Auto Trait Implementations§
impl Freeze for WGSLEntryPoint
impl RefUnwindSafe for WGSLEntryPoint
impl Send for WGSLEntryPoint
impl Sync for WGSLEntryPoint
impl Unpin for WGSLEntryPoint
impl UnsafeUnpin for WGSLEntryPoint
impl UnwindSafe for WGSLEntryPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more