Skip to content

TwoPassModule

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/webgpu/modules/rasterize-two-pass/TwoPassModule.ts for the most up-to-date information.

Overview

TODO: doc

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class TwoPassModule

inputSize: TwoPassRunSize

import { TwoPassModule } from 'scenerystack/alpenglow';

Constructor

new TwoPassModule( providedOptions : TwoPassModuleOptions )

Instance Methods

Instance Properties

config : BufferSlot<TwoPassConfig>

(readonly)

coarseRenderableFaces : BufferSlot<TwoPassCoarseRenderableFace[]>

(readonly)

coarseEdges : BufferSlot<LinearEdge[]>

(readonly)

renderProgramInstructions : BufferSlot<number[]>

(readonly)

output : TextureViewSlot

(readonly)

initializeAddressesModule : MainTwoPassInitializeAddressesModule

(readonly)

coarseModule : MainTwoPassCoarseModule

(readonly)

fineModule : MainTwoPassFineModule

(readonly)

Type TwoPassModuleOptions

import type { TwoPassModuleOptions } from 'scenerystack/alpenglow';

PipelineBlueprintOptions

Type TwoPassRunSize

import type { TwoPassRunSize } from 'scenerystack/alpenglow';
  • numBins: number
  • numCoarseRenderableFaces: number

Source Code

See the source for TwoPassModule.ts in the alpenglow repository.