SwiftclassDirectResource
class DirectResource.Buffer
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolDirectResource.MutableResource
- protocolDirectResource.ResourceProtocol
- protocolSwift.Identifiable
Members 40
- func
static makeUnmanaged(descriptor: DirectResource.BufferDescriptor, device: MTLDevice?) throws(DirectResource.ResourceError) -> DirectResource.Buffer - var
static var kind: DirectResource.ResourceKind { get } - deinit
deinit - field
let _delegate: Synchronization.Mutex<DirectResource.ResourceDelegate?> - field
let contents: Synchronization.Mutex<DirectResource.Buffer.Contents> - field
let descriptor: DirectResource.BufferDescriptor - field
let id: Foundation.UUID - field
let isReplica: Bool - func
_Proto_read_v1<A where A: Error>((__owned RawSpan) throws(A) -> ()) throws(A) -> () - func
_Proto_read_v2<A, B where B: Error, A: ~Swift.Copyable>((__owned RawSpan) throws(B) -> A) throws(B) -> A - func
_Proto_replace_v1<A where A: Error>((inout MutableRawSpan) throws(A) -> ()) throws(A) -> () - func
_Proto_replace_v2<A, B where B: Error, A: ~Swift.Copyable>((inout MutableRawSpan) throws(B) -> A) throws(B) -> A - func
_Proto_update_v1<A where A: Error>(options: DirectResource.CommitOptions, _: (inout MutableRawSpan) throws(A) -> ()) throws(A) -> () - func
_Proto_update_v1<A where A: Error>((inout MutableRawSpan) throws(A) -> ()) throws(A) -> () - func
_Proto_update_v2<A, B where B: Error, A: ~Swift.Copyable>(options: DirectResource.CommitOptions, _: (inout MutableRawSpan) throws(B) -> A) throws(B) -> A - func
_Proto_update_v2<A, B where B: Error, A: ~Swift.Copyable>((inout MutableRawSpan) throws(B) -> A) throws(B) -> A - func
_show(maxBytes: Int) -> () - func
payload(slot: DirectResource.ResourceSlot) -> DirectResource.MemoryResource? - func
read(using: MTLCommandBuffer?) -> MTLBuffer - func
read((UnsafeRawPointer, UInt) -> ()) -> () - func
read((__owned RawSpan) throws -> ()) throws -> () - func
replace(using: MTLCommandBuffer?, options: DirectResource.CommitOptions) -> MTLBuffer - func
replace(using: MTLCommandBuffer?) -> MTLBuffer - func
replace((UnsafeMutableRawPointer, UInt) -> ()) -> () - func
replace((inout MutableRawSpan) throws -> ()) throws -> () - func
replaceWithBuffer<A where A: Error>((MTLBuffer) throws(A) -> ()) throws(A) -> () - func
replaceWithBuffer_v2<A, B where B: Error, A: ~Swift.Copyable>((MTLBuffer) throws(B) -> A) throws(B) -> A - func
tryReplace(using: MTLCommandBuffer?) -> MTLBuffer? - func
update(options: DirectResource.CommitOptions, _: (inout MutableRawSpan) throws -> ()) throws -> () - func
update((UnsafeMutableRawPointer, UInt) -> ()) -> () - func
update((inout MutableRawSpan) throws -> ()) throws -> () - typealias
typealias Descriptor = DirectResource.BufferDescriptor - typealias
typealias ID = Foundation.UUID - typealias
typealias Update = DirectResource.BufferUpdate - var
final var _buffer: MTLBuffer? { get } - var
final var bytesUsed: Int { get set } - var
final var cType: DRBuffer_t { get } - var
final var clientId: UInt? { get } - var
final var label: String? { get set } - var
final var slots: [DirectResource.ResourceSlot] { get }
Header
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 }