pub enum ShaderKind {
Pbr,
Physical,
Unlit,
Lambert,
Toon,
Normal,
Wireframe,
Depth,
Line,
Points,
Custom(u64),
}Expand description
Built-in shader family used by a material.
Variants§
Pbr
Physically based metallic-roughness shader.
Physical
Advanced physical surface shader.
Unlit
Constant-color unlit shader.
Lambert
Diffuse Lambert shader.
Toon
Cel/toon shader.
Normal
Surface-normal debug shader.
Wireframe
Wireframe shader.
Depth
Depth-only shader.
Line
Line shader.
Points
Point-sprite shader.
Custom(u64)
User-provided WGSL shader sources, identified by a stable hash.
Trait Implementations§
Source§impl Clone for ShaderKind
impl Clone for ShaderKind
Source§fn clone(&self) -> ShaderKind
fn clone(&self) -> ShaderKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShaderKind
Source§impl Debug for ShaderKind
impl Debug for ShaderKind
Source§impl Default for ShaderKind
impl Default for ShaderKind
Source§fn default() -> ShaderKind
fn default() -> ShaderKind
Returns the “default value” for a type. Read more
impl Eq for ShaderKind
Source§impl Hash for ShaderKind
impl Hash for ShaderKind
Source§impl PartialEq for ShaderKind
impl PartialEq for ShaderKind
impl StructuralPartialEq for ShaderKind
Auto Trait Implementations§
impl Freeze for ShaderKind
impl RefUnwindSafe for ShaderKind
impl Send for ShaderKind
impl Sync for ShaderKind
impl Unpin for ShaderKind
impl UnsafeUnpin for ShaderKind
impl UnwindSafe for ShaderKind
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