Interface FragmentState

片段着色器阶段描述。

GPUFragmentState

Hierarchy

  • FragmentState

Properties

Properties

code: string

着色器代码。

targets?: readonly ColorTargetState[]

A list of GPUColorTargetState defining the formats and behaviors of the color targets this pipeline writes to.

定义了该管道写入的颜色目标的格式和行为。

注:WebGL中没法分别对每个颜色附件进行设置,统一使用第一项(targets[0])设置!

Generated using TypeDoc