WasmGPU - v0.6.0
Preparing search index...
Colormap
Class Colormap
Index
Constructors
constructor
Properties
id
Accessors
filter
width
Methods
get
GPU
Resources
to
Uniform
Stops
builtin
from
GPU
Texture
View
from
Palette
from
Stops
Constructors
constructor
new
Colormap
(
opts
:
{
external
?:
|
{
device
:
GPUDevice
;
filter
:
ColormapFilter
;
sampler
:
GPUSampler
;
view
:
GPUTextureView
;
width
:
number
;
}
|
null
;
filter
:
ColormapFilter
;
label
:
string
;
rgba8Linear
?:
Uint8Array
<
ArrayBufferLike
>
|
null
;
width
:
number
;
}
,
)
:
Colormap
Parameters
opts
:
{
external
?:
|
{
device
:
GPUDevice
;
filter
:
ColormapFilter
;
sampler
:
GPUSampler
;
view
:
GPUTextureView
;
width
:
number
;
}
|
null
;
filter
:
ColormapFilter
;
label
:
string
;
rgba8Linear
?:
Uint8Array
<
ArrayBufferLike
>
|
null
;
width
:
number
;
}
Returns
Colormap
Properties
Readonly
id
id
:
number
= ...
Accessors
filter
get
filter
()
:
ColormapFilter
Returns
ColormapFilter
width
get
width
()
:
number
Returns
number
Methods
get
GPU
Resources
getGPUResources
(
device
:
GPUDevice
,
queue
:
GPUQueue
)
:
ColormapGPUResources
Parameters
device
:
GPUDevice
queue
:
GPUQueue
Returns
ColormapGPUResources
to
Uniform
Stops
toUniformStops
(
maxStops
?:
number
,
colorSpace
?:
"srgb"
|
"linear"
)
:
Color4
[]
Parameters
maxStops
:
number
= 8
colorSpace
:
"srgb"
|
"linear"
= "linear"
Returns
Color4
[]
Static
builtin
builtin
(
name
:
BuiltinColormapName
)
:
Colormap
Parameters
name
:
BuiltinColormapName
Returns
Colormap
Static
from
GPU
Texture
View
fromGPUTextureView
(
device
:
GPUDevice
,
view
:
GPUTextureView
,
sampler
:
GPUSampler
,
width
:
number
,
filter
?:
ColormapFilter
,
)
:
Colormap
Parameters
device
:
GPUDevice
view
:
GPUTextureView
sampler
:
GPUSampler
width
:
number
filter
:
ColormapFilter
= "linear"
Returns
Colormap
Static
from
Palette
fromPalette
(
colors
:
readonly
Color4
[]
,
desc
?:
ColormapDescriptor
)
:
Colormap
Parameters
colors
:
readonly
Color4
[]
desc
:
ColormapDescriptor
= {}
Returns
Colormap
Static
from
Stops
fromStops
(
stops
:
readonly
ColormapStop
[]
,
desc
?:
ColormapDescriptor
)
:
Colormap
Parameters
stops
:
readonly
ColormapStop
[]
desc
:
ColormapDescriptor
= {}
Returns
Colormap
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
id
Accessors
filter
width
Methods
get
GPU
Resources
to
Uniform
Stops
builtin
from
GPU
Texture
View
from
Palette
from
Stops
Source code
Examples
WasmGPU - v0.6.0
Loading...