SwiftclassRealityFoundation

class RealityFoundation.LowLevelMesh

Members 20

  1. deinitdeinit
  2. fieldlet coreMesh: DirectResource.Mesh+0x10
  3. fieldlet descriptor: RealityFoundation.LowLevelMesh.Descriptor+0x18
  4. funcread(bufferIndex: Int, using: MTLCommandBuffer) -> MTLBuffer
  5. funcreadIndices(using: MTLCommandBuffer) -> MTLBuffer
  6. funcreplace(bufferIndex: Int, using: MTLCommandBuffer) -> MTLBuffer
  7. funcreplaceIndices(using: MTLCommandBuffer) -> MTLBuffer
  8. funcreplaceUnsafeMutableBytes(bufferIndex: Int, _: (UnsafeMutableRawBufferPointer) -> ()) -> ()
  9. funcreplaceUnsafeMutableIndices((UnsafeMutableRawBufferPointer) -> ()) -> ()
  10. funcwithUnsafeBytes(bufferIndex: Int, _: (UnsafeRawBufferPointer) -> ()) -> ()
  11. funcwithUnsafeIndices((UnsafeRawBufferPointer) -> ()) -> ()
  12. funcwithUnsafeMutableBytes(bufferIndex: Int, _: (UnsafeMutableRawBufferPointer) -> ()) -> ()
  13. funcwithUnsafeMutableIndices((UnsafeMutableRawBufferPointer) -> ()) -> ()
  14. initRealityFoundation.LowLevelMesh.__allocating_init(drMesh: UnsafeMutableRawPointer) -> RealityFoundation.LowLevelMesh
  15. initRealityFoundation.LowLevelMesh.__allocating_init(descriptor: RealityFoundation.LowLevelMesh.Descriptor) throws -> RealityFoundation.LowLevelMesh
  16. initRealityFoundation.LowLevelMesh.__allocating_init(coreDescriptor: DirectResource.MeshDescriptor) throws -> RealityFoundation.LowLevelMesh
  17. initRealityFoundation.LowLevelMesh.__allocating_init(from: DirectResource.Mesh) -> RealityFoundation.LowLevelMesh
  18. varvar indexCapacity: Int { get }
  19. varvar parts: RealityFoundation.LowLevelMesh.PartsCollection { get set }
  20. varvar vertexCapacity: Int { get }
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
}