GLCommandEncoder
Ploy3D / GLCommandEncoder
Class: GLCommandEncoder
帧命令编码器。
Table of contents
Constructors
Methods
Constructors
constructor
• new GLCommandEncoder(gl
)
构造函数。
Parameters
Name | Type |
---|---|
gl | WebGL2RenderingContext |
Methods
beginRenderPass
▸ beginRenderPass(desc
): GLRenderPassEncoder
开始渲染通道命令编码,返回编码器。
Parameters
Name | Type |
---|---|
desc | FramePass |
Returns
copyTextureToTexture
▸ copyTextureToTexture(source
, destination
, copySize
): void
贴图拷贝。
Parameters
Name | Type |
---|---|
source | Object |
source.mipLevel | number |
source.origin | number [] |
source.texture | GLTexture |
destination | Object |
destination.mipLevel | number |
destination.origin | number [] |
destination.texture | GLTexture |
copySize | number [] |
Returns
void
destroy
▸ destroy(): void
销毁帧命令编码器。
Returns
void
finish
▸ finish(endFrame?
): GLCommandBuffer
结束命令编码。
Parameters
Name | Type |
---|---|
endFrame? | boolean |