Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddSphericalHarmonicsL2(IDeviceContext, BufferSlice<SphericalHarmonicsL2>, BufferSlice<SphericalHarmonicsL2>, BufferSlice<SphericalHarmonicsL2>, int)

Perform the sum of two arrays of SphericalHarmonicsL2 element-wise.
Read time 1 minuteLast updated 10 days ago

Definition

bool AddSphericalHarmonicsL2(IDeviceContext context, BufferSlice<SphericalHarmonicsL2> A, BufferSlice<SphericalHarmonicsL2> B, BufferSlice<SphericalHarmonicsL2> sum, int probeCount)

Parameters

Device context.



Destination buffer where the sum of A and B is written.

probeCount

Number of SphericalHarmonicsL2 probes to add.

Returns

Type

Description

boolTrue if the operation is successfully added to the command queue in the context.

Remarks

Sum = A + B. Each element from source buffer A is added to the corresponding element from source buffer B. The result is written into the destination buffer 'sum'.