pub struct ShaderCreateInfoEXTBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ShaderCreateInfoEXTBuilder<'a>
impl<'a> ShaderCreateInfoEXTBuilder<'a>
pub fn flags(self, flags: ShaderCreateFlagsEXT) -> Self
pub fn stage(self, stage: ShaderStageFlags) -> Self
pub fn next_stage(self, next_stage: ShaderStageFlags) -> Self
pub fn code_type(self, code_type: ShaderCodeTypeEXT) -> Self
pub fn code(self, code: &'a [u8]) -> Self
pub fn name(self, name: &'a CStr) -> Self
pub fn set_layouts(self, set_layouts: &'a [DescriptorSetLayout]) -> Self
pub fn push_constant_ranges( self, push_constant_ranges: &'a [PushConstantRange], ) -> Self
pub fn specialization_info( self, specialization_info: &'a SpecializationInfo, ) -> Self
Sourcepub fn push_next<T: ExtendsShaderCreateInfoEXT>(self, next: &'a mut T) -> Self
pub fn push_next<T: ExtendsShaderCreateInfoEXT>(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 builder.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Sourcepub fn build(self) -> ShaderCreateInfoEXT
pub fn build(self) -> ShaderCreateInfoEXT
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations§
Source§impl<'a> Deref for ShaderCreateInfoEXTBuilder<'a>
impl<'a> Deref for ShaderCreateInfoEXTBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShaderCreateInfoEXTBuilder<'a>
impl<'a> RefUnwindSafe for ShaderCreateInfoEXTBuilder<'a>
impl<'a> !Send for ShaderCreateInfoEXTBuilder<'a>
impl<'a> !Sync for ShaderCreateInfoEXTBuilder<'a>
impl<'a> Unpin for ShaderCreateInfoEXTBuilder<'a>
impl<'a> UnwindSafe for ShaderCreateInfoEXTBuilder<'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