Struct gfx::pso::Descriptor []

pub struct Descriptor {
    pub primitive: Primitive,
    pub rasterizer: Rasterizer,
    pub scissor: bool,
    pub vertex_buffers: [Option<VertexBufferDesc>; 4],
    pub attributes: [Option<(u8, Element<Format>)>; 16],
    pub constant_buffers: [Option<Usage>; 14],
    pub resource_views: [Option<Usage>; 32],
    pub unordered_views: [Option<Usage>; 4],
    pub samplers: [Option<Usage>; 16],
    pub color_targets: [Option<(Format, ColorInfo)>; 4],
    pub depth_stencil: Option<(Format, 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 buffers

Vertex attributes

Constant buffers

Shader resource views

Unordered access views

Samplers

Render target views (RTV)

Depth stencil view (DSV)

Methods

impl Descriptor

Create a new empty PSO descriptor.

Trait Implementations

impl PartialEq<Descriptor> for Descriptor

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

This method tests for !=.

impl Clone for Descriptor

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Descriptor

impl Copy for Descriptor

impl Debug for Descriptor

Formats the value using the given formatter.

impl Hash for Descriptor