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

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.

Detailed Description

A kernel that computes the velocity field divergence.


Function Documentation

__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.

Parameters:
[in]_velocityRthe velocity field [read image]
[in,out]o_divergencethe divergence field [write buffer]
[in]_pressureWthe pressure field [read image]
[in]_obstaclesthe obstacles field [read image]
[in]_cellSizethe simulation's cell size
 All Classes Files Functions Variables