Preparing search index...
The search index is not available
webgpu-kit
webgpu-kit
Core
Sampler
Class Sampler
Sampler object used to sample textures in a shader.
Hierarchy
components
Sampler
Index
Constructors
constructor
Properties
_device?
binding
canvas?
canvas
Format
context?
gpu
Sampler?
label?
sampler
Options
visibility
Methods
get
Device
set
Canvas
set
Device
set
Label
update
Sampler
Constructors
constructor
new
Sampler
(
options
)
:
Sampler
Parameters
options
:
SamplerOptions
Returns
Sampler
Properties
Optional
_device
_device
?:
GPUDevice
Readonly
binding
binding
:
number
Optional
canvas
canvas
?:
HTMLCanvasElement
canvas
Format
canvas
Format
:
GPUTextureFormat
= ...
Optional
context
context
?:
GPUCanvasContext
Optional
gpu
Sampler
gpu
Sampler
?:
GPUSampler
Optional
label
label
?:
string
sampler
Options
sampler
Options
:
GPUSamplerDescriptor
= ...
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
Device
set
Device
(
d
)
:
void
Parameters
d
:
GPUDevice
Returns
void
set
Label
set
Label
(
label
)
:
void
Parameters
label
:
string
Returns
void
update
Sampler
update
Sampler
(
options
?
)
:
Promise
<
void
>
Parameters
Optional
options
:
GPUSamplerDescriptor
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_device
binding
canvas
canvas
Format
context
gpu
Sampler
label
sampler
Options
visibility
get
Device
set
Canvas
set
Device
set
Label
update
Sampler
webgpu-kit
Core
Shaders
Generated using
TypeDoc
Sampler object used to sample textures in a shader.