Blender V4.3
blender::eevee::LightCullingData Struct Reference

#include <eevee_shader_shared.hh>

Inherited by blender::draw::StorageBuffer< LightCullingData >.

Public Attributes

float2 tile_to_uv_fac
 
float zbin_scale
 
float zbin_bias
 
uint items_count
 
uint local_lights_len
 
uint sun_lights_len
 
uint visible_count
 
float tile_size
 
uint tile_x_len
 
uint tile_y_len
 
uint tile_word_len
 
bool32_t view_is_flipped
 
uint _pad0
 
uint _pad1
 
uint _pad2
 

Detailed Description

Definition at line 782 of file eevee_shader_shared.hh.

Member Data Documentation

◆ _pad0

uint blender::eevee::LightCullingData::_pad0

Definition at line 805 of file eevee_shader_shared.hh.

◆ _pad1

uint blender::eevee::LightCullingData::_pad1

Definition at line 806 of file eevee_shader_shared.hh.

◆ _pad2

uint blender::eevee::LightCullingData::_pad2

Definition at line 807 of file eevee_shader_shared.hh.

◆ items_count

uint blender::eevee::LightCullingData::items_count

Valid item count in the source data array.

Definition at line 789 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync(), and blender::draw::test_eevee_shadow_tilemap_amend().

◆ local_lights_len

uint blender::eevee::LightCullingData::local_lights_len

Items that are processed by the 2.5D culling.

Definition at line 791 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync(), and blender::draw::test_eevee_shadow_tilemap_amend().

◆ sun_lights_len

uint blender::eevee::LightCullingData::sun_lights_len

Items that are NOT processed by the 2.5D culling (i.e: Sun Lights).

Definition at line 793 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync(), and blender::draw::test_eevee_shadow_tilemap_amend().

◆ tile_size

float blender::eevee::LightCullingData::tile_size

Extent of one square tile in pixels.

Definition at line 797 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync(), and blender::eevee::LightModule::set_view().

◆ tile_to_uv_fac

float2 blender::eevee::LightCullingData::tile_to_uv_fac

Scale applied to tile pixel coordinates to get target UV coordinate.

Definition at line 784 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::set_view().

◆ tile_word_len

uint blender::eevee::LightCullingData::tile_word_len

Number of word per tile. Depends on the maximum number of lights.

Definition at line 802 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync().

◆ tile_x_len

uint blender::eevee::LightCullingData::tile_x_len

Number of tiles on the X/Y axis.

Definition at line 799 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync().

◆ tile_y_len

uint blender::eevee::LightCullingData::tile_y_len

Definition at line 800 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::end_sync().

◆ view_is_flipped

bool32_t blender::eevee::LightCullingData::view_is_flipped

Is the view being processed by light culling flipped (true for light probe planes).

Definition at line 804 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::set_view().

◆ visible_count

uint blender::eevee::LightCullingData::visible_count

Number of items that passes the first culling test. (local lights only)

Definition at line 795 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::set_view().

◆ zbin_bias

float blender::eevee::LightCullingData::zbin_bias

Definition at line 787 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::set_view().

◆ zbin_scale

float blender::eevee::LightCullingData::zbin_scale

Scale and bias applied to linear Z to get zbin.

Definition at line 786 of file eevee_shader_shared.hh.

Referenced by blender::eevee::LightModule::set_view().


The documentation for this struct was generated from the following file: