WasmGPU - v0.4.0
Preparing search index...
CustomMaterial
Class CustomMaterial
Hierarchy (
View Summary
)
Material
CustomMaterial
Index
Constructors
constructor
Properties
_
dirty
_
uniform
Data
Cache
bind
Group
bind
Group
Key
blend
Mode
cull
Mode
depth
Test
depth
Write
pipeline
uniform
Buffer
Accessors
dirty
Methods
create
Bind
Group
Layout
destroy
get
Shader
Code
get
Uniform
get
Uniform
Buffer
Size
get
Uniform
Data
get
Uniform
Data
Cache
mark
Clean
set
Uniform
Constructors
constructor
new
CustomMaterial
(
descriptor
:
CustomMaterialDescriptor
)
:
CustomMaterial
Parameters
descriptor
:
CustomMaterialDescriptor
Returns
CustomMaterial
Properties
Protected
_
dirty
_dirty
:
boolean
= true
Protected
_
uniform
Data
Cache
_uniformDataCache
:
Float32Array
<
ArrayBufferLike
>
|
null
= null
bind
Group
bindGroup
:
GPUBindGroup
|
null
= null
bind
Group
Key
bindGroupKey
:
string
|
null
= null
Readonly
blend
Mode
blendMode
:
BlendMode
Readonly
cull
Mode
cullMode
:
CullMode
Readonly
depth
Test
depthTest
:
boolean
Readonly
depth
Write
depthWrite
:
boolean
pipeline
pipeline
:
GPURenderPipeline
|
null
= null
uniform
Buffer
uniformBuffer
:
GPUBuffer
|
null
= null
Accessors
dirty
get
dirty
()
:
boolean
Returns
boolean
Methods
create
Bind
Group
Layout
createBindGroupLayout
(
device
:
GPUDevice
)
:
GPUBindGroupLayout
Parameters
device
:
GPUDevice
Returns
GPUBindGroupLayout
destroy
destroy
()
:
void
Returns
void
get
Shader
Code
getShaderCode
(
opts
?:
{
instanced
?:
boolean
;
skinned
?:
boolean
}
)
:
string
Parameters
opts
:
{
instanced
?:
boolean
;
skinned
?:
boolean
}
= {}
Returns
string
get
Uniform
getUniform
(
name
:
string
)
:
number
|
number
[]
|
undefined
Parameters
name
:
string
Returns
number
|
number
[]
|
undefined
get
Uniform
Buffer
Size
getUniformBufferSize
()
:
number
Returns
number
get
Uniform
Data
getUniformData
()
:
Float32Array
Returns
Float32Array
Protected
get
Uniform
Data
Cache
getUniformDataCache
(
floatCount
:
number
)
:
Float32Array
Parameters
floatCount
:
number
Returns
Float32Array
mark
Clean
markClean
()
:
void
Returns
void
set
Uniform
setUniform
(
name
:
string
,
value
:
number
|
number
[]
)
:
void
Parameters
name
:
string
value
:
number
|
number
[]
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
dirty
_
uniform
Data
Cache
bind
Group
bind
Group
Key
blend
Mode
cull
Mode
depth
Test
depth
Write
pipeline
uniform
Buffer
Accessors
dirty
Methods
create
Bind
Group
Layout
destroy
get
Shader
Code
get
Uniform
get
Uniform
Buffer
Size
get
Uniform
Data
get
Uniform
Data
Cache
mark
Clean
set
Uniform
Source code
Examples (ESM)
Examples (IIFE)
WasmGPU - v0.4.0
Loading...