Blender V5.3
builtin::mipmaps::Shared< T > Struct Template Reference

#include <gpu_shader_update_mipmaps.bsl.hh>

Public Member Functions

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

Public Attributes

T intermediate_level [MAX_SHARED_SAMPLES][MAX_SHARED_SAMPLES]

Detailed Description

template<typename T>
struct builtin::mipmaps::Shared< T >

Shared storage that can store intermediate results using without encoding.

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

Member Function Documentation

◆ load_sample()

template<typename T>
T builtin::mipmaps::Shared< T >::load_sample ( int2 src_coord)
inline

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

References intermediate_level, T, int2::x, and int2::y.

◆ store_sample()

template<typename T>
void builtin::mipmaps::Shared< T >::store_sample ( int2 dst_coord,
T color )
inline

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

References intermediate_level, T, int2::x, and int2::y.

Member Data Documentation

◆ intermediate_level

template<typename T>
T builtin::mipmaps::Shared< T >::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 76 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: