Struct glium::texture::bindless::TextureHandle
[−]
[src]
pub struct TextureHandle<'a> {
// some fields omitted
}Represents a handle to a texture. Contains a raw pointer to a texture that is hidden from you.
Methods
impl<'a> TextureHandle<'a>[src]
fn new(texture: &'a ResidentTexture, _: &SamplerBehavior) -> TextureHandle<'a>
Builds a new handle.
fn set(&mut self, texture: &'a ResidentTexture, _: &SamplerBehavior)
Sets the value to the given texture.
Trait Implementations
impl<'a> Clone for TextureHandle<'a>[src]
fn clone(&self) -> TextureHandle<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Copy for TextureHandle<'a>[src]
impl<'a> AsUniformValue for TextureHandle<'a>[src]
fn as_uniform_value(&self) -> UniformValue
Builds a UniformValue.
impl<'a> UniformBlock for TextureHandle<'a>[src]
fn matches(layout: &BlockLayout, base_offset: usize) -> Result<(), LayoutMismatchError>
Checks whether the uniforms' layout matches the given block if Self starts at the given offset. Read more
fn build_layout(base_offset: usize) -> BlockLayout
Builds the BlockLayout corresponding to the current object.