Blender V5.3
gbuffer::Reader Struct Reference

#include <eevee_gbuffer_read.bsl.hh>

Public Member Functions

uint fetch_object_id (int2 texel) const
float4 fetch_data (int2 texel, uchar layer) const
float4 fetch_normal (int2 texel, uchar layer) const
float4 fetch_additional_data (int2 texel) const
ClosureUndetermined read_layer (uchar normal_id, uchar closure_len, GBufferMode bin_mode, int2 texel, uchar layer_id) const
Header read_header (int2 texel) const
Layers read_layers (int2 texel) const
ClosureUndetermined read_bin (Header header, int2 texel, uchar bin_index) const
ClosureUndetermined read_bin (int2 texel, uchar bin_index) const
Thickness read_thickness (Header header, int2 texel) const
float3 read_normal (int2 texel) const
uint read_object_id (int2 texel) const

Public Attributes

usampler2DArray gbuf_header_tx
sampler2DArray gbuf_closure_tx
sampler2DArray gbuf_normal_tx

Detailed Description

Definition at line 95 of file eevee_gbuffer_read.bsl.hh.

Member Function Documentation

◆ fetch_additional_data()

float4 gbuffer::Reader::fetch_additional_data ( int2 texel) const
inline

Definition at line 125 of file eevee_gbuffer_read.bsl.hh.

References gbuf_normal_tx, texelFetch(), textureSize(), and z().

Referenced by read_thickness().

◆ fetch_data()

float4 gbuffer::Reader::fetch_data ( int2 texel,
uchar layer ) const
inline

Definition at line 105 of file eevee_gbuffer_read.bsl.hh.

References gbuf_closure_tx, layer, min, and texelFetch().

Referenced by read_layer().

◆ fetch_normal()

float4 gbuffer::Reader::fetch_normal ( int2 texel,
uchar layer ) const
inline

Definition at line 115 of file eevee_gbuffer_read.bsl.hh.

References gbuf_normal_tx, layer, min, and texelFetch().

Referenced by read_layer(), and read_normal().

◆ fetch_object_id()

uint gbuffer::Reader::fetch_object_id ( int2 texel) const
inline

Definition at line 100 of file eevee_gbuffer_read.bsl.hh.

References gbuf_header_tx, and texelFetch().

Referenced by read_object_id().

◆ read_bin() [1/2]

ClosureUndetermined gbuffer::Reader::read_bin ( Header header,
int2 texel,
uchar bin_index ) const
inline

◆ read_bin() [2/2]

ClosureUndetermined gbuffer::Reader::read_bin ( int2 texel,
uchar bin_index ) const
inline

Definition at line 184 of file eevee_gbuffer_read.bsl.hh.

References read_bin(), and read_header().

◆ read_header()

Header gbuffer::Reader::read_header ( int2 texel) const
inline

Definition at line 152 of file eevee_gbuffer_read.bsl.hh.

References gbuffer::Header::from_data(), gbuf_header_tx, and texelFetch().

Referenced by read_bin(), and read_layers().

◆ read_layer()

◆ read_layers()

◆ read_normal()

float3 gbuffer::Reader::read_normal ( int2 texel) const
inline

Definition at line 200 of file eevee_gbuffer_read.bsl.hh.

References fetch_normal(), and gbuffer::normal_unpack().

◆ read_object_id()

uint gbuffer::Reader::read_object_id ( int2 texel) const
inline

Definition at line 207 of file eevee_gbuffer_read.bsl.hh.

References fetch_object_id().

◆ read_thickness()

Member Data Documentation

◆ gbuf_closure_tx

sampler2DArray gbuffer::Reader::gbuf_closure_tx

Definition at line 97 of file eevee_gbuffer_read.bsl.hh.

Referenced by fetch_data().

◆ gbuf_header_tx

usampler2DArray gbuffer::Reader::gbuf_header_tx

Definition at line 96 of file eevee_gbuffer_read.bsl.hh.

Referenced by fetch_object_id(), and read_header().

◆ gbuf_normal_tx

sampler2DArray gbuffer::Reader::gbuf_normal_tx

Definition at line 98 of file eevee_gbuffer_read.bsl.hh.

Referenced by fetch_additional_data(), and fetch_normal().


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