Support Forum       G3D Web Page     
Classes | Namespaces
clip.glsl File Reference

SIMD optimized code to clip a triangle or quadrilateral against a plane in GLSL. More...

Classes

class  glsl::clip_glsl
 
SIMD optimized code to clip a triangle or quadrilateral against a plane in GLSL. More...
 

Namespaces

 glsl
 

Detailed Description

SIMD optimized code to clip a triangle or quadrilateral against a plane in GLSL.

Design goals are to:

  1. maximize coherence (to keep all threads in a warp active for scalar ALUs) by quickly reducing to a small set of common cases,
  2. maximize vector instructions (for vector ALUs)
  1. minimize peak register count (to enable a large number of simultaneous threads), and
  2. avoid non-constant array indexing (which expands to a huge set of branches on many GPUs)

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License


documentation generated on Wed Nov 24 2021 08:01:50 using doxygen 1.8.15