Enum gfx::device::draw::Target [] [src]

pub enum Target {
    Color(u8),
    Depth,
    Stencil,
    DepthStencil,
}

When rendering, each "output" of the fragment shader goes to a specific target. A Plane can be bound to a target, causing writes to that target to affect the Plane.

Variants

Color

Color data.

Portability Note

The device is only required to expose one color target.

Depth

Depth data.

Stencil

Stencil data.

DepthStencil

A target for both depth and stencil data at once.

Trait Implementations

Derived Implementations

impl Debug for Target

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Target

fn eq(&self, __arg_0: &Target) -> bool

fn ne(&self, __arg_0: &Target) -> bool

impl Clone for Target

fn clone(&self) -> Target

fn clone_from(&mut self, source: &Self)

impl Copy for Target