Trait three_d::core::Texture[][src]

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

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

Required methods

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

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

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

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

Loading content...

Implementors

impl Texture for ColorTargetTexture2D[src]

impl Texture for ColorTargetTexture2DArray[src]

impl Texture for DepthTargetTexture2D[src]

impl Texture for DepthTargetTexture2DArray[src]

impl Texture for Texture2D[src]

impl Texture for TextureCubeMap[src]

Loading content...