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

primitive

Type of the primitive

rasterizer

Rasterizer setup

scissor

Enable scissor test

attributes

Vertex attributes

color_targets

Render target views (RTV)

depth_stencil

Depth stencil view (DSV)

Methods

impl Descriptor

fn new(primitive: Primitive, rast: Rasterizer) -> Descriptor

Create a new empty PSO descriptor.

Trait Implementations

Derived Implementations

impl PartialEq<Descriptor> for Descriptor

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

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

impl Hash for Descriptor

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl Eq for Descriptor

impl Debug for Descriptor

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

impl Copy for Descriptor

impl Clone for Descriptor

fn clone(&self) -> Descriptor

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