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

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

#include <GREM/graphics_3d/Renderer3D.hpp>

Public Attributes

vec2 screenViewportOffset
 Viewport offset in pixels.
float screenFramebufferHeight
 Framebuffer height in pixels.
float screenInverseTileSize
 Inverse of tile size.
u32vec2 screenTileCounts
 Tile counts along the X/Y axes.
uint32_t screenDepthBinCount
 Depth bin count along the Z axis.
sampler2DArrayShadow screenCascadedShadowMaps
 Sampler for the depth texture array representing the cascaded 2D shadow maps of sun/directional lights.
samplerCubeArrayShadow screenPointLightShadowMaps
 Sampler for the depth texture array representing the cube shadow maps of point lights.
sampler2DArrayShadow screenSpotLightShadowMaps
 Sampler for the depth texture array representing the 2D shadow maps of spot lights.
uint32_t screenGlobalLightCount
 Number of global lights at the beginning of the light buffer.

Detailed Description

Struct of shader parameters representing the current screen.

Member Data Documentation

◆ screenViewportOffset

vec2 grem::graphics::Renderer3D::ScreenParameters::screenViewportOffset

Viewport offset in pixels.

◆ screenFramebufferHeight

float grem::graphics::Renderer3D::ScreenParameters::screenFramebufferHeight

Framebuffer height in pixels.

◆ screenInverseTileSize

float grem::graphics::Renderer3D::ScreenParameters::screenInverseTileSize

Inverse of tile size.

◆ screenTileCounts

u32vec2 grem::graphics::Renderer3D::ScreenParameters::screenTileCounts

Tile counts along the X/Y axes.

◆ screenDepthBinCount

uint32_t grem::graphics::Renderer3D::ScreenParameters::screenDepthBinCount

Depth bin count along the Z axis.

◆ screenCascadedShadowMaps

sampler2DArrayShadow grem::graphics::Renderer3D::ScreenParameters::screenCascadedShadowMaps

Sampler for the depth texture array representing the cascaded 2D shadow maps of sun/directional lights.

◆ screenPointLightShadowMaps

samplerCubeArrayShadow grem::graphics::Renderer3D::ScreenParameters::screenPointLightShadowMaps

Sampler for the depth texture array representing the cube shadow maps of point lights.

◆ screenSpotLightShadowMaps

sampler2DArrayShadow grem::graphics::Renderer3D::ScreenParameters::screenSpotLightShadowMaps

Sampler for the depth texture array representing the 2D shadow maps of spot lights.

◆ screenGlobalLightCount

uint32_t grem::graphics::Renderer3D::ScreenParameters::screenGlobalLightCount

Number of global lights at the beginning of the light buffer.


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