R2 Core 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
9 struct R2_depth_shader_result_t {
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
R2_depth_shader_result_t::depth
float depth
The calculated logarithmic depth of the surface.
Definition: R2DepthTypes.h:13
R2_depth_shader_result_t
The type of values produced by depth shader executions.
Definition: R2DepthTypes.h:9
R2_depth_shader_result_t::discarded
bool discarded
true iff the fragment should be discarded
Definition: R2DepthTypes.h:11