Struct ggez::graphics::ShaderLock
[−]
[src]
pub struct ShaderLock { /* fields omitted */ }
A lock for RAII shader regions. The shader automatically gets cleared once the lock goes out of scope, restoring the previous shader (if any).
Essentially, binding a Shader
will return one of these, and the shader
will remain active as long as this object exists. When this is dropped,
the previous shader is restored.
Trait Implementations
impl Debug for ShaderLock
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ShaderLock
[src]
fn clone(&self) -> ShaderLock
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more