Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
glsl::SVO_glsl Class Reference


For use with G3D::Shader. More...

Public Member Functions

 DECLARE_GBUFFER (svo) layout(r32ui
 The tree itself. More...
 
 layout (r32ui, bindless_image) uniform uimageBuffer parentIndexBuffer
 
 layout (r32ui, bindless_image) uniform uimageBuffer levelIndexBuffer
 
GLSL_FUNC_DEC int svoGetNodeIndex (SVO_LEVEL_VAR_TYPE targetLevel, SVO_COORD_VAR_TYPE targetPos)
 
GLSL_FUNC_DEC int svoGetNodeIndex (SVO_LEVEL_VAR_TYPE targetLevel, SVO_COORD_VAR_TYPE targetPos, GLSL_OUT_PARAM(SVO_LEVEL_VAR_TYPE) outLevel)
 

Public Attributes

bindless_image uniform uimageBuffer childIndexBuffer
 
uniform usamplerBuffer childIndexBufferTex
 
uniform uintd_childIndexBuffer
 
coherent volatile uniform uintd_parentIndexBuffer
 
coherent volatile uniform uintd_rootIndexBuffer
 
uniform int groundTruthMode
 
uniform uint octreePoolNumNodes
 
uniform vec2 projectionOffset
 
uniform float projectionScale
 
uniform usamplerBuffer rootIndexBufferTex
 
vec3 svo_triangle_normal
 
uniform mat4 svoWorldToSVOMat
 

Detailed Description


For use with G3D::Shader.

This file is included into NonShadowedPass.pix and ShadowMappedLightPass.pix. This files define helper functions for manipulating Sparse Voxel Octrees.

See also
G3D::SVO

Member Function Documentation

◆ DECLARE_GBUFFER()

glsl::SVO_glsl::DECLARE_GBUFFER ( svo  )

The tree itself.

The top part of the tree is used for traversal. The leaves are then flagged with 0xFFFFFFFF if they have any child

◆ layout() [1/2]

glsl::SVO_glsl::layout ( r32ui  ,
bindless_image   
)

◆ layout() [2/2]

glsl::SVO_glsl::layout ( r32ui  ,
bindless_image   
)

◆ svoGetNodeIndex() [1/2]

GLSL_FUNC_DEC int glsl::SVO_glsl::svoGetNodeIndex ( SVO_LEVEL_VAR_TYPE  targetLevel,
SVO_COORD_VAR_TYPE  targetPos 
)

◆ svoGetNodeIndex() [2/2]

GLSL_FUNC_DEC int glsl::SVO_glsl::svoGetNodeIndex ( SVO_LEVEL_VAR_TYPE  targetLevel,
SVO_COORD_VAR_TYPE  targetPos,
GLSL_OUT_PARAM(SVO_LEVEL_VAR_TYPE outLevel 
)

Member Data Documentation

◆ childIndexBuffer

bindless_image uniform uimageBuffer glsl::SVO_glsl::childIndexBuffer

◆ childIndexBufferTex

uniform usamplerBuffer glsl::SVO_glsl::childIndexBufferTex

◆ d_childIndexBuffer

uniform uint* glsl::SVO_glsl::d_childIndexBuffer

◆ d_parentIndexBuffer

coherent volatile uniform uint* glsl::SVO_glsl::d_parentIndexBuffer

◆ d_rootIndexBuffer

coherent volatile uniform uint* glsl::SVO_glsl::d_rootIndexBuffer

◆ groundTruthMode

uniform int glsl::SVO_glsl::groundTruthMode

◆ octreePoolNumNodes

uniform uint glsl::SVO_glsl::octreePoolNumNodes

◆ projectionOffset

uniform vec2 glsl::SVO_glsl::projectionOffset

◆ projectionScale

uniform float glsl::SVO_glsl::projectionScale

◆ rootIndexBufferTex

uniform usamplerBuffer glsl::SVO_glsl::rootIndexBufferTex

◆ svo_triangle_normal

vec3 glsl::SVO_glsl::svo_triangle_normal

◆ svoWorldToSVOMat

uniform mat4 glsl::SVO_glsl::svoWorldToSVOMat

documentation generated on Wed Nov 24 2021 08:02:04 using doxygen 1.8.15