pub struct WgslShaderSource {
pub name: String,
pub source: String,
pub vertex_entry: String,
pub fragment_entry: String,
pub compute_entry: Option<String>,
}Expand description
WGSL Shader Definition.
Fields§
§name: String§source: String§vertex_entry: String§fragment_entry: String§compute_entry: Option<String>Implementations§
Source§impl WgslShaderSource
impl WgslShaderSource
pub fn pbr_3d() -> WgslShaderSource
pub fn compute_telemetry() -> WgslShaderSource
pub fn custom(name: &str, source: &str, vs: &str, fs: &str) -> WgslShaderSource
Trait Implementations§
Source§impl Clone for WgslShaderSource
impl Clone for WgslShaderSource
Source§fn clone(&self) -> WgslShaderSource
fn clone(&self) -> WgslShaderSource
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 moreSource§impl Debug for WgslShaderSource
impl Debug for WgslShaderSource
Source§impl PartialEq for WgslShaderSource
impl PartialEq for WgslShaderSource
impl StructuralPartialEq for WgslShaderSource
Auto Trait Implementations§
impl Forget for WgslShaderSource
impl Freeze for WgslShaderSource
impl Move for WgslShaderSource
impl RefUnwindSafe for WgslShaderSource
impl Send for WgslShaderSource
impl Sync for WgslShaderSource
impl Unpin for WgslShaderSource
impl UnsafeUnpin for WgslShaderSource
impl UnwindSafe for WgslShaderSource
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