[][src]Struct dxplr::d3d12::GraphicsPipelineStateDesc

pub struct GraphicsPipelineStateDesc<'a, Il, Rf, Df> {
    pub root_signature: Option<RootSignature>,
    pub vs: Option<ShaderBytecode>,
    pub ps: Option<ShaderBytecode>,
    pub ds: Option<ShaderBytecode>,
    pub hs: Option<ShaderBytecode>,
    pub gs: Option<ShaderBytecode>,
    pub stream_output: Option<StreamOutputDesc<'a>>,
    pub blend_state: BlendDesc,
    pub sample_mask: u32,
    pub rasterizer_state: RasterizerDesc,
    pub depth_stencil_state: DepthStencilDesc,
    pub input_layout: Il,
    pub ib_strip_cut_value: IndexBufferStripCutValue,
    pub primitive_topology_type: PrimitiveTopologyType,
    pub rtv_formats: Rf,
    pub dsv_format: Df,
    pub sample_desc: SampleDesc,
    pub node_mask: u32,
    pub cached_pso: Option<CachedPipelineState>,
    pub flags: Option<PipelineStateFlags>,
}

Fields

root_signature: Option<RootSignature>vs: Option<ShaderBytecode>ps: Option<ShaderBytecode>ds: Option<ShaderBytecode>hs: Option<ShaderBytecode>gs: Option<ShaderBytecode>stream_output: Option<StreamOutputDesc<'a>>blend_state: BlendDescsample_mask: u32rasterizer_state: RasterizerDescdepth_stencil_state: DepthStencilDescinput_layout: Ilib_strip_cut_value: IndexBufferStripCutValueprimitive_topology_type: PrimitiveTopologyTypertv_formats: Rfdsv_format: Dfsample_desc: SampleDescnode_mask: u32cached_pso: Option<CachedPipelineState>flags: Option<PipelineStateFlags>

Methods

impl<'a> GraphicsPipelineStateDesc<'a, (), (), ()>[src]

pub fn new() -> Self[src]

impl<'a, Il, Rf, Df> GraphicsPipelineStateDesc<'a, Il, Rf, Df>[src]

pub fn root_signature(self, root_signature: &RootSignature) -> Self[src]

pub fn vs(self, code: ShaderBytecode) -> Self[src]

pub fn ps(self, code: ShaderBytecode) -> Self[src]

pub fn ds(self, code: ShaderBytecode) -> Self[src]

pub fn hs(self, code: ShaderBytecode) -> Self[src]

pub fn gs(self, code: ShaderBytecode) -> Self[src]

pub fn stream_output(self, so: StreamOutputDesc<'a>) -> Self[src]

pub fn blend_desc(self, desc: BlendDesc) -> Self[src]

pub fn sample_mask(self, mask: u32) -> Self[src]

pub fn rasterizer_state(self, desc: RasterizerDesc) -> Self[src]

pub fn depth_stencil_state(self, desc: DepthStencilDesc) -> Self[src]

pub fn ib_strip_cut_value(self, value: IndexBufferStripCutValue) -> Self[src]

pub fn primitive_topology_type(
    self,
    topology_type: PrimitiveTopologyType
) -> Self
[src]

pub fn sample_desc(self, sample_desc: SampleDesc) -> Self[src]

pub fn node_mask(self, node_mask: u32) -> Self[src]

pub fn cached_pso(self, cached_pso: CachedPipelineState) -> Self[src]

pub fn flags(self, flags: PipelineStateFlags) -> Self[src]

impl<'a, Rf, Df> GraphicsPipelineStateDesc<'a, (), Rf, Df>[src]

pub fn input_layout<'b>(
    self,
    input_layout: InputLayoutDesc<'b>
) -> GraphicsPipelineStateDesc<'a, InputLayoutDesc<'b>, Rf, Df>
[src]

impl<'a, Il, Df> GraphicsPipelineStateDesc<'a, Il, (), Df>[src]

pub fn rtv_formats<'b>(
    self,
    rtv_formats: &'b [Format]
) -> GraphicsPipelineStateDesc<'a, Il, &'b [Format], Df>
[src]

impl<'a, Il, Rf> GraphicsPipelineStateDesc<'a, Il, Rf, ()>[src]

pub fn dsv_format(
    self,
    dsv_format: Format
) -> GraphicsPipelineStateDesc<'a, Il, Rf, Format>
[src]

Trait Implementations

impl<'a, Il: Clone, Rf: Clone, Df: Clone> Clone for GraphicsPipelineStateDesc<'a, Il, Rf, Df>[src]

impl<'a, Il: Debug, Rf: Debug, Df: Debug> Debug for GraphicsPipelineStateDesc<'a, Il, Rf, Df>[src]

Auto Trait Implementations

impl<'a, Il, Rf, Df> Sync for GraphicsPipelineStateDesc<'a, Il, Rf, Df> where
    Df: Sync,
    Il: Sync,
    Rf: Sync

impl<'a, Il, Rf, Df> Send for GraphicsPipelineStateDesc<'a, Il, Rf, Df> where
    Df: Send,
    Il: Send,
    Rf: Send

impl<'a, Il, Rf, Df> Unpin for GraphicsPipelineStateDesc<'a, Il, Rf, Df> where
    Df: Unpin,
    Il: Unpin,
    Rf: Unpin

impl<'a, Il, Rf, Df> UnwindSafe for GraphicsPipelineStateDesc<'a, Il, Rf, Df> where
    Df: UnwindSafe,
    Il: UnwindSafe,
    Rf: UnwindSafe

impl<'a, Il, Rf, Df> RefUnwindSafe for GraphicsPipelineStateDesc<'a, Il, Rf, Df> where
    Df: RefUnwindSafe,
    Il: RefUnwindSafe,
    Rf: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]