pub struct RootParameter<'a>(/* private fields */);
Expand description
Wrapper around D3D12_ROOT_PARAMETER1 structure
Implementations§
Source§impl<'a> RootParameter<'a>
impl<'a> RootParameter<'a>
pub fn parameter_type(&self) -> RootParameterType
pub fn new_descriptor_table( self, descriptor_table: &'a RootDescriptorTable<'a>, ) -> Self
pub fn descriptor_table(&self) -> Option<RootDescriptorTable<'_>>
pub fn new_constants(self, constants: &RootConstants) -> Self
pub fn constants(&self) -> Option<RootConstants>
pub fn new_descriptor( self, descriptor: &RootDescriptor, descriptor_type: RootParameterType, ) -> Self
pub fn descriptor(&self) -> Option<RootDescriptor>
pub fn set_shader_visibility( &mut self, shader_visibility: ShaderVisibility, ) -> &mut Self
pub fn with_shader_visibility(self, shader_visibility: ShaderVisibility) -> Self
pub fn shader_visibility(&self) -> ShaderVisibility
Trait Implementations§
Source§impl<'a> Debug for RootParameter<'a>
impl<'a> Debug for RootParameter<'a>
Source§impl<'a> Default for RootParameter<'a>
impl<'a> Default for RootParameter<'a>
Source§fn default() -> RootParameter<'a>
fn default() -> RootParameter<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RootParameter<'a>
impl<'a> RefUnwindSafe for RootParameter<'a>
impl<'a> !Send for RootParameter<'a>
impl<'a> !Sync for RootParameter<'a>
impl<'a> Unpin for RootParameter<'a>
impl<'a> UnwindSafe for RootParameter<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more