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

pub struct Descriptor {
    pub primitive: Primitive,
    pub rasterizer: Rasterizer,
    pub scissor: bool,
    pub vertex_buffers: [Option<VertexBufferDesc>; 16],
    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

primitive: Primitive

Type of the primitive

rasterizer: Rasterizer

Rasterizer setup

scissor: bool

Enable scissor test

vertex_buffers: [Option<VertexBufferDesc>; 16]

Vertex buffers

attributes: [Option<(u8, Element<Format>)>; 16]

Vertex attributes

constant_buffers: [Option<Usage>; 14]

Constant buffers

resource_views: [Option<Usage>; 32]

Shader resource views

unordered_views: [Option<Usage>; 4]

Unordered access views

samplers: [Option<Usage>; 16]

Samplers

color_targets: [Option<(Format, ColorInfo)>; 4]

Render target views (RTV)

depth_stencil: Option<(Format, DepthStencilInfo)>

Depth stencil view (DSV)

Implementations

impl Descriptor[src]

pub fn new(primitive: Primitive, rast: Rasterizer) -> Descriptor[src]

Create a new empty PSO descriptor.

Trait Implementations

impl Clone for Descriptor[src]

impl Copy for Descriptor[src]

impl Debug for Descriptor[src]

impl Eq for Descriptor[src]

impl Hash for Descriptor[src]

impl PartialEq<Descriptor> for Descriptor[src]

impl StructuralEq for Descriptor[src]

impl StructuralPartialEq for Descriptor[src]

Auto Trait Implementations

impl RefUnwindSafe for Descriptor

impl Send for Descriptor

impl Sync for Descriptor

impl Unpin for Descriptor

impl UnwindSafe for Descriptor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.