pub struct ShaderLibrary;Expand description
Shader library with common WGSL functions.
Implementations§
Source§impl ShaderLibrary
impl ShaderLibrary
Sourcepub fn common_utils() -> &'static str
pub fn common_utils() -> &'static str
Get common utility functions for compute shaders.
Sourcepub fn ndvi_shader() -> &'static str
pub fn ndvi_shader() -> &'static str
Get NDVI (Normalized Difference Vegetation Index) shader.
Sourcepub fn add_shader() -> &'static str
pub fn add_shader() -> &'static str
Get element-wise addition shader.
Sourcepub fn multiply_shader() -> &'static str
pub fn multiply_shader() -> &'static str
Get element-wise multiplication shader.
Sourcepub fn threshold_shader() -> &'static str
pub fn threshold_shader() -> &'static str
Get threshold shader.
Auto Trait Implementations§
impl Freeze for ShaderLibrary
impl RefUnwindSafe for ShaderLibrary
impl Send for ShaderLibrary
impl Sync for ShaderLibrary
impl Unpin for ShaderLibrary
impl UnsafeUnpin for ShaderLibrary
impl UnwindSafe for ShaderLibrary
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