Struct glin::texture::TextureSampler [−][src]
pub struct TextureSampler<'a> { /* fields omitted */ }Implementations
impl<'a> TextureSampler<'a>[src]
impl<'a> TextureSampler<'a>[src]pub fn width(&self) -> u32[src]
Returns the width of the allocated texture
pub fn height(&self) -> u32[src]
Returns the height of the allocated texture
pub fn samples(&self) -> u32[src]
Returns the samples of the allocated texture
pub fn levels(&self) -> u32[src]
Returns the number of allocated levels
pub fn texture_id(&self) -> GLuint[src]
Returns the texture GL id
pub fn sampler_id(&self) -> GLuint[src]
Returns the sampler GL id
pub fn target(&self) -> GLenum[src]
Returns the texture target
pub fn internal_format(&self) -> GLenum[src]
Returns the internal format
Trait Implementations
impl<'a, T: Borrow<TextureSampler<'a>>> AsUniform<TextureSampler<'a>> for T[src]
impl<'a, T: Borrow<TextureSampler<'a>>> AsUniform<TextureSampler<'a>> for T[src]fn as_uniform(&self) -> UniformValue[src]
impl<'a> Clone for TextureSampler<'a>[src]
impl<'a> Clone for TextureSampler<'a>[src]fn clone(&self) -> TextureSampler<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Copy for TextureSampler<'a>[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TextureSampler<'a>
impl<'a> !Send for TextureSampler<'a>
impl<'a> !Sync for TextureSampler<'a>
impl<'a> Unpin for TextureSampler<'a>
impl<'a> !UnwindSafe for TextureSampler<'a>
Blanket Implementations
impl<'a, T> AsUniform<TextureSampler<'a>> for T where
T: Borrow<TextureSampler<'a>>, [src]
impl<'a, T> AsUniform<TextureSampler<'a>> for T where
T: Borrow<TextureSampler<'a>>, [src]