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
88 II Lighting
language built-in variable gl_PrimitiveID may be used. To assign a unique ID,
an atomic counter is incremented and passed through to the fragment shader. We
use frustum culling in the geometry shader, which can be implemented efficiently
using bit operations to reduce the number of atomic counter operations.
Early depth testing has to be enabled in the fragment shader to ensure that
the fragment shader is executed for visible fragments only:
layout( early_fragment_tests ) in ;
In the fragment shader a lookup into the memoization cache is performed to
get the physical address of the stored triangle. The return value of the lookup
function ...
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