Class Buffer
A handle to a GPU-accessible buffer.
class Buffer
;
Created with Device
.
Fields
Name | Type | Description |
---|---|---|
descriptor
|
const(__C | Describes this Buffer .
|
label
|
const(string) | Optional, human-readable debug label. |
status
|
BufferMapAsyncStatus | Result of a call to Buffer or Buffer .
|
Methods
Name | Description |
---|---|
binding
(location, offset)
|
Creates a buffer binding starting at offset and ending at the end of the buffer.
|
binding
(location, offset, size)
|
Creates a buffer binding starting at offset and ending at offset+size .
|
bindingLayout
(location, visibility, type, hasDynamicOffset, minBindingSize)
|
|
destroy
()
|
Release the given handle. |
getMappedRange
(start, size)
|
Get the sliced Buffer data requested by either Buffer or Buffer .
|
mapReadAsync
(start, size)
|
Map the buffer for reading asynchronously. |
mapWriteAsync
(start, size)
|
Map the buffer for writing asynchronously. |
unmap
()
|
Flushes any pending write operations and unmaps the buffer from host memory. |