Skip to content

Class: RenderContext

Constructors

Properties

Accessors

Methods

Constructors

constructor

new RenderContext(rtFrame): RenderContext

Parameters

NameType
rtFrameRTFrame

Returns

RenderContext

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:13

Properties

command

command: GPUCommandEncoder

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:8


encoder

encoder: GPURenderPassEncoder

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:9

Accessors

rendererPassState

get rendererPassState(): RendererPassState

Returns

RendererPassState

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:45

Methods

clean

clean(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:18


beginContinueRendererPassState

beginContinueRendererPassState(color_loadOp?, depth_loadOp?): RendererPassState

continue renderer pass state

Parameters

NameTypeDefault value
color_loadOpGPULoadOp'load'
depth_loadOpGPULoadOp'load'

Returns

RendererPassState

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:27


beginOpaqueRenderPass

beginOpaqueRenderPass(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:49


beginTransparentRenderPass

beginTransparentRenderPass(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:55


specialtRenderPass

specialtRenderPass(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:61


endRenderPass

endRenderPass(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:67


begineNewCommand

begineNewCommand(): GPUCommandEncoder

Returns

GPUCommandEncoder

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:72


endCommand

endCommand(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:77


beginNewEncoder

beginNewEncoder(): GPURenderPassEncoder

Returns

GPURenderPassEncoder

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:82


endEncoder

endEncoder(): void

Returns

void

Defined in

src/gfx/renderJob/passRenderer/RenderContext.ts:87

Released under the MIT License