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

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.

Detailed Description

A kernel that subtracts the pressure gradient from a divergent velocity field.


Function Documentation

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

Parameters:
[in,out]o_velocityWthe velocity field [write buffer]
[in]_velocityRthe velocity field [read image]
[in]_pressureRthe pressure field [read image]
[in]_obstaclesthe obstacles field [read-only]
[in]_gradientScalethe gradient scale
 All Classes Files Functions Variables