[go: up one dir, main page]

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(u8)

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

impl Debug for Target
[src]

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

Formats the value using the given formatter.

impl PartialEq for Target
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Clone for Target
[src]

fn clone(&self) -> Target

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for Target
[src]