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

#include <gpu_shader_update_mipmaps.bsl.hh>

Public Member Functions

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

Public Attributes

float intermediate_level [MAX_SHARED_SAMPLES][MAX_SHARED_SAMPLES]

Detailed Description

Shared storage that can store intermediate results encoded as uint.

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

Member Function Documentation

◆ load_sample()

float builtin::mipmaps::SharedUnorm::load_sample ( int2 src_coord)
inline

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

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

◆ store_sample()

void builtin::mipmaps::SharedUnorm::store_sample ( int2 dst_coord,
float color )
inline

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

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

Member Data Documentation

◆ intermediate_level

float builtin::mipmaps::SharedUnorm::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 95 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: