33 ClosureUndetermined cl;
77 ClosureUndetermined
layer[GBUFFER_LAYER_MAX];
82 return this->layer[0].N;
107#if defined(GPU_NVIDIA) && defined(GPU_OPENGL)
117#if defined(GPU_NVIDIA) && defined(GPU_OPENGL)
140 cl_in.
mode = bin_mode;
166 for (
int i = 0; i < 3 ; i++) [[
unroll]] {
182 return read_layer(normal_id, closure_count, bin_mode, texel, layer_id);
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
#define GBUF_NORMAL_TEX_SLOT
#define GBUF_CLOSURE_TEX_SLOT
#define GBUF_HEADER_TEX_SLOT
SamplerBase< uint, 2, false, true > usampler2DArray
TEX_TEMPLATE DataVec texelFetch(T, IntCoord, int) RET
SamplerBase< float, 2, false, true > sampler2DArray
TEX_TEMPLATE SizeVec textureSize(T, int) RET
ClosureUndetermined unpack_closure(ClosurePacking cl_in)
float3 closure_color_unpack(float4 color_packed)
@ GBUF_REFRACTION_COLORLESS
@ GBUF_REFLECTION_COLORLESS
@ GBUF_THIN_REFRACTION_COLORLESS
ClosureType mode_to_closure_type(uint mode)
float3 normal_unpack(float2 N_packed)
static AdditionalInfo unpack(float2 data)
ClosureUndetermined layer[GBUFFER_LAYER_MAX]
bool has_any_closure() const
bool has_no_closure() const
float4 fetch_data(int2 texel, uchar layer) const
float3 read_normal(int2 texel) const
ClosureUndetermined read_bin(int2 texel, uchar bin_index) const
float4 fetch_normal(int2 texel, uchar layer) const
Thickness read_thickness(Header header, int2 texel) const
Layers read_layers(int2 texel) const
float4 fetch_additional_data(int2 texel) const
Header read_header(int2 texel) const
uint read_object_id(int2 texel) const
sampler2DArray gbuf_closure_tx
ClosureUndetermined read_bin(Header header, int2 texel, uchar bin_index) const
uint fetch_object_id(int2 texel) const
sampler2DArray gbuf_normal_tx
usampler2DArray gbuf_header_tx
ClosureUndetermined read_layer(uchar normal_id, uchar closure_len, GBufferMode bin_mode, int2 texel, uchar layer_id) const
static void unpack_additional(ClosureUndetermined &cl, float4 data0)
static void unpack_additional(ClosureUndetermined &cl, float4 data1)
static void unpack_additional(ClosureUndetermined &cl, float4 data0)
static void unpack_additional(ClosureUndetermined &cl, float4 data1)
static void unpack_additional(ClosureUndetermined &cl, float4 data1)
static void unpack_additional(ClosureUndetermined &cl, float4 data0)
static void unpack_additional(ClosureUndetermined &cl, float4 data1)