pub struct PipelineBinaryDataKHR<'a> {
pub data_size: usize,
pub p_data: *mut c_void,
/* private fields */
}Expand description
Native structure VkPipelineBinaryDataKHR.
Fields§
§data_size: usizeNative field dataSize.
p_data: *mut c_voidNative field pData.
Implementations§
Source§impl<'a> PipelineBinaryDataKHR<'a>
impl<'a> PipelineBinaryDataKHR<'a>
Sourcepub fn set_data_size(self, value: usize) -> Self
pub fn set_data_size(self, value: usize) -> Self
Set native count dataSize directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
Sourcepub fn set_data(self, value: &'a mut [u8]) -> Result<Self, ConstructionError>
pub fn set_data(self, value: &'a mut [u8]) -> Result<Self, ConstructionError>
Borrow pData and set checked native byte size dataSize.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
§Errors
Returns a construction error if the length exceeds the native count width.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for PipelineBinaryDataKHR<'a>
impl<'a> !Sync for PipelineBinaryDataKHR<'a>
impl<'a> !UnwindSafe for PipelineBinaryDataKHR<'a>
impl<'a> Forget for PipelineBinaryDataKHR<'a>
impl<'a> Freeze for PipelineBinaryDataKHR<'a>
impl<'a> Move for PipelineBinaryDataKHR<'a>
impl<'a> RefUnwindSafe for PipelineBinaryDataKHR<'a>
impl<'a> Unpin for PipelineBinaryDataKHR<'a>
impl<'a> UnsafeUnpin for PipelineBinaryDataKHR<'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