Skip to main content

Interface: RenderTargetOptions

Hierarchy

Table of contents

Properties

Properties

data

data: any

非图片和 canvas 数据,传入的是一组结构化数组,这里我们先不去指定数据类型

Defined in

src/core/RenderTarget.ts:15


name

name: string

设置此 RenderTarget 的名称,方便我们区分不同的 RenderTarget

Overrides

ResourceOptions.name

Defined in

src/core/RenderTarget.ts:20


width

width: number

RenderTarget 的宽度

Defined in

src/core/RenderTarget.ts:25


height

height: number

RenderTarget 的高度

Defined in

src/core/RenderTarget.ts:30


color

color: number

颜色关联对象的数量,默认是1。 可以理解为整个帧缓存对象就是一张纹理,这个纹理的颜色就保存在color attachment中。

Defined in

src/core/RenderTarget.ts:36


attachments

attachments: Attachment[]

关联对象,此参数是一个数组,可以指定多组关联对象

Defined in

src/core/RenderTarget.ts:41


depth

depth: boolean

是否包含深度关联对象

Defined in

src/core/RenderTarget.ts:46


stencil

stencil: boolean

是否包含模版关联对象

Defined in

src/core/RenderTarget.ts:51


depthTexture

depthTexture: boolean

是否是深度纹理,默认是false

Defined in

src/core/RenderTarget.ts:56


id

id: string

Inherited from

ResourceOptions.id

Defined in

src/core/Resource.ts:10


handle

handle: any

Inherited from

ResourceOptions.handle

Defined in

src/core/Resource.ts:12


userData

userData: any

Inherited from

ResourceOptions.userData

Defined in

src/core/Resource.ts:13