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]
impl Debug for ShaderLock
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ShaderLock
[src]
impl Clone for ShaderLock
fn clone(&self) -> ShaderLock
[src]
fn clone(&self) -> ShaderLock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Drop for ShaderLock
[src]
impl Drop for ShaderLock
Auto Trait Implementations
impl !Send for ShaderLock
impl !Send for ShaderLock
impl !Sync for ShaderLock
impl !Sync for ShaderLock