Skip to main content

GraphicsPipelineStateDesc

Struct GraphicsPipelineStateDesc 

Source
pub struct GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> {
Show 20 fields pub root_signature: Option<RootSignature>, pub vs: Option<ShaderBytecode<'a>>, pub ps: Option<ShaderBytecode<'b>>, pub ds: Option<ShaderBytecode<'c>>, pub hs: Option<ShaderBytecode<'d>>, pub gs: Option<ShaderBytecode<'e>>, pub stream_output: Option<StreamOutputDesc<'f>>, 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<'a>>§ps: Option<ShaderBytecode<'b>>§ds: Option<ShaderBytecode<'c>>§hs: Option<ShaderBytecode<'d>>§gs: Option<ShaderBytecode<'e>>§stream_output: Option<StreamOutputDesc<'f>>§blend_state: BlendDesc§sample_mask: u32§rasterizer_state: RasterizerDesc§depth_stencil_state: DepthStencilDesc§input_layout: Il§ib_strip_cut_value: IndexBufferStripCutValue§primitive_topology_type: PrimitiveTopologyType§rtv_formats: Rf§dsv_format: Df§sample_desc: SampleDesc§node_mask: u32§cached_pso: Option<CachedPipelineState>§flags: Option<PipelineStateFlags>

Implementations§

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, (), (), ()>

Source

pub fn new() -> Self

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>

Source

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

Source

pub fn vs(self, code: ShaderBytecode<'a>) -> Self

Source

pub fn ps(self, code: ShaderBytecode<'b>) -> Self

Source

pub fn ds(self, code: ShaderBytecode<'c>) -> Self

Source

pub fn hs(self, code: ShaderBytecode<'d>) -> Self

Source

pub fn gs(self, code: ShaderBytecode<'e>) -> Self

Source

pub fn stream_output(self, so: StreamOutputDesc<'f>) -> Self

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, Rf, Df> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, (), Rf, Df>

Source

pub fn input_layout<'g>( self, input_layout: InputLayoutDesc<'g>, ) -> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, InputLayoutDesc<'g>, Rf, Df>

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Df> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, (), Df>

Source

pub fn rtv_formats<'g>( self, rtv_formats: &'g [Format], ) -> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, &'g [Format], Df>

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, ()>

Source

pub fn dsv_format( self, dsv_format: Format, ) -> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Format>

Trait Implementations§

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il: Clone, Rf: Clone, Df: Clone> Clone for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>

Source§

fn clone(&self) -> GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il: Debug, Rf: Debug, Df: Debug> Debug for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> Freeze for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>
where Il: Freeze, Rf: Freeze, Df: Freeze,

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> RefUnwindSafe for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> Send for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>
where Il: Send, Rf: Send, Df: Send,

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> Sync for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>
where Il: Sync, Rf: Sync, Df: Sync,

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> Unpin for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>
where Il: Unpin, Rf: Unpin, Df: Unpin,

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> UnsafeUnpin for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>
where Il: UnsafeUnpin, Rf: UnsafeUnpin, Df: UnsafeUnpin,

§

impl<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df> UnwindSafe for GraphicsPipelineStateDesc<'a, 'b, 'c, 'd, 'e, 'f, Il, Rf, Df>
where Il: UnwindSafe, Rf: UnwindSafe, Df: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.