SwiftclassRealityFoundation
class RealityFoundation.LowLevelMesh
Members 20
- deinit
deinit - field
let coreMesh: DirectResource.Mesh+0x10 - field
let descriptor: RealityFoundation.LowLevelMesh.Descriptor+0x18 - func
read(bufferIndex: Int, using: MTLCommandBuffer) -> MTLBuffer - func
readIndices(using: MTLCommandBuffer) -> MTLBuffer - func
replace(bufferIndex: Int, using: MTLCommandBuffer) -> MTLBuffer - func
replaceIndices(using: MTLCommandBuffer) -> MTLBuffer - func
replaceUnsafeMutableBytes(bufferIndex: Int, _: (UnsafeMutableRawBufferPointer) -> ()) -> () - func
replaceUnsafeMutableIndices((UnsafeMutableRawBufferPointer) -> ()) -> () - func
withUnsafeBytes(bufferIndex: Int, _: (UnsafeRawBufferPointer) -> ()) -> () - func
withUnsafeIndices((UnsafeRawBufferPointer) -> ()) -> () - func
withUnsafeMutableBytes(bufferIndex: Int, _: (UnsafeMutableRawBufferPointer) -> ()) -> () - func
withUnsafeMutableIndices((UnsafeMutableRawBufferPointer) -> ()) -> () - init
RealityFoundation.LowLevelMesh.__allocating_init(drMesh: UnsafeMutableRawPointer) -> RealityFoundation.LowLevelMesh - init
RealityFoundation.LowLevelMesh.__allocating_init(descriptor: RealityFoundation.LowLevelMesh.Descriptor) throws -> RealityFoundation.LowLevelMesh - init
RealityFoundation.LowLevelMesh.__allocating_init(coreDescriptor: DirectResource.MeshDescriptor) throws -> RealityFoundation.LowLevelMesh - init
RealityFoundation.LowLevelMesh.__allocating_init(from: DirectResource.Mesh) -> RealityFoundation.LowLevelMesh - var
var indexCapacity: Int { get } - var
var parts: RealityFoundation.LowLevelMesh.PartsCollection { get set } - var
var vertexCapacity: Int { get }
Header
class LowLevelMesh { enum VertexSemantic { case position case color case normal case tangent case bitangent case uv0 case uv1 case uv2 case uv3 case uv4 case uv5 case uv6 case uv7 case unspecified } struct Attribute { var semantic: RealityFoundation.LowLevelMesh.VertexSemantic var format: __C.MTLVertexFormat var offset: Swift.Int var layoutIndex: Swift.Int init(semantic: RealityFoundation.LowLevelMesh.VertexSemantic, format: __C.MTLVertexFormat, layoutIndex: Swift.Int, offset: Swift.Int) } struct Layout { var bufferIndex: Swift.Int var bufferOffset: Swift.Int var bufferStride: Swift.Int var stepFunction: __C.MTLVertexStepFunction var stepRate: Swift.Int init(bufferIndex: Swift.Int, bufferOffset: Swift.Int, bufferStride: Swift.Int, stepFunction: __C.MTLVertexStepFunction, stepRate: Swift.Int) init(bufferIndex: Swift.Int, bufferOffset: Swift.Int, bufferStride: Swift.Int) } struct Descriptor { var vertexBufferCount: Swift.Int var vertexCapacity: Swift.Int var vertexAttributes: [RealityFoundation.LowLevelMesh.Attribute] var vertexLayouts: [RealityFoundation.LowLevelMesh.Layout] var indexCapacity: Swift.Int var indexType: __C.MTLIndexType var instanceCapacity: Swift.Int var allowsPrimitiveRestart: Swift.Bool init(vertexCapacity: Swift.Int, vertexAttributes: [RealityFoundation.LowLevelMesh.Attribute], vertexLayouts: [RealityFoundation.LowLevelMesh.Layout], indexCapacity: Swift.Int, indexType: __C.MTLIndexType, instanceCapacity: Swift.Int) init(vertexCapacity: Swift.Int, vertexAttributes: [RealityFoundation.LowLevelMesh.Attribute], vertexLayouts: [RealityFoundation.LowLevelMesh.Layout], indexCapacity: Swift.Int, indexType: __C.MTLIndexType) static var maxVertexBufferCount: Swift.Int { get } } struct Part { var indexOffset: Swift.Int var indexCount: Swift.Int var topology: __C.MTLPrimitiveType var materialIndex: Swift.Int var bounds: RealityKit.BoundingBox init(indexOffset: Swift.Int, indexCount: Swift.Int, topology: __C.MTLPrimitiveType, materialIndex: Swift.Int, bounds: RealityKit.BoundingBox) } struct PartsCollection { var coreMesh: DirectResource.Mesh var count: Swift.Int { get } var endIndex: Swift.Int { get } var startIndex: Swift.Int { get } func replaceAll<A>(_: A) where A: Swift.Sequence, A.Element == RealityFoundation.LowLevelMesh.Part func index(after: Swift.Int) -> Swift.Int func append<A>(contentsOf: A) where A: Swift.Sequence, A.Element == RealityFoundation.LowLevelMesh.Part func append(_: RealityFoundation.LowLevelMesh.Part) func removeAll() subscript(_: Swift.Int) -> RealityFoundation.LowLevelMesh.Part { get set } } let coreMesh: DirectResource.Mesh let descriptor: RealityFoundation.LowLevelMesh.Descriptor var indexCapacity: Swift.Int { get } var vertexCapacity: Swift.Int { get } var parts: RealityFoundation.LowLevelMesh.PartsCollection { get set } init(descriptor: RealityFoundation.LowLevelMesh.Descriptor) throws init(from: DirectResource.Mesh) func read(bufferIndex: Swift.Int, using: any __C.MTLCommandBuffer) -> any __C.MTLBuffer func replace(bufferIndex: Swift.Int, using: any __C.MTLCommandBuffer) -> any __C.MTLBuffer func readIndices(using: any __C.MTLCommandBuffer) -> any __C.MTLBuffer func replaceIndices(using: any __C.MTLCommandBuffer) -> any __C.MTLBuffer func withUnsafeBytes(bufferIndex: Swift.Int, _: (_: Swift.UnsafeRawBufferPointer) -> ()) func withUnsafeMutableBytes(bufferIndex: Swift.Int, _: (_: Swift.UnsafeMutableRawBufferPointer) -> ()) func replaceUnsafeMutableBytes(bufferIndex: Swift.Int, _: (_: Swift.UnsafeMutableRawBufferPointer) -> ()) func withUnsafeIndices(_: (_: Swift.UnsafeRawBufferPointer) -> ()) func withUnsafeMutableIndices(_: (_: Swift.UnsafeMutableRawBufferPointer) -> ()) func replaceUnsafeMutableIndices(_: (_: Swift.UnsafeMutableRawBufferPointer) -> ()) init(drMesh: Swift.UnsafeMutableRawPointer) init(coreDescriptor: DirectResource.MeshDescriptor) throws deinit }