Eulerian Smoke Simulation on the GPU
kernels/Advect.cl File Reference

A semi-Lagrangian advection kernel. More...

Functions

__kernel void advect (__read_only image3d_t _velocityR, __global float4 *o_fieldW, __read_only image3d_t _fieldR, __read_only image3d_t _obstacles, float _dissipation, float _timestep)
 A semi-Lagrangian advection kernel.

Detailed Description

A semi-Lagrangian advection kernel.


Function Documentation

__kernel void advect ( __read_only image3d_t  _velocityR,
__global float4 *  o_fieldW,
__read_only image3d_t  _fieldR,
__read_only image3d_t  _obstacles,
float  _dissipation,
float  _timestep 
)

A semi-Lagrangian advection kernel.

Parameters:
[in]_velocityRthe velocity field [read image]
[in,out]o_fieldWthe field to advect [write buffer]
[in]_fieldRthe field to advect [read image]
[in]_obstaclesthe obstacles field [read image]
[in]_dissipationthe dissipation factor
[in]_timestepthe simulation's time-step
 All Classes Files Functions Variables