Struct ggez::graphics::ShaderLock [−][src]
pub struct ShaderLock { /* fields omitted */ }
Expand description
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
Auto Trait Implementations
impl !RefUnwindSafe for ShaderLock
impl !Send for ShaderLock
impl !Sync for ShaderLock
impl Unpin for ShaderLock
impl !UnwindSafe for ShaderLock
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V