Struct gfx_core::pso::Descriptor
[−]
[src]
pub struct Descriptor {
pub primitive: Primitive,
pub rasterizer: Rasterizer,
pub scissor: bool,
pub attributes: [Option<AttributeDesc>; MAX_VERTEX_ATTRIBUTES],
pub color_targets: [Option<ColorTargetDesc>; MAX_COLOR_TARGETS],
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 | Type of the primitive |
rasterizer | Rasterizer setup |
scissor | Enable scissor test |
attributes | Vertex attributes |
color_targets | Render target views (RTV) |
depth_stencil | Depth stencil view (DSV) |
Methods
impl Descriptor
fn new(primitive: Primitive, rast: Rasterizer) -> Descriptor
Create a new empty PSO descriptor.