GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Renderer3D::ScreenTileParameters Struct Reference

Struct of shader parameters representing the tiles of the screen. More...

#include <GREM/graphics_3d/Renderer3D.hpp>

Public Attributes

Array< u32vec4,(MAX_TILE_COUNT *2)/4 > tileItemOffsetsAndCountsBy4s
 Offsets and number of each item belonging to each tile in the item buffer, grouped into 4D vectors to improve packing in the std140 layout.

Static Public Attributes

static constexpr size_t MAX_TILE_COUNT = 1024
 Maximum number of on-screen tiles.

Detailed Description

Struct of shader parameters representing the tiles of the screen.

Member Data Documentation

◆ MAX_TILE_COUNT

size_t grem::graphics::Renderer3D::ScreenTileParameters::MAX_TILE_COUNT = 1024
staticconstexpr

Maximum number of on-screen tiles.

◆ tileItemOffsetsAndCountsBy4s

Array<u32vec4, (MAX_TILE_COUNT * 2) / 4> grem::graphics::Renderer3D::ScreenTileParameters::tileItemOffsetsAndCountsBy4s

Offsets and number of each item belonging to each tile in the item buffer, grouped into 4D vectors to improve packing in the std140 layout.

The data is packed in the following layout per tile:

  • 32 bits: Item offset
  • 8 bits: Decal count
  • 8 bits: Light count
  • 8 bits: Light probe count
  • 8 bits: Reflection probe count

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