Eulerian Smoke Simulation on the GPU
|
A kernel that computes the velocity field divergence. More...
Functions | |
__kernel void | computeDivergence (__read_only image3d_t _velocityR, __global float4 *o_divergence, __global float4 *_pressureW, __read_only image3d_t _obstacles, float _cellSize) |
A kernel that computes the velocity field divergence. |
A kernel that computes the velocity field divergence.
__kernel void computeDivergence | ( | __read_only image3d_t | _velocityR, |
__global float4 * | o_divergence, | ||
__global float4 * | _pressureW, | ||
__read_only image3d_t | _obstacles, | ||
float | _cellSize | ||
) |
A kernel that computes the velocity field divergence.
[in] | _velocityR | the velocity field [read image] |
[in,out] | o_divergence | the divergence field [write buffer] |
[in] | _pressureW | the pressure field [read image] |
[in] | _obstacles | the obstacles field [read image] |
[in] | _cellSize | the simulation's cell size |