R2 Shaders
R2DepthTypes.h
Go to the documentation of this file.
1 #ifndef R2_DEPTH_TYPES_H
2 #define R2_DEPTH_TYPES_H
3 
4 /// \file R2DepthTypes.h
5 /// \brief Types related to depth/depth-variance rendering.
6 
7 /// The type of values produced by depth shader executions.
8 
10  /// `true` iff the fragment should be discarded
11  bool discarded;
12  /// The calculated logarithmic depth of the surface
13  float depth;
14 };
15 
16 #endif // R2_DEPTH_TYPES_H
float depth
The calculated logarithmic depth of the surface.
Definition: R2DepthTypes.h:13
The type of values produced by depth shader executions.
Definition: R2DepthTypes.h:9
bool discarded
true iff the fragment should be discarded
Definition: R2DepthTypes.h:11