Struct gfx::pso::Descriptor
[−]
[src]
pub struct Descriptor {
pub primitive: Primitive,
pub rasterizer: Rasterizer,
pub scissor: bool,
pub vertex_buffers: [Option<VertexBufferDesc>; MAX_VERTEX_BUFFERS],
pub attributes: [Option<(u8, Element<Format>)>; MAX_VERTEX_ATTRIBUTES],
pub constant_buffers: [Option<Usage>; MAX_CONSTANT_BUFFERS],
pub resource_views: [Option<Usage>; MAX_RESOURCE_VIEWS],
pub unordered_views: [Option<Usage>; MAX_UNORDERED_VIEWS],
pub samplers: [Option<Usage>; MAX_SAMPLERS],
pub color_targets: [Option<(Format, ColorInfo)>; MAX_COLOR_TARGETS],
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>; MAX_VERTEX_BUFFERS]
Vertex buffers
attributes: [Option<(u8, Element<Format>)>; MAX_VERTEX_ATTRIBUTES]
Vertex attributes
constant_buffers: [Option<Usage>; MAX_CONSTANT_BUFFERS]
Constant buffers
resource_views: [Option<Usage>; MAX_RESOURCE_VIEWS]
Shader resource views
unordered_views: [Option<Usage>; MAX_UNORDERED_VIEWS]
Unordered access views
samplers: [Option<Usage>; MAX_SAMPLERS]
Samplers
color_targets: [Option<(Format, ColorInfo)>; MAX_COLOR_TARGETS]
Render target views (RTV)
depth_stencil: Option<(Format, DepthStencilInfo)>
Depth stencil view (DSV)
Methods
impl Descriptor[src]
fn new(primitive: Primitive, rast: Rasterizer) -> Descriptor[src]
Create a new empty PSO descriptor.
Trait Implementations
impl Copy for Descriptor[src]
impl Clone for Descriptor[src]
fn clone(&self) -> Descriptor[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Hash for Descriptor[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq<Descriptor> for Descriptor[src]
fn eq(&self, __arg_0: &Descriptor) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Descriptor) -> bool[src]
This method tests for !=.
impl Debug for Descriptor[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.