SwiftclassDirectResource

class DirectResource.Buffer

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 40

  1. funcstatic makeUnmanaged(descriptor: DirectResource.BufferDescriptor, device: MTLDevice?) throws(DirectResource.ResourceError) -> DirectResource.Buffer
  2. varstatic var kind: DirectResource.ResourceKind { get }
  3. deinitdeinit
  4. fieldlet _delegate: Synchronization.Mutex<DirectResource.ResourceDelegate?>
  5. fieldlet contents: Synchronization.Mutex<DirectResource.Buffer.Contents>
  6. fieldlet descriptor: DirectResource.BufferDescriptor
  7. fieldlet id: Foundation.UUID
  8. fieldlet isReplica: Bool
  9. func_Proto_read_v1<A where A: Error>((__owned RawSpan) throws(A) -> ()) throws(A) -> ()
  10. func_Proto_read_v2<A, B where B: Error, A: ~Swift.Copyable>((__owned RawSpan) throws(B) -> A) throws(B) -> A
  11. func_Proto_replace_v1<A where A: Error>((inout MutableRawSpan) throws(A) -> ()) throws(A) -> ()
  12. func_Proto_replace_v2<A, B where B: Error, A: ~Swift.Copyable>((inout MutableRawSpan) throws(B) -> A) throws(B) -> A
  13. func_Proto_update_v1<A where A: Error>(options: DirectResource.CommitOptions, _: (inout MutableRawSpan) throws(A) -> ()) throws(A) -> ()
  14. func_Proto_update_v1<A where A: Error>((inout MutableRawSpan) throws(A) -> ()) throws(A) -> ()
  15. func_Proto_update_v2<A, B where B: Error, A: ~Swift.Copyable>(options: DirectResource.CommitOptions, _: (inout MutableRawSpan) throws(B) -> A) throws(B) -> A
  16. func_Proto_update_v2<A, B where B: Error, A: ~Swift.Copyable>((inout MutableRawSpan) throws(B) -> A) throws(B) -> A
  17. func_show(maxBytes: Int) -> ()
  18. funcpayload(slot: DirectResource.ResourceSlot) -> DirectResource.MemoryResource?
  19. funcread(using: MTLCommandBuffer?) -> MTLBuffer
  20. funcread((UnsafeRawPointer, UInt) -> ()) -> ()
  21. funcread((__owned RawSpan) throws -> ()) throws -> ()
  22. funcreplace(using: MTLCommandBuffer?, options: DirectResource.CommitOptions) -> MTLBuffer
  23. funcreplace(using: MTLCommandBuffer?) -> MTLBuffer
  24. funcreplace((UnsafeMutableRawPointer, UInt) -> ()) -> ()
  25. funcreplace((inout MutableRawSpan) throws -> ()) throws -> ()
  26. funcreplaceWithBuffer<A where A: Error>((MTLBuffer) throws(A) -> ()) throws(A) -> ()
  27. funcreplaceWithBuffer_v2<A, B where B: Error, A: ~Swift.Copyable>((MTLBuffer) throws(B) -> A) throws(B) -> A
  28. functryReplace(using: MTLCommandBuffer?) -> MTLBuffer?
  29. funcupdate(options: DirectResource.CommitOptions, _: (inout MutableRawSpan) throws -> ()) throws -> ()
  30. funcupdate((UnsafeMutableRawPointer, UInt) -> ()) -> ()
  31. funcupdate((inout MutableRawSpan) throws -> ()) throws -> ()
  32. typealiastypealias Descriptor = DirectResource.BufferDescriptor
  33. typealiastypealias ID = Foundation.UUID
  34. typealiastypealias Update = DirectResource.BufferUpdate
  35. varfinal var _buffer: MTLBuffer? { get }
  36. varfinal var bytesUsed: Int { get set }
  37. varfinal var cType: DRBuffer_t { get }
  38. varfinal var clientId: UInt? { get }
  39. varfinal var label: String? { get set }
  40. varfinal var slots: [DirectResource.ResourceSlot] { get }
