Preparing search index...
The search index is not available
webgpu-kit
webgpu-kit
Core
Uniform
Class Uniform
A GPU uniform object that can be used in a
BindGroup
.
Hierarchy
components
Uniform
Index
Constructors
constructor
Properties
_device?
binding
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
Uniform
(
options
)
:
Uniform
Parameters
options
:
UniformOptions
Returns
Uniform
Properties
Optional
_device
_device
?:
GPUDevice
Readonly
binding
binding
:
number
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
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 uniform object that can be used in a BindGroup.