Struct glium::texture::bindless::TextureHandle
[−]
[src]
pub struct TextureHandle<'a> { /* 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]
pub fn new(
texture: &'a ResidentTexture,
_: &SamplerBehavior
) -> TextureHandle<'a>
[src]
texture: &'a ResidentTexture,
_: &SamplerBehavior
) -> TextureHandle<'a>
Builds a new handle.
pub fn set(&mut self, texture: &'a ResidentTexture, _: &SamplerBehavior)
[src]
Sets the value to the given texture.
Trait Implementations
impl<'a> Copy for TextureHandle<'a>
[src]
impl<'a> Clone for TextureHandle<'a>
[src]
fn clone(&self) -> TextureHandle<'a>
[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
impl<'a> AsUniformValue for TextureHandle<'a>
[src]
fn as_uniform_value(&self) -> UniformValue
[src]
Builds a UniformValue
.
impl<'a> UniformBlock for TextureHandle<'a>
[src]
fn matches(
layout: &BlockLayout,
base_offset: usize
) -> Result<(), LayoutMismatchError>
[src]
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
[src]
Builds the BlockLayout
corresponding to the current object.