pub struct GeometryAABBNV<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub aabb_data: Buffer,
pub num_aab_bs: u32,
pub stride: u32,
pub offset: DeviceSize,
/* private fields */
}Expand description
Native structure VkGeometryAABBNV.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
aabb_data: BufferNative field aabbData.
num_aab_bs: u32Native field numAABBs.
stride: u32Native field stride.
offset: DeviceSizeNative field offset.
Implementations§
Source§impl<'a> GeometryAABBNV<'a>
impl<'a> GeometryAABBNV<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_aabb_data(self, value: Buffer) -> Self
pub fn set_aabb_data(self, value: Buffer) -> Self
Set native field aabbData without native effects.
Sourcepub fn set_num_aab_bs(self, value: u32) -> Self
pub fn set_num_aab_bs(self, value: u32) -> Self
Set native field numAABBs without native effects.
Sourcepub fn set_stride(self, value: u32) -> Self
pub fn set_stride(self, value: u32) -> Self
Set native field stride without native effects.
Sourcepub fn set_offset(self, value: DeviceSize) -> Self
pub fn set_offset(self, value: DeviceSize) -> Self
Set native field offset 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.