跳到主要内容

GLRenderPipeline

Ploy3D / GLRenderPipeline

Interface: GLRenderPipeline

着色器管线。

Table of contents

Properties

Properties

SetSubmeshIndex

Optional SetSubmeshIndex: (index: number) => void

Type declaration

▸ (index): void

设置子网格索引(编辑器模式下使用)。

Parameters
NameType
indexnumber
Returns

void


Verify

Optional Verify: () => number

Type declaration

▸ (): number

着色器延迟验证方法,避免某些平台着色器编译阻塞主线程。

Returns

number


args

Optional args: Object

编译参数。

Type declaration

NameTypeDescription
renderPassNamestring渲染通道名称。
settingFlagsnumber渲染设置标志集。
shaderNamestring着色器名称。
shaderPassIndexnumber着色器通道索引。
textureFormatsnumber贴图属性格式标志集。
topologynumber图元类型。

blend

Readonly blend: () => void

Type declaration

▸ (): void

混合设置。

Returns

void


depthStencil

Readonly depthStencil: Object

渲染目标深度和模板缓存描述符。

Type declaration

NameType
depthBias() => void
depthCompare() => void
depthWriteEnabled(confirm: boolean) => void
stencil(reference?: number) => void

fragment

Optional Readonly fragment: Object

片元着色器描述。

Type declaration

NameTypeDescription
moduleWebGLShader着色器模块(释放时需要销毁)。

label

Readonly label: string

管线标签。


layout

Readonly layout: GLPipelineLayout

着色器管线布局。


primitive

Readonly primitive: Object

图元描述符。

Type declaration

NameTypeDescription
cullMode() => void裁剪模式。
frontFace() => void正面环绕顺序。
topologynumber图元类型(作为Draw方法参数)。

program

Readonly program: WebGLProgram

着色器程序(释放时需要销毁)。


samplers

Readonly samplers: [number, number, string, number?][]

纹理集槽与采样器槽组合数组。


vertex

Readonly vertex: Object

顶点着色器描述。

Type declaration

NameTypeDescription
buffersGLVertexBufferLayout[]顶点属性组布局描述(引用自描述符)。
moduleWebGLShader着色器模块(释放时需要销毁)。