pub struct GeometryTrianglesNV<'a> {Show 13 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub vertex_data: Buffer,
pub vertex_offset: DeviceSize,
pub vertex_count: u32,
pub vertex_stride: DeviceSize,
pub vertex_format: Format,
pub index_data: Buffer,
pub index_offset: DeviceSize,
pub index_count: u32,
pub index_type: IndexType,
pub transform_data: Buffer,
pub transform_offset: DeviceSize,
/* private fields */
}Expand description
Native structure VkGeometryTrianglesNV.
Fields§
§s_type: StructureTypeNative field sType.
p_next: *const c_voidNative field pNext.
vertex_data: BufferNative field vertexData.
vertex_offset: DeviceSizeNative field vertexOffset.
vertex_count: u32Native field vertexCount.
vertex_stride: DeviceSizeNative field vertexStride.
vertex_format: FormatNative field vertexFormat.
index_data: BufferNative field indexData.
index_offset: DeviceSizeNative field indexOffset.
index_count: u32Native field indexCount.
index_type: IndexTypeNative field indexType.
transform_data: BufferNative field transformData.
transform_offset: DeviceSizeNative field transformOffset.
Implementations§
Source§impl<'a> GeometryTrianglesNV<'a>
impl<'a> GeometryTrianglesNV<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct the record with its canonical sType tag and default native state.
Sourcepub fn set_vertex_data(self, value: Buffer) -> Self
pub fn set_vertex_data(self, value: Buffer) -> Self
Set native field vertexData without native effects.
Sourcepub fn set_vertex_offset(self, value: DeviceSize) -> Self
pub fn set_vertex_offset(self, value: DeviceSize) -> Self
Set native field vertexOffset without native effects.
Sourcepub fn set_vertex_count(self, value: u32) -> Self
pub fn set_vertex_count(self, value: u32) -> Self
Set native field vertexCount without native effects.
Sourcepub fn set_vertex_stride(self, value: DeviceSize) -> Self
pub fn set_vertex_stride(self, value: DeviceSize) -> Self
Set native field vertexStride without native effects.
Sourcepub fn set_vertex_format(self, value: Format) -> Self
pub fn set_vertex_format(self, value: Format) -> Self
Set native field vertexFormat without native effects.
Sourcepub fn set_index_data(self, value: Buffer) -> Self
pub fn set_index_data(self, value: Buffer) -> Self
Set native field indexData without native effects.
Sourcepub fn set_index_offset(self, value: DeviceSize) -> Self
pub fn set_index_offset(self, value: DeviceSize) -> Self
Set native field indexOffset without native effects.
Sourcepub fn set_index_count(self, value: u32) -> Self
pub fn set_index_count(self, value: u32) -> Self
Set native field indexCount without native effects.
Sourcepub fn set_index_type(self, value: IndexType) -> Self
pub fn set_index_type(self, value: IndexType) -> Self
Set native field indexType without native effects.
Sourcepub fn set_transform_data(self, value: Buffer) -> Self
pub fn set_transform_data(self, value: Buffer) -> Self
Set native field transformData without native effects.
Sourcepub fn set_transform_offset(self, value: DeviceSize) -> Self
pub fn set_transform_offset(self, value: DeviceSize) -> Self
Set native field transformOffset 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.