we
Preparing search index...
core/command/SimpleDrawCommand
SimpleDrawCommand
Class SimpleDrawCommand
简单绘制命令
1、通过shader code 创建 shader module 和 pipeline;
2、pipeline layout 为 auto 模式;
Hierarchy (
View Summary
)
BaseCommand
SimpleDrawCommand
Index
Constructors
constructor
Properties
_
is
Destroy
bind
Groups
device
draw
Mode
index
Buffer
index
Format
input
Values
label
pipeline
render
Pass
Descriptor
scene
shader
Module
uniform
GPU
Buffers
vertex
Buffers
vertices
Buffer
Layout
Methods
create
Pipeline
create
Shader
Module
create
Vertex
Buffers
destroy
do
Draw
dowhole
do
With
Pipeline
do
With
RPD
draw
Instacnce
generate
Bind
Group
submit
update
Constructors
constructor
new
SimpleDrawCommand
(
input
:
IV_SimpleDrawCommand
)
:
SimpleDrawCommand
Parameters
input
:
IV_SimpleDrawCommand
Returns
SimpleDrawCommand
Properties
_
is
Destroy
_isDestroy
:
boolean
= false
bind
Groups
bindGroups
:
(
undefined
|
null
|
GPUBindGroup
)
[]
= []
device
device
:
GPUDevice
draw
Mode
drawMode
:
I_drawModeIndexed
|
I_drawMode
index
Buffer
indexBuffer
:
undefined
|
I_VertexBufferEntry
index
Format
indexFormat
:
GPUIndexFormat
= "uint32"
input
Values
inputValues
:
IV_SimpleDrawCommand
label
label
:
string
pipeline
pipeline
:
GPURenderPipeline
render
Pass
Descriptor
renderPassDescriptor
:
|
undefined
|
GPURenderPassDescriptor
|
(
()
=>
GPURenderPassDescriptor
)
scene
scene
:
Scene
shader
Module
shaderModule
:
undefined
|
GPUShaderModule
uniform
GPU
Buffers
uniformGPUBuffers
:
GPUBuffer
[]
= []
vertex
Buffers
vertexBuffers
:
I_VertexBufferEntry
[]
= []
vertices
Buffer
Layout
verticesBufferLayout
:
GPUVertexBufferLayout
[]
= []
Methods
create
Pipeline
createPipeline
()
:
void
Returns
void
create
Shader
Module
createShaderModule
(
shaderCode
:
{
code
:
string
}
)
:
void
Parameters
shaderCode
:
{
code
:
string
}
Returns
void
create
Vertex
Buffers
createVertexBuffers
()
:
void
Returns
void
destroy
destroy
()
:
void
Returns
void
do
Draw
doDraw
(
passEncoder
:
GPURenderPassEncoder
)
:
void
Parameters
passEncoder
:
GPURenderPassEncoder
Returns
void
dowhole
dowhole
()
:
GPUCommandBuffer
Returns
GPUCommandBuffer
do
With
Pipeline
doWithPipeline
(
passEncoder
:
GPURenderPassEncoder
)
:
void
Parameters
passEncoder
:
GPURenderPassEncoder
Returns
void
do
With
RPD
doWithRPD
(
commandEncoder
:
GPUCommandEncoder
)
:
void
Parameters
commandEncoder
:
GPUCommandEncoder
Returns
void
draw
Instacnce
drawInstacnce
(
passEncoder
:
GPURenderPassEncoder
,
drawMode
:
I_drawModeIndexed
|
I_drawMode
,
)
:
void
Parameters
passEncoder
:
GPURenderPassEncoder
drawMode
:
I_drawModeIndexed
|
I_drawMode
Returns
void
generate
Bind
Group
generateBindGroup
()
:
void
Returns
void
submit
submit
()
:
void
Returns
void
update
update
()
:
GPUCommandBuffer
Returns
GPUCommandBuffer
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
is
Destroy
bind
Groups
device
draw
Mode
index
Buffer
index
Format
input
Values
label
pipeline
render
Pass
Descriptor
scene
shader
Module
uniform
GPU
Buffers
vertex
Buffers
vertices
Buffer
Layout
Methods
create
Pipeline
create
Shader
Module
create
Vertex
Buffers
destroy
do
Draw
dowhole
do
With
Pipeline
do
With
RPD
draw
Instacnce
generate
Bind
Group
submit
update
we
Loading...
简单绘制命令
1、通过shader code 创建 shader module 和 pipeline;
2、pipeline layout 为 auto 模式;