Class Renderer

Source

Constructors§

Source§

new Renderer(canvas: HTMLCanvasElement): Renderer

Properties§

Source§

protected _canvas: HTMLCanvasElement

Source§

protected _colorTexture: GPUTexture

Source§

protected _commandEncoder: GPUCommandEncoder

Source§

protected _context: GPUCanvasContext | null

Source§

protected _depthBuffer: GPURenderPassDepthStencilAttachment

Source§

protected _depthTexture: GPUTexture

Source§

protected _device: GPUDevice

Source§

protected _frameBuffer: GPURenderPassColorAttachment

Source§

protected _multisampleTexture: GPUTexture

Source§

protected _pickingBuffer: GPURenderPassColorAttachment

Source§

protected _pickingDepthBuffer: GPURenderPassDepthStencilAttachment

Source§

protected _pickingDepthTexture: GPUTexture

Source§

protected _pickingSampleCount: number = [object Object]

Source§

protected _pickingTexture: GPUTexture

Source§

protected _sampleCount: number = [object Object]

Accessors§

Source§

get canvas(): HTMLCanvasElement

Source§

get commandEncoder(): GPUCommandEncoder

Source§

get context(): GPUCanvasContext | null

Source§

get depthBuffer(): GPURenderPassDepthStencilAttachment

Source§

get device(): GPUDevice

Source§

get frameBuffer(): GPURenderPassColorAttachment

Source§

get pickingBuffer(): GPURenderPassColorAttachment

Source§

get pickingDepthBuffer(): GPURenderPassDepthStencilAttachment

Source§

get pickingTexture(): GPUTexture

Source§

get sampleCount(): number

Methods§

Source§

configureContext(): void

Source§

configureDepthBuffer(): void

Source§

configureFrameBuffer(): void

Source§

configurePickingBuffer(): void

Source§

finish(): void

Source§

init(): Promise<void>

Source§

initWebGPU(): Promise<boolean>

Source§

resize(width: number, height: number): void

Source§

start(): void

Source§

startPickingRenderPass(): void