pub struct GeneratedCommandsInfoNV<'a> {Show 15 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub pipeline_bind_point: PipelineBindPoint,
pub pipeline: Pipeline,
pub indirect_commands_layout: IndirectCommandsLayoutNV,
pub stream_count: u32,
pub p_streams: *const IndirectCommandsStreamNV,
pub sequences_count: u32,
pub preprocess_buffer: Buffer,
pub preprocess_offset: DeviceSize,
pub preprocess_size: DeviceSize,
pub sequences_count_buffer: Buffer,
pub sequences_count_offset: DeviceSize,
pub sequences_index_buffer: Buffer,
pub sequences_index_offset: DeviceSize,
/* private fields */
}Expand description
Native structure VkGeneratedCommandsInfoNV.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
pipeline_bind_point: PipelineBindPointNative field pipelineBindPoint.
pipeline: PipelineNative field pipeline.
indirect_commands_layout: IndirectCommandsLayoutNVNative field indirectCommandsLayout.
stream_count: u32Native field streamCount.
p_streams: *const IndirectCommandsStreamNVNative field pStreams.
sequences_count: u32Native field sequencesCount.
preprocess_buffer: BufferNative field preprocessBuffer.
preprocess_offset: DeviceSizeNative field preprocessOffset.
preprocess_size: DeviceSizeNative field preprocessSize.
sequences_count_buffer: BufferNative field sequencesCountBuffer.
sequences_count_offset: DeviceSizeNative field sequencesCountOffset.
sequences_index_buffer: BufferNative field sequencesIndexBuffer.
sequences_index_offset: DeviceSizeNative field sequencesIndexOffset.
Implementations§
Source§impl<'a> GeneratedCommandsInfoNV<'a>
impl<'a> GeneratedCommandsInfoNV<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_pipeline_bind_point(self, value: PipelineBindPoint) -> Self
pub fn set_pipeline_bind_point(self, value: PipelineBindPoint) -> Self
Set native field pipelineBindPoint without native effects.
Sourcepub fn set_pipeline(self, value: Pipeline) -> Self
pub fn set_pipeline(self, value: Pipeline) -> Self
Set native field pipeline without native effects.
Sourcepub fn set_indirect_commands_layout(
self,
value: IndirectCommandsLayoutNV,
) -> Self
pub fn set_indirect_commands_layout( self, value: IndirectCommandsLayoutNV, ) -> Self
Set native field indirectCommandsLayout without native effects.
Sourcepub fn set_stream_count(self, value: u32) -> Self
pub fn set_stream_count(self, value: u32) -> Self
Set native count streamCount 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_streams(
self,
value: &'a [IndirectCommandsStreamNV],
) -> Result<Self, ConstructionError>
pub fn set_streams( self, value: &'a [IndirectCommandsStreamNV], ) -> Result<Self, ConstructionError>
Borrow pStreams and set checked native count streamCount.
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.
Sourcepub fn set_sequences_count(self, value: u32) -> Self
pub fn set_sequences_count(self, value: u32) -> Self
Set native field sequencesCount without native effects.
Sourcepub fn set_preprocess_buffer(self, value: Buffer) -> Self
pub fn set_preprocess_buffer(self, value: Buffer) -> Self
Set native field preprocessBuffer without native effects.
Sourcepub fn set_preprocess_offset(self, value: DeviceSize) -> Self
pub fn set_preprocess_offset(self, value: DeviceSize) -> Self
Set native field preprocessOffset without native effects.
Sourcepub fn set_preprocess_size(self, value: DeviceSize) -> Self
pub fn set_preprocess_size(self, value: DeviceSize) -> Self
Set native field preprocessSize without native effects.
Sourcepub fn set_sequences_count_buffer(self, value: Buffer) -> Self
pub fn set_sequences_count_buffer(self, value: Buffer) -> Self
Set native field sequencesCountBuffer without native effects.
Sourcepub fn set_sequences_count_offset(self, value: DeviceSize) -> Self
pub fn set_sequences_count_offset(self, value: DeviceSize) -> Self
Set native field sequencesCountOffset without native effects.
Sourcepub fn set_sequences_index_buffer(self, value: Buffer) -> Self
pub fn set_sequences_index_buffer(self, value: Buffer) -> Self
Set native field sequencesIndexBuffer without native effects.
Sourcepub fn set_sequences_index_offset(self, value: DeviceSize) -> Self
pub fn set_sequences_index_offset(self, value: DeviceSize) -> Self
Set native field sequencesIndexOffset without native effects.
Sourcepub fn push_next<T: Extends<Self>>(
self,
next: &'a mut T,
) -> Result<Self, ConstructionError>
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>
Prepend one registry-compatible node, retaining its exclusive borrow.
The node must have a null p_next and both headers must have canonical tags.
Existing links are never traversed and remain written after the borrow ends.
Type compatibility does not establish enabled extensions or Vulkan valid usage.
§Errors
Returns a construction error for a changed structure tag or already-linked node.