Preparing search index...
The search index is not available
webgpu-kit
webgpu-kit
Core
Storage
Class Storage
A GPU storage object that can be used in a
BindGroup
.
Hierarchy
components
Storage
Index
Constructors
constructor
Properties
_device?
binding
buffer
Options
canvas?
canvas
Format
context?
cpu
Buffer?
gpu
Buffer?
label?
usage
visibility
Methods
get
Device
set
Canvas
set
Cpu
Buffer
set
Device
set
Label
update
Gpu
Buffer
Constructors
constructor
new
Storage
(
options
)
:
Storage
Parameters
options
:
StorageOptions
Returns
Storage
Properties
Optional
_device
_device
?:
GPUDevice
binding
binding
:
number
Readonly
buffer
Options
buffer
Options
:
{
type
:
"storage"
|
"read-only-storage"
;
}
Type declaration
type
:
"storage"
|
"read-only-storage"
Optional
canvas
canvas
?:
HTMLCanvasElement
canvas
Format
canvas
Format
:
GPUTextureFormat
= ...
Optional
context
context
?:
GPUCanvasContext
Optional
cpu
Buffer
cpu
Buffer
?:
ArrayType
Optional
gpu
Buffer
gpu
Buffer
?:
GPUBuffer
Optional
label
label
?:
string
usage
usage
:
number
= GPUBufferUsage.COPY_DST
Readonly
visibility
visibility
:
number
Methods
get
Device
get
Device
(
)
:
Promise
<
GPUDevice
>
Returns
Promise
<
GPUDevice
>
set
Canvas
set
Canvas
(
canvas
)
:
void
Parameters
canvas
:
HTMLCanvasElement
Returns
void
set
Cpu
Buffer
set
Cpu
Buffer
(
buffer
)
:
Promise
<
void
>
Parameters
buffer
:
ArrayType
Returns
Promise
<
void
>
set
Device
set
Device
(
d
)
:
void
Parameters
d
:
GPUDevice
Returns
void
set
Label
set
Label
(
label
)
:
void
Parameters
label
:
string
Returns
void
update
Gpu
Buffer
update
Gpu
Buffer
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_device
binding
buffer
Options
canvas
canvas
Format
context
cpu
Buffer
gpu
Buffer
label
usage
visibility
get
Device
set
Canvas
set
Cpu
Buffer
set
Device
set
Label
update
Gpu
Buffer
webgpu-kit
Core
Shaders
Generated using
TypeDoc
A GPU storage object that can be used in a BindGroup.