[−][src]Struct gfx_core::pso::Descriptor
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]
fn eq(&self, other: &Descriptor) -> bool
[src]
fn ne(&self, other: &Descriptor) -> bool
[src]
impl Clone for Descriptor
[src]
fn clone(&self) -> 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]
Auto Trait Implementations
impl Send for Descriptor
impl Sync for Descriptor
Blanket Implementations
impl<T, U> Into 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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,