pub enum ShaderSource<'a> {
Glsl(Cow<'a, str>),
}
Expand description
Source of a shader module.
Variants§
Glsl(Cow<'a, str>)
Module represented as GLSL source code.
The source will be fed to the driver for compilation and validation, which may result in small CPU usage spikes, as parsing GLSL directly is expensive.
Trait Implementations§
Source§impl<'a> Clone for ShaderSource<'a>
impl<'a> Clone for ShaderSource<'a>
Source§fn clone(&self) -> ShaderSource<'a>
fn clone(&self) -> ShaderSource<'a>
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<'a> Debug for ShaderSource<'a>
impl<'a> Debug for ShaderSource<'a>
Source§impl<'a> PartialEq for ShaderSource<'a>
impl<'a> PartialEq for ShaderSource<'a>
impl<'a> Eq for ShaderSource<'a>
impl<'a> StructuralPartialEq for ShaderSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShaderSource<'a>
impl<'a> RefUnwindSafe for ShaderSource<'a>
impl<'a> Send for ShaderSource<'a>
impl<'a> Sync for ShaderSource<'a>
impl<'a> Unpin for ShaderSource<'a>
impl<'a> UnwindSafe for ShaderSource<'a>
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