Eulerian Smoke Simulation on the GPU
|
A kernel that subtracts the pressure gradient from a divergent velocity field. More...
Functions | |
__kernel void | subtractGradient (__global float4 *o_velocityW, __read_only image3d_t _velocityR, __read_only image3d_t _pressureR, __read_only image3d_t _obstacles, float _gradientScale) |
A kernel that subtracts the pressure gradient from a divergent velocity field. |
A kernel that subtracts the pressure gradient from a divergent velocity field.
__kernel void subtractGradient | ( | __global float4 * | o_velocityW, |
__read_only image3d_t | _velocityR, | ||
__read_only image3d_t | _pressureR, | ||
__read_only image3d_t | _obstacles, | ||
float | _gradientScale | ||
) |
A kernel that subtracts the pressure gradient from a divergent velocity field.
[in,out] | o_velocityW | the velocity field [write buffer] |
[in] | _velocityR | the velocity field [read image] |
[in] | _pressureR | the pressure field [read image] |
[in] | _obstacles | the obstacles field [read-only] |
[in] | _gradientScale | the gradient scale |