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: PrimitiveType of the primitive
rasterizer: RasterizerRasterizer setup
scissor: boolEnable 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]
pub fn clone(&self) -> Descriptor[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Descriptor[src]
impl Debug for Descriptor[src]
impl Eq for Descriptor[src]
impl Hash for Descriptor[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Descriptor> for Descriptor[src]
pub fn eq(&self, other: &Descriptor) -> bool[src]
pub fn ne(&self, other: &Descriptor) -> bool[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,