pub struct Effect { /* private fields */ }Expand description
A struct for managing multiple render pass objects. Effect objects allow you to combine multiple passes to create more complex shader effects.
Implementations§
Source§impl Effect
impl Effect
Sourcepub fn new(vert_shader: &str, frag_shader: &str) -> Effect
pub fn new(vert_shader: &str, frag_shader: &str) -> Effect
A method that allows you to create a new Effect object.
§Arguments
vert_shader- The vertex shader file string.frag_shader- The fragment shader file string. A shader file string must be one of the formats:- “builtin:” + theBuiltinShaderName
- “Shader/compiled_shader_file.bin”
§Returns
Effect- A new Effect object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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