Struct glslang::ShaderSource
source · pub struct ShaderSource(/* private fields */);
Expand description
The source string of a shader.
Implementations§
source§impl ShaderSource
impl ShaderSource
pub fn parse_profile(&self) -> Option<(i32, GlslProfile)>
Trait Implementations§
source§impl Clone for ShaderSource
impl Clone for ShaderSource
source§fn clone(&self) -> ShaderSource
fn clone(&self) -> ShaderSource
Returns a copy 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 ShaderSource
impl Debug for ShaderSource
source§impl From<&str> for ShaderSource
impl From<&str> for ShaderSource
Auto Trait Implementations§
impl RefUnwindSafe for ShaderSource
impl Send for ShaderSource
impl Sync for ShaderSource
impl Unpin for ShaderSource
impl UnwindSafe for ShaderSource
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