Skip to content

Class: ClusterLightingBuffer

Constructors

Properties

Methods

Constructors

constructor

new ClusterLightingBuffer(numClusters, maxNumLightsPerCluster): ClusterLightingBuffer

Parameters

NameType
numClustersnumber
maxNumLightsPerClusternumber

Returns

ClusterLightingBuffer

Defined in

src/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.ts:10

Properties

clusterBuffer

clusterBuffer: ComputeGPUBuffer

Defined in

src/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.ts:5


lightAssignBuffer

lightAssignBuffer: ComputeGPUBuffer

Defined in

src/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.ts:6


assignTableBuffer

assignTableBuffer: ComputeGPUBuffer

Defined in

src/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.ts:7


clustersUniformBuffer

clustersUniformBuffer: UniformGPUBuffer

Defined in

src/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.ts:8

Methods

update

update(width, height, clusterPix, clusterTileX, clusterTileY, clusterTileZ, numLights, maxNumLightsPerCluster, near, far): void

Parameters

NameType
widthnumber
heightnumber
clusterPixnumber
clusterTileXnumber
clusterTileYnumber
clusterTileZnumber
numLightsnumber
maxNumLightsPerClusternumber
nearnumber
farnumber

Returns

void

Defined in

src/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.ts:21

Released under the MIT License