[−][src]Struct gfx::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: 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)
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 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 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 Hash for Descriptor[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
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 Debug 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,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)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, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,