GraphicsPipelineStateDesc

Struct GraphicsPipelineStateDesc 

Source
#[repr(transparent)]
pub struct GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>(pub D3D12_GRAPHICS_PIPELINE_STATE_DESC, _, _, _, _);
Expand description

Wrapper around D3D12_GRAPHICS_PIPELINE_STATE_DESC structure

Tuple Fields§

§0: D3D12_GRAPHICS_PIPELINE_STATE_DESC

Implementations§

Source§

impl<'rs, 'sh, 'so, 'il> GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

Source

pub fn set_root_signature( &mut self, root_signature: &'rs RootSignature, ) -> &mut Self

Source

pub fn with_root_signature( self, root_signature: &'rs RootSignature, ) -> GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

Source

pub fn root_signature(&self) -> RootSignature

Source

pub fn set_vs_bytecode( &mut self, bytecode: &'sh ShaderBytecode<'_>, ) -> &mut Self

Source

pub fn with_vs_bytecode(self, bytecode: &'sh ShaderBytecode<'_>) -> Self

Source

pub fn vs_bytecode(&self) -> &'sh ShaderBytecode<'_>

Source

pub fn set_ps_bytecode( &mut self, bytecode: &'sh ShaderBytecode<'_>, ) -> &mut Self

Source

pub fn with_ps_bytecode(self, bytecode: &'sh ShaderBytecode<'_>) -> Self

Source

pub fn ps_bytecode(&self) -> &'sh ShaderBytecode<'_>

Source

pub fn set_ds_bytecode( &mut self, bytecode: &'sh ShaderBytecode<'_>, ) -> &mut Self

Source

pub fn with_ds_bytecode(self, bytecode: &'sh ShaderBytecode<'_>) -> Self

Source

pub fn ds_bytecode(&self) -> &'sh ShaderBytecode<'_>

Source

pub fn set_hs_bytecode( &mut self, bytecode: &'sh ShaderBytecode<'_>, ) -> &mut Self

Source

pub fn with_hs_bytecode(self, bytecode: &'sh ShaderBytecode<'_>) -> Self

Source

pub fn hs_bytecode(&self) -> &'sh ShaderBytecode<'_>

Source

pub fn set_gs_bytecode( &mut self, bytecode: &'sh ShaderBytecode<'_>, ) -> &mut Self

Source

pub fn with_gs_bytecode(self, bytecode: &'sh ShaderBytecode<'_>) -> Self

Source

pub fn gs_bytecode(&self) -> &'sh ShaderBytecode<'_>

Source

pub fn set_stream_output( &mut self, stream_output: StreamOutputDesc<'_>, ) -> &mut Self

Source

pub fn with_stream_output(self, stream_output: StreamOutputDesc<'_>) -> Self

Source

pub fn stream_output(&self) -> &'so StreamOutputDesc<'_>

Source

pub fn set_blend_state(&mut self, blend_state: BlendDesc) -> &mut Self

Source

pub fn with_blend_state(self, blend_state: BlendDesc) -> Self

Source

pub fn blend_state(&self) -> BlendDesc

Source

pub fn set_sample_mask(&mut self, sample_mask: u32) -> &mut Self

Source

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

Source

pub fn sample_mask(&self) -> u32

Source

pub fn set_rasterizer_state( &mut self, rasterizer_state: RasterizerDesc, ) -> &mut Self

Source

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

Source

pub fn rasterizer_state(&self) -> RasterizerDesc

Source

pub fn set_depth_stencil_state( &mut self, depth_stencil_state: DepthStencilDesc, ) -> &mut Self

Source

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

Source

pub fn depth_stencil_state(&self) -> DepthStencilDesc

Source

pub fn set_input_layout( &mut self, input_layout: &'il InputLayoutDesc<'_>, ) -> &mut Self

Source

pub fn with_input_layout(self, input_layout: &'il InputLayoutDesc<'_>) -> Self

Source

pub fn input_layout(&self) -> &'il InputLayoutDesc<'_>

Source

pub fn set_ib_strip_cut_value( &mut self, ib_strip_cut_value: IndexBufferStripCutValue, ) -> &mut Self

Source

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

Source

pub fn ib_strip_cut_value(&self) -> IndexBufferStripCutValue

Source

pub fn set_primitive_topology_type( &mut self, primitive_topology_type: PrimitiveTopologyType, ) -> &mut Self

Source

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

Source

pub fn primitive_topology_type(&self) -> PrimitiveTopologyType

Source

pub fn set_rtv_formats(&mut self, rtv_formats: &[Format]) -> &mut Self

Source

pub fn with_rtv_formats(self, rtv_formats: &[Format]) -> Self

Source

pub fn rtv_formats(&self) -> &[Format]

Source

pub fn num_render_targets(&self) -> u32

Source

pub fn set_dsv_format(&mut self, dsv_format: Format) -> &mut Self

Source

pub fn with_dsv_format(self, dsv_format: Format) -> Self

Source

pub fn dsv_format(&self) -> Format

Source

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

Source

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

Source

pub fn sample_desc(&self) -> SampleDesc

Source

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

Source

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

Source

pub fn node_mask(&self) -> u32

Source

pub fn set_cached_pso( &mut self, cached_pso: &'sh CachedPipelineState<'_>, ) -> &mut Self

Source

pub fn with_cached_pso(self, cached_pso: &'sh CachedPipelineState<'_>) -> Self

Source

pub fn cached_pso(&self) -> &'sh CachedPipelineState<'_>

Source

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

Source

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

Source

pub fn flags(&self) -> PipelineStateFlags

Trait Implementations§

Source§

impl<'rs, 'sh, 'so, 'il> Debug for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'rs, 'sh, 'so, 'il> Default for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'rs, 'sh, 'so, 'il> Freeze for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

§

impl<'rs, 'sh, 'so, 'il> RefUnwindSafe for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

§

impl<'rs, 'sh, 'so, 'il> !Send for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

§

impl<'rs, 'sh, 'so, 'il> !Sync for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

§

impl<'rs, 'sh, 'so, 'il> Unpin for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

§

impl<'rs, 'sh, 'so, 'il> UnwindSafe for GraphicsPipelineStateDesc<'rs, 'sh, 'so, 'il>

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> 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, 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.