Skip to Content
GPU Pro 7
book

GPU Pro 7

by Wolfgang Engel
March 2016
Intermediate to advanced
320 pages
9h 14m
English
A K Peters/CRC Press
Content preview from GPU Pro 7
280 VI Compute
Texture3D<float4> g_VelocityRO : register ( t0 );
Texture3D<float4> g_PressureRO : register ( t1 );
Texture3D<float4> g_VorticityRO : register( t2 );
RWTexture3D <float4> g_VelocityRW : register( u0 );
[ numthreads (8 , 4, 4) ]
void main ( uint3 idx : SV_DispatchThreadID )
{
float4 FC = g_VelocityRO [ idx ];
// Apply the density force .
{
float U = g_PressureRO [ idx + int3 (0 , 1, 0) ] . x ;
float D = g_PressureRO [ idx int3(0 , 1 , 0) ] . x ;
float L = g_PressureRO [ idx int3(1 , 0 , 0) ] . x ;
float R = g_PressureRO [ idx + int3 (1 , 0, 0) ] . x ;
float F = g_PressureRO [ idx + int3 (0 , 0, 1) ] . x ;
float B = g_PressureRO [ idx int3 ...
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

GPU Pro 4

GPU Pro 4

Wolfgang Engel
GPU Pro 5

GPU Pro 5

Wolfgang Engel
GPU Pro 6

GPU Pro 6

Wolfgang Engel
GPU PRO 3

GPU PRO 3

Wolfgang Engel

Publisher Resources

ISBN: 9781498742542