Blender V5.3
builtin::mipmaps::SharedSRGB Struct Reference

#include <gpu_shader_update_mipmaps.bsl.hh>

Public Member Functions

void store_sample (int2 dst_coord, float4 color)
float4 load_sample (int2 src_coord)

Public Attributes

uint intermediate_level [MAX_SHARED_SAMPLES][MAX_SHARED_SAMPLES]

Detailed Description

Shared storage that can store intermediate results in an SRGB encoded uint.

Definition at line 109 of file gpu_shader_update_mipmaps.bsl.hh.

Member Function Documentation

◆ load_sample()

float4 builtin::mipmaps::SharedSRGB::load_sample ( int2 src_coord)
inline

◆ store_sample()

void builtin::mipmaps::SharedSRGB::store_sample ( int2 dst_coord,
float4 color )
inline

Member Data Documentation

◆ intermediate_level

uint builtin::mipmaps::SharedSRGB::intermediate_level[MAX_SHARED_SAMPLES][MAX_SHARED_SAMPLES]

When generating 2 levels, the results the first level are cached here; this is the input tile needed to generate the 8x8 tile of the second level.

Definition at line 114 of file gpu_shader_update_mipmaps.bsl.hh.

Referenced by load_sample(), and store_sample().


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