Skip to Content
GPGPU Programming for Games and Science
book

GPGPU Programming for Games and Science

by David H. Eberly
August 2014
Intermediate to advanced
469 pages
16h 30m
English
A K Peters/CRC Press
Content preview from GPGPU Programming for Games and Science
406 GPGPU Programming for Games and Science
mInitializeState . reset(
ShaderFactory ::CreateCompute(”InitializeState . hlsl”, definer ));
mInitializeState>Set (” density ” , mDensity ) ;
mInitializeState>Set (” v el oc i ty , mVelocity );
mInitializeState>S et ( ” stateTm1 , mStateTm1 ) ;
mInitializeState>Set(”stateT” , mStateT );
// From InitializeSta te . cpp ( in a wrapper for execution ):
engine>Execu te ( m I n i t i a l i z e S t a t e , mNumXGrou ps , mNumYGroups , 1 ) ;
LISTING 7.27: Initial state computations 2D fluids, both for the CPU and
the GPU.
7.11.2.2 Initialization of External Forces
The external density control in Equation (7.52) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Graphics Gems V (IBM Version)

Graphics Gems V (IBM Version)

Alan W. Paeth
GPU Pro 6

GPU Pro 6

Wolfgang Engel

Publisher Resources

ISBN: 9781466595354