pub struct PushConstantRangeBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PushConstantRangeBuilder<'a>
impl<'a> PushConstantRangeBuilder<'a>
pub fn stage_flags(self, stage_flags: ShaderStageFlags) -> Self
pub fn offset(self, offset: u32) -> Self
pub fn size(self, size: u32) -> Self
Sourcepub fn build(self) -> PushConstantRange
pub fn build(self) -> PushConstantRange
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 PushConstantRangeBuilder<'a>
impl<'a> Deref for PushConstantRangeBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for PushConstantRangeBuilder<'a>
impl<'a> RefUnwindSafe for PushConstantRangeBuilder<'a>
impl<'a> Send for PushConstantRangeBuilder<'a>
impl<'a> Sync for PushConstantRangeBuilder<'a>
impl<'a> Unpin for PushConstantRangeBuilder<'a>
impl<'a> UnwindSafe for PushConstantRangeBuilder<'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