pub struct CudaLaunchInfoNV<'a> {Show 14 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub function: CudaFunctionNV,
pub grid_dim_x: u32,
pub grid_dim_y: u32,
pub grid_dim_z: u32,
pub block_dim_x: u32,
pub block_dim_y: u32,
pub block_dim_z: u32,
pub shared_mem_bytes: u32,
pub param_count: usize,
pub p_params: *const *const c_void,
pub extra_count: usize,
pub p_extras: *const *const c_void,
/* private fields */
}Expand description
Native structure VkCudaLaunchInfoNV.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
function: CudaFunctionNVNative field function.
grid_dim_x: u32Native field gridDimX.
grid_dim_y: u32Native field gridDimY.
grid_dim_z: u32Native field gridDimZ.
block_dim_x: u32Native field blockDimX.
block_dim_y: u32Native field blockDimY.
block_dim_z: u32Native field blockDimZ.
Native field sharedMemBytes.
param_count: usizeNative field paramCount.
p_params: *const *const c_voidNative field pParams.
extra_count: usizeNative field extraCount.
p_extras: *const *const c_voidNative field pExtras.
Implementations§
Source§impl<'a> CudaLaunchInfoNV<'a>
impl<'a> CudaLaunchInfoNV<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_function(self, value: CudaFunctionNV) -> Self
pub fn set_function(self, value: CudaFunctionNV) -> Self
Set native field function without native effects.
Sourcepub fn set_grid_dim_x(self, value: u32) -> Self
pub fn set_grid_dim_x(self, value: u32) -> Self
Set native field gridDimX without native effects.
Sourcepub fn set_grid_dim_y(self, value: u32) -> Self
pub fn set_grid_dim_y(self, value: u32) -> Self
Set native field gridDimY without native effects.
Sourcepub fn set_grid_dim_z(self, value: u32) -> Self
pub fn set_grid_dim_z(self, value: u32) -> Self
Set native field gridDimZ without native effects.
Sourcepub fn set_block_dim_x(self, value: u32) -> Self
pub fn set_block_dim_x(self, value: u32) -> Self
Set native field blockDimX without native effects.
Sourcepub fn set_block_dim_y(self, value: u32) -> Self
pub fn set_block_dim_y(self, value: u32) -> Self
Set native field blockDimY without native effects.
Sourcepub fn set_block_dim_z(self, value: u32) -> Self
pub fn set_block_dim_z(self, value: u32) -> Self
Set native field blockDimZ without native effects.
Set native field sharedMemBytes without native effects.
Sourcepub fn set_param_count(self, value: usize) -> Self
pub fn set_param_count(self, value: usize) -> Self
Set native count paramCount 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_params(
self,
value: &'a [*const c_void],
) -> Result<Self, ConstructionError>
pub fn set_params( self, value: &'a [*const c_void], ) -> Result<Self, ConstructionError>
Borrow pParams and set checked native count paramCount.
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_extra_count(self, value: usize) -> Self
pub fn set_extra_count(self, value: usize) -> Self
Set native count extraCount 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_extras(
self,
value: &'a [*const c_void],
) -> Result<Self, ConstructionError>
pub fn set_extras( self, value: &'a [*const c_void], ) -> Result<Self, ConstructionError>
Borrow pExtras and set checked native count extraCount.
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 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.