跳到主要内容

GLCommandEncoder

Ploy3D / GLCommandEncoder

Class: GLCommandEncoder

帧命令编码器。

Table of contents

Constructors

Methods

Constructors

constructor

new GLCommandEncoder(gl)

构造函数。

Parameters

NameType
glWebGL2RenderingContext

Methods

beginRenderPass

beginRenderPass(desc): GLRenderPassEncoder

开始渲染通道命令编码,返回编码器。

Parameters

NameType
descFramePass

Returns

GLRenderPassEncoder


copyTextureToTexture

copyTextureToTexture(source, destination, copySize): void

贴图拷贝。

Parameters

NameType
sourceObject
source.mipLevelnumber
source.originnumber[]
source.textureGLTexture
destinationObject
destination.mipLevelnumber
destination.originnumber[]
destination.textureGLTexture
copySizenumber[]

Returns

void


destroy

destroy(): void

销毁帧命令编码器。

Returns

void


finish

finish(endFrame?): GLCommandBuffer

结束命令编码。

Parameters

NameType
endFrame?boolean

Returns

GLCommandBuffer