class Buffer {
    struct Contents {
        var clientId: Swift.UInt?
        var bytesUsed: Swift.Int?
        var payload: DirectResource.MemoryResource?
        var label: Swift.String?
    }
    let id: Foundation.UUID
    let isReplica: Swift.Bool
    let descriptor: DirectResource.BufferDescriptor
    let contents: Synchronization.Mutex<DirectResource.Buffer.Contents>
    let _delegate: Synchronization.Mutex<(any DirectResource.ResourceDelegate)?>

    final var _buffer: (any __C.MTLBuffer)? {
        get
    }
    final var bytesUsed: Swift.Int {
        get
        set
    }
    final var cType: __C.DRBuffer_t {
        get
    }
    final var clientId: Swift.UInt? {
        get
    }
    final var label: Swift.String? {
        get
        set
    }
    final var slots: [DirectResource.ResourceSlot] {
        get
    }

    final func replaceWithBuffer<A>(_: (_: any __C.MTLBuffer) throws(A) -> ()) throws(A) where A: Swift.Error
    final func replaceWithBuffer_v2<A, B>(_: (_: any __C.MTLBuffer) throws(B) -> A) throws(B) -> A where B: Swift.Error, A: ~Swift.Copyable
    final func tryReplace(using: (any __C.MTLCommandBuffer)?) -> (any __C.MTLBuffer)?
    final func _Proto_read_v1<A>(_: (_: consuming Swift.RawSpan) throws(A) -> ()) throws(A) where A: Swift.Error
    final func _Proto_read_v2<A, B>(_: (_: consuming Swift.RawSpan) throws(B) -> A) throws(B) -> A where B: Swift.Error, A: ~Swift.Copyable
    final func _Proto_update_v1<A>(options: DirectResource.CommitOptions, _: (_: inout Swift.MutableRawSpan) throws(A) -> ()) throws(A) where A: Swift.Error
    final func _Proto_update_v1<A>(_: (_: inout Swift.MutableRawSpan) throws(A) -> ()) throws(A) where A: Swift.Error
    final func _Proto_update_v2<A, B>(options: DirectResource.CommitOptions, _: (_: inout Swift.MutableRawSpan) throws(B) -> A) throws(B) -> A where B: Swift.Error, A: ~Swift.Copyable
    final func _Proto_update_v2<A, B>(_: (_: inout Swift.MutableRawSpan) throws(B) -> A) throws(B) -> A where B: Swift.Error, A: ~Swift.Copyable
    final func _Proto_replace_v1<A>(_: (_: inout Swift.MutableRawSpan) throws(A) -> ()) throws(A) where A: Swift.Error
    final func _Proto_replace_v2<A, B>(_: (_: inout Swift.MutableRawSpan) throws(B) -> A) throws(B) -> A where B: Swift.Error, A: ~Swift.Copyable
    final func read(using: (any __C.MTLCommandBuffer)?) -> any __C.MTLBuffer
    final func read(_: (Swift.UnsafeRawPointer, Swift.UInt) -> ())
    final func read(_: (_: consuming Swift.RawSpan) throws -> ()) throws
    final func _show(maxBytes: Swift.Int)
    final func update(options: DirectResource.CommitOptions, _: (_: inout Swift.MutableRawSpan) throws -> ()) throws
    final func update(_: (Swift.UnsafeMutableRawPointer, Swift.UInt) -> ())
    final func update(_: (_: inout Swift.MutableRawSpan) throws -> ()) throws
    final func payload(slot: DirectResource.ResourceSlot) -> DirectResource.MemoryResource?
    final func replace(using: (any __C.MTLCommandBuffer)?, options: DirectResource.CommitOptions) -> any __C.MTLBuffer
    final func replace(using: (any __C.MTLCommandBuffer)?) -> any __C.MTLBuffer
    final func replace(_: (Swift.UnsafeMutableRawPointer, Swift.UInt) -> ())
    final func replace(_: (_: inout Swift.MutableRawSpan) throws -> ()) throws

    static var kind: DirectResource.ResourceKind {
        get
    }

    static func makeUnmanaged(descriptor: DirectResource.BufferDescriptor, device: (any __C.MTLDevice)?) throws(DirectResource.ResourceError) -> DirectResource.Buffer

    deinit
}