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
- Type: Method
- Namespace: UnityEngine.LightTransport.PostProcessing
- Assembly: UnityEngine.CoreModule
bool AddSphericalHarmonicsL2(IDeviceContext context, BufferSlice<SphericalHarmonicsL2> A, BufferSlice<SphericalHarmonicsL2> B, BufferSlice<SphericalHarmonicsL2> sum, int probeCount)
Parameters
Device context.
Source buffer A.
Source buffer B.
Destination buffer where the sum of A and B is written.
Number of SphericalHarmonicsL2 probes to add.
Returns
Type | Description |
|---|---|
| bool | True 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'.