Struct ash::vk::PushConstantsInfoKHR
source · #[repr(C)]pub struct PushConstantsInfoKHR<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub layout: PipelineLayout,
pub stage_flags: ShaderStageFlags,
pub offset: u32,
pub size: u32,
pub p_values: *const c_void,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§layout: PipelineLayout
§stage_flags: ShaderStageFlags
§offset: u32
§size: u32
§p_values: *const c_void
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PushConstantsInfoKHR<'a>
impl<'a> PushConstantsInfoKHR<'a>
pub fn layout(self, layout: PipelineLayout) -> Self
pub fn stage_flags(self, stage_flags: ShaderStageFlags) -> Self
pub fn offset(self, offset: u32) -> Self
pub fn values(self, values: &'a [u8]) -> Self
sourcepub fn push_next<T: ExtendsPushConstantsInfoKHR + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsPushConstantsInfoKHR + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for PushConstantsInfoKHR<'a>
impl<'a> Clone for PushConstantsInfoKHR<'a>
source§fn clone(&self) -> PushConstantsInfoKHR<'a>
fn clone(&self) -> PushConstantsInfoKHR<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for PushConstantsInfoKHR<'a>
impl<'a> Debug for PushConstantsInfoKHR<'a>
source§impl Default for PushConstantsInfoKHR<'_>
impl Default for PushConstantsInfoKHR<'_>
source§impl<'a> TaggedStructure for PushConstantsInfoKHR<'a>
impl<'a> TaggedStructure for PushConstantsInfoKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PUSH_CONSTANTS_INFO_KHR
impl<'a> Copy for PushConstantsInfoKHR<'a>
impl Send for PushConstantsInfoKHR<'_>
impl Sync for PushConstantsInfoKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for PushConstantsInfoKHR<'a>
impl<'a> RefUnwindSafe for PushConstantsInfoKHR<'a>
impl<'a> Unpin for PushConstantsInfoKHR<'a>
impl<'a> UnwindSafe for PushConstantsInfoKHR<'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