[][src]Struct gfx_core::pso::Descriptor

pub struct Descriptor {
    pub primitive: Primitive,
    pub rasterizer: Rasterizer,
    pub scissor: bool,
    pub vertex_buffers: [Option<VertexBufferDesc>; 16],
    pub attributes: [Option<AttributeDesc>; 16],
    pub constant_buffers: [Option<ConstantBufferDesc>; 14],
    pub resource_views: [Option<ResourceViewDesc>; 32],
    pub unordered_views: [Option<UnorderedViewDesc>; 4],
    pub samplers: [Option<SamplerDesc>; 16],
    pub color_targets: [Option<ColorTargetDesc>; 4],
    pub depth_stencil: Option<DepthStencilDesc>,
}

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<AttributeDesc>; 16]

Vertex attributes

constant_buffers: [Option<ConstantBufferDesc>; 14]

Constant buffers

resource_views: [Option<ResourceViewDesc>; 32]

Shader resource views

unordered_views: [Option<UnorderedViewDesc>; 4]

Unordered access views

samplers: [Option<SamplerDesc>; 16]

Samplers

color_targets: [Option<ColorTargetDesc>; 4]

Render target views (RTV)

depth_stencil: Option<DepthStencilDesc>

Depth stencil view (DSV)

Methods

impl Descriptor[src]

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

Create a new empty PSO descriptor.

Trait Implementations

impl Eq for Descriptor[src]

impl Copy for Descriptor[src]

impl PartialEq<Descriptor> for Descriptor[src]

impl Clone for Descriptor[src]

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

Performs copy-assignment from source. Read more

impl Debug for Descriptor[src]

impl Hash for Descriptor[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

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

Auto Trait Implementations

impl Send for Descriptor

impl Sync for Descriptor

Blanket Implementations

impl<T, U> Into 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> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.