MeshShaderPipelineStateDesc

Struct MeshShaderPipelineStateDesc 

Source
#[repr(C)]
pub struct MeshShaderPipelineStateDesc<'rs, 'sh> { /* private fields */ }
Expand description

Mesh shader pipeline description struct (a convenience struct that does not have C counterpart)

Implementations§

Source§

impl<'rs, 'sh> MeshShaderPipelineStateDesc<'rs, 'sh>

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) -> Self

Source

pub fn root_signature(&self) -> RootSignature

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

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) -> ShaderBytecode<'sh>

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_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_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 set_dsv_format(&mut self, dsv_format: Format) -> &mut Self

Source

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

Source

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

Source

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

Source

pub fn flags(&self) -> PipelineStateFlags

Source

pub fn as_byte_stream(&self) -> &[u8]

Trait Implementations§

Source§

impl<'rs, 'sh> Debug for MeshShaderPipelineStateDesc<'rs, 'sh>

Source§

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

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

impl<'rs, 'sh> Default for MeshShaderPipelineStateDesc<'rs, 'sh>

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<'rs, 'sh> Freeze for MeshShaderPipelineStateDesc<'rs, 'sh>

§

impl<'rs, 'sh> RefUnwindSafe for MeshShaderPipelineStateDesc<'rs, 'sh>

§

impl<'rs, 'sh> !Send for MeshShaderPipelineStateDesc<'rs, 'sh>

§

impl<'rs, 'sh> !Sync for MeshShaderPipelineStateDesc<'rs, 'sh>

§

impl<'rs, 'sh> Unpin for MeshShaderPipelineStateDesc<'rs, 'sh>

§

impl<'rs, 'sh> UnwindSafe for MeshShaderPipelineStateDesc<'rs, 'sh>

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.