|
Blender V5.3
|
#include <eevee_gbuffer_types.bsl.hh>
Public Member Functions | |
| bool | is_empty () const |
| void | closure_set (uint bin, GBufferMode mode) |
| GBufferMode | closure (uint bin) const |
| bool | use_object_id () const |
| void | use_object_id_set (bool value) |
| void | tangent_space_id_set (uint layer_id, uint normal_id) |
| uchar | tangent_space_id (uint layer_id) const |
| void | geometry_normal_set (float3 Ng, float3 N) |
| float3 | geometry_normal (float3 surface_N) const |
| uint3 | bin_types () const |
| GBufferMode | bin_type (uchar bin) const |
| uint3 | bin_types_per_layer () const |
| uint3 | bin_index_per_layer () const |
| bool3 | empty_bins () const |
| uchar | closure_len () const |
| uchar | normal_len () const |
| uint | raw () const |
| bool | has_transmission () const |
| bool | has_additional_data () const |
| uchar | bin_to_layer (uchar bin_id) const |
Static Public Member Functions | |
| static Header | from_data (uint data) |
| static Header | zero () |
Static Public Attributes | |
| static constexpr uint | GBUFFER_NORMAL_BITS_SHIFT = 12u |
| static constexpr uint | GBUFFER_GEOMETRIC_NORMAL_BITS_SHIFT = 20u |
| static constexpr int | GBUFFER_HEADER_BITS_PER_BIN = 4 |
The GBuffer is polymorphic and its content varies from pixel to pixel. The header contains some common information and layout of the GBuffer content.
Definition at line 305 of file eevee_gbuffer_types.bsl.hh.
|
inline |
Definition at line 430 of file eevee_gbuffer_types.bsl.hh.
References bin_types(), gbuffer::GBUF_NONE, uint3::x, and uint3::y.
Referenced by eevee::deferred::combine_frag(), eevee::deferred::light_eval_frag(), and eevee::fast_gi::resolve().
Definition at line 490 of file eevee_gbuffer_types.bsl.hh.
References bin_types(), and gbuffer::GBUF_NONE.
Referenced by gbuffer::Reader::read_bin().
|
inline |
Definition at line 410 of file eevee_gbuffer_types.bsl.hh.
References GBUFFER_HEADER_BITS_PER_BIN.
Referenced by eevee_test_gbuffer_closure_main(), gbuffer::Reader::read_bin(), eevee::raytrace::planar::trace(), and eevee::raytrace::screen::trace().
|
inline |
Definition at line 401 of file eevee_gbuffer_types.bsl.hh.
References GBUFFER_HEADER_BITS_PER_BIN.
Referenced by bin_index_per_layer(), bin_to_layer(), bin_types_per_layer(), and empty_bins().
|
inline |
Definition at line 418 of file eevee_gbuffer_types.bsl.hh.
References bin_types(), gbuffer::GBUF_NONE, uint3::x, and uint3::y.
Referenced by gbuffer::Reader::read_layers().
|
inline |
Definition at line 352 of file eevee_gbuffer_types.bsl.hh.
References GBUFFER_HEADER_BITS_PER_BIN.
|
inline |
Definition at line 449 of file eevee_gbuffer_types.bsl.hh.
References empty_bins(), and reduce_add().
Referenced by eevee::deferred::tiles::classify_tiles(), eevee::deferred::combine_frag(), eevee_test_gbuffer_closure_main(), eevee_test_gbuffer_normal_main(), eevee::deferred::light_eval_frag(), eevee::deferred::planar_eval_frag(), gbuffer::Reader::read_bin(), gbuffer::Reader::read_layers(), eevee::fast_gi::resolve(), gbuffer::Packer::result_get(), and eevee::deferred::sphere_eval_frag().
|
inline |
Definition at line 348 of file eevee_gbuffer_types.bsl.hh.
References GBUFFER_HEADER_BITS_PER_BIN.
Referenced by gbuffer::pack().
|
inline |
Definition at line 444 of file eevee_gbuffer_types.bsl.hh.
References bin_types(), equal, and gbuffer::GBUF_NONE.
Referenced by closure_len(), eevee_test_gbuffer_closure_main(), and eevee_test_gbuffer_normal_main().
|
inlinestatic |
Definition at line 331 of file eevee_gbuffer_types.bsl.hh.
Referenced by eevee::deferred::tiles::classify_tiles(), eevee_test_gbuffer_closure_main(), eevee_test_gbuffer_normal_main(), gbuffer::Reader::read_header(), and zero().
Definition at line 395 of file eevee_gbuffer_types.bsl.hh.
References gbuffer::geometry_normal_unpack().
Referenced by eevee::deferred::light_eval_frag(), eevee::deferred::planar_eval_frag(), and eevee::deferred::sphere_eval_frag().
Definition at line 391 of file eevee_gbuffer_types.bsl.hh.
References gbuffer::geometry_normal_pack(), and N.
Referenced by gbuffer::pack().
|
inline |
Definition at line 482 of file eevee_gbuffer_types.bsl.hh.
References has_transmission().
Referenced by gbuffer::pack(), gbuffer::Reader::read_thickness(), and gbuffer::Packer::result_get().
|
inline |
Definition at line 471 of file eevee_gbuffer_types.bsl.hh.
References gbuffer::GBUF_TRANSMISSION_BIT, and GBUFFER_HEADER_BITS_PER_BIN.
Referenced by eevee::deferred::tiles::classify_tiles(), and has_additional_data().
|
inline |
Definition at line 343 of file eevee_gbuffer_types.bsl.hh.
Referenced by eevee::fast_gi::resolve(), and eevee::fast_gi::setup().
|
inline |
Definition at line 454 of file eevee_gbuffer_types.bsl.hh.
|
inline |
Definition at line 466 of file eevee_gbuffer_types.bsl.hh.
Referenced by eevee::debug::gbuffer::frag_main(), and gbuffer::Packer::result_get().
|
inline |
Definition at line 380 of file eevee_gbuffer_types.bsl.hh.
References GBUFFER_NORMAL_BITS_SHIFT.
Referenced by eevee_test_gbuffer_normal_main(), gbuffer::Packer::get_used_normal_layers(), gbuffer::Reader::read_bin(), and gbuffer::Reader::read_layers().
|
inline |
Set the dedicated normal bit for the specified layer. Expects layer_id to be in [0..2]. Expects normal_id to be in [0..3] (packed in 2bits).
Definition at line 372 of file eevee_gbuffer_types.bsl.hh.
References assert, and GBUFFER_NORMAL_BITS_SHIFT.
Referenced by gbuffer::Packer::reuse_tangent_spaces().
|
inline |
Definition at line 358 of file eevee_gbuffer_types.bsl.hh.
References flag_test().
Referenced by eevee::deferred::light_eval_frag(), eevee::deferred::planar_eval_frag(), gbuffer::Packer::result_get(), and eevee::deferred::sphere_eval_frag().
|
inline |
Definition at line 362 of file eevee_gbuffer_types.bsl.hh.
References set_flag_from_test().
Referenced by gbuffer::pack().
|
inlinestatic |
Definition at line 338 of file eevee_gbuffer_types.bsl.hh.
References from_data().
Referenced by gbuffer::pack().
|
staticconstexpr |
Definition at line 307 of file eevee_gbuffer_types.bsl.hh.
|
staticconstexpr |
Definition at line 308 of file eevee_gbuffer_types.bsl.hh.
Referenced by bin_type(), bin_types(), closure(), closure_set(), and has_transmission().
|
staticconstexpr |
Definition at line 306 of file eevee_gbuffer_types.bsl.hh.
Referenced by tangent_space_id(), and tangent_space_id_set().