Eulerian Smoke Simulation on the GPU
|
A buoyancy application kernel. More...
Functions | |
__kernel void | applyBuoyancy (__global float4 *o_velocityW, __read_only image3d_t _velocityR, __read_only image3d_t _temperatureR, __read_only image3d_t _densityR, float _timeStep, float _ambientTemperature, float _buoyancyLift, float _gasWeight, float4 _buoyancyDirection) |
A buoyancy application kernel. |
A buoyancy application kernel.
__kernel void applyBuoyancy | ( | __global float4 * | o_velocityW, |
__read_only image3d_t | _velocityR, | ||
__read_only image3d_t | _temperatureR, | ||
__read_only image3d_t | _densityR, | ||
float | _timeStep, | ||
float | _ambientTemperature, | ||
float | _buoyancyLift, | ||
float | _gasWeight, | ||
float4 | _buoyancyDirection | ||
) |
A buoyancy application kernel.
[in,out] | o_velocityW | the velocity field [write buffer] |
[in] | _velocityR | the velocity field [read image] |
[in] | _temperatureR | the temperature field [read image] |
[in] | _densityR | the density field [read image] |
[in] | _timeStep | the simulation's time-step |
[in] | _ambientTemperature | the ambient temperature |
[in] | _buoyancyLift | the buoyancy lift factor |
[in] | _gasWeight | the gas weight |
[in] | _buoyancyDirection | the buoyant force direction |