Struct ash::vk::PipelineShaderStageCreateInfo
source · #[repr(C)]pub struct PipelineShaderStageCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineShaderStageCreateFlags,
pub stage: ShaderStageFlags,
pub module: ShaderModule,
pub p_name: *const c_char,
pub p_specialization_info: *const SpecializationInfo<'a>,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: PipelineShaderStageCreateFlags
§stage: ShaderStageFlags
§module: ShaderModule
§p_name: *const c_char
§p_specialization_info: *const SpecializationInfo<'a>
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PipelineShaderStageCreateInfo<'a>
impl<'a> PipelineShaderStageCreateInfo<'a>
pub fn flags(self, flags: PipelineShaderStageCreateFlags) -> Self
pub fn stage(self, stage: ShaderStageFlags) -> Self
pub fn module(self, module: ShaderModule) -> Self
pub fn name(self, name: &'a CStr) -> Self
pub unsafe fn name_as_c_str(&self) -> Option<&CStr>
pub fn specialization_info( self, specialization_info: &'a SpecializationInfo<'a>, ) -> Self
sourcepub fn push_next<T: ExtendsPipelineShaderStageCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsPipelineShaderStageCreateInfo + ?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 PipelineShaderStageCreateInfo<'a>
impl<'a> Clone for PipelineShaderStageCreateInfo<'a>
source§fn clone(&self) -> PipelineShaderStageCreateInfo<'a>
fn clone(&self) -> PipelineShaderStageCreateInfo<'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 PipelineShaderStageCreateInfo<'a>
impl<'a> Debug for PipelineShaderStageCreateInfo<'a>
source§impl Default for PipelineShaderStageCreateInfo<'_>
impl Default for PipelineShaderStageCreateInfo<'_>
source§impl<'a> TaggedStructure for PipelineShaderStageCreateInfo<'a>
impl<'a> TaggedStructure for PipelineShaderStageCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_SHADER_STAGE_CREATE_INFO
impl<'a> Copy for PipelineShaderStageCreateInfo<'a>
impl Send for PipelineShaderStageCreateInfo<'_>
impl Sync for PipelineShaderStageCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for PipelineShaderStageCreateInfo<'a>
impl<'a> RefUnwindSafe for PipelineShaderStageCreateInfo<'a>
impl<'a> Unpin for PipelineShaderStageCreateInfo<'a>
impl<'a> UnwindSafe for PipelineShaderStageCreateInfo<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)