pub struct ShaderPair {
pub vertex_shader: String,
pub fragment_shader: String,
}Expand description
Contains the code for a vertex shader and a fragment shader.
See also: Shaders.
Fields§
§vertex_shader: StringThe vertex shader code.
fragment_shader: StringThe fragment shader code.
Trait Implementations§
Source§impl Clone for ShaderPair
impl Clone for ShaderPair
Source§fn clone(&self) -> ShaderPair
fn clone(&self) -> ShaderPair
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 moreAuto Trait Implementations§
impl Freeze for ShaderPair
impl RefUnwindSafe for ShaderPair
impl Send for ShaderPair
impl Sync for ShaderPair
impl Unpin for ShaderPair
impl UnsafeUnpin for ShaderPair
impl UnwindSafe for ShaderPair
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