Struct gfx::pso::Descriptor [] [src]

pub struct Descriptor {
    pub primitive: Primitive,
    pub rasterizer: Rasterizer,
    pub scissor: bool,
    pub attributes: [Option<(Element<Format>, u8)>; 16],
    pub color_targets: [Option<(Format, ColorInfo)>; 4],
    pub depth_stencil: Option<(SurfaceType, DepthStencilInfo)>,
}

All the information surrounding a shader program that is required for PSO creation, including the formats of vertex buffers and pixel targets;

Fields

Type of the primitive

Rasterizer setup

Enable scissor test

Vertex attributes

Render target views (RTV)

Depth stencil view (DSV)

Methods

impl Descriptor
[src]

[src]

Create a new empty PSO descriptor.

Trait Implementations

impl Copy for Descriptor
[src]

impl Eq for Descriptor
[src]

impl PartialEq<Descriptor> for Descriptor
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Descriptor
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Descriptor
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Descriptor
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more