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
primitive: Primitive
Type of the primitive
rasterizer: Rasterizer
Rasterizer setup
scissor: bool
Enable scissor test
vertex_buffers: [Option<VertexBufferDesc>; 4]
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)
Methods
impl Descriptor
fn new(primitive: Primitive, rast: Rasterizer) -> Descriptor
Create a new empty PSO descriptor.
Trait Implementations
impl PartialEq<Descriptor> for Descriptor
fn eq(&self, __arg_0: &Descriptor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Descriptor) -> bool
This method tests for !=
.
impl Clone for Descriptor
fn clone(&self) -> Descriptor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Descriptor
impl Copy for Descriptor
impl Debug for Descriptor
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.