Trait three_d::core::TextureArray[][src]

pub trait TextureArray {
    fn bind(&self, location: u32);
fn width(&self) -> usize;
fn height(&self) -> usize;
fn depth(&self) -> usize; }
Expand description

A texture array that can be sampled in a fragment shader (see use_texture_array).

Required methods

fn bind(&self, location: u32)[src]

Expand description

Binds this texture array to the current shader program.

fn width(&self) -> usize[src]

Expand description

The width of this texture.

fn height(&self) -> usize[src]

Expand description

The height of this texture.

fn depth(&self) -> usize[src]

Expand description

The depth of this texture, ie. the number of layers.

Loading content...

Implementors

impl TextureArray for DepthTargetTexture2DArray[src]

fn bind(&self, location: u32)[src]

fn width(&self) -> usize[src]

fn height(&self) -> usize[src]

fn depth(&self) -> usize[src]

impl<T: TextureValueType> TextureArray for ColorTargetTexture2DArray<T>[src]

fn bind(&self, location: u32)[src]

fn width(&self) -> usize[src]

fn height(&self) -> usize[src]

fn depth(&self) -> usize[src]

Loading content...