|
Blender V5.3
|
Classes | |
| struct | Shared |
| struct | SharedUnorm |
| struct | SharedSRGB |
| struct | Constants |
| struct | Resources |
| Templated struct for bindings and performing the mipmap generation. More... | |
Functions | |
| template<typename DstType, typename SrcType> | |
| void | convert (DstType &, const SrcType) |
| template<> | |
| void | convert< float4, float > (float4 &dst_value, const float src_value) |
| template<> | |
| void | convert< float, float4 > (float &dst_value, const float4 src_value) |
| template<> | |
| void | convert< float4, float4 > (float4 &dst_value, const float4 src_value) |
| float | srgb_to_linearrgb (float c) |
| float | linearrgb_to_srgb (float c) |
| int2 | kernel_size_from_input_size (int2 input_size) |
| template<enum TextureWriteFormat format, typename SharedStorage, typename InnerType> | |
| void | update_mipmaps (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< format, SharedStorage, InnerType > &srt) |
| template void | update_mipmaps< UNORM_8, SharedUnorm, float > (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< UNORM_8, SharedUnorm, float > &srt) |
| template void | update_mipmaps< UNORM_8_8_8_8, SharedSRGB, float4 > (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< UNORM_8_8_8_8, SharedSRGB, float4 > &srt) |
| template void | update_mipmaps< SFLOAT_16, Shared< float >, float > (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< SFLOAT_16, Shared< float >, float > &srt) |
| template void | update_mipmaps< SFLOAT_16_16_16_16, Shared< float4 >, float4 > (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< SFLOAT_16_16_16_16, Shared< float4 >, float4 > &srt) |
| template void | update_mipmaps< SFLOAT_32, Shared< float >, float > (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< SFLOAT_32, Shared< float >, float > &srt) |
| template void | update_mipmaps< SFLOAT_32_32_32_32, Shared< float4 >, float4 > (const uint3 global_id, const uint3 group_id, const uint3 local_index, Resources< SFLOAT_32_32_32_32, Shared< float4 >, float4 > &srt) |
Variables | |
| static constexpr int | TILE_SIZE = MIPMAP_UPDATE_TILE_SIZE |
| static constexpr int | MAX_SHARED_SAMPLES = (TILE_SIZE + TILE_SIZE + 1) |
| static constexpr int | INPUT_LEVEL = 0 |
| void builtin::mipmaps::convert | ( | DstType & | , |
| const SrcType | ) |
Definition at line 16 of file gpu_shader_update_mipmaps.bsl.hh.
References convert().
Referenced by convert(), convert< float, float4 >(), convert< float4, float >(), convert< float4, float4 >(), builtin::mipmaps::Resources< format, SharedStorage, InnerType >::load_sample(), and builtin::mipmaps::Resources< format, SharedStorage, InnerType >::store_sample().
| void builtin::mipmaps::convert< float, float4 > | ( | float & | dst_value, |
| const float4 | src_value ) |
Definition at line 27 of file gpu_shader_update_mipmaps.bsl.hh.
| void builtin::mipmaps::convert< float4, float > | ( | float4 & | dst_value, |
| const float | src_value ) |
| void builtin::mipmaps::convert< float4, float4 > | ( | float4 & | dst_value, |
| const float4 | src_value ) |
Definition at line 31 of file gpu_shader_update_mipmaps.bsl.hh.
References convert().
Definition at line 140 of file gpu_shader_update_mipmaps.bsl.hh.
References kernel_size_from_input_size(), int2::x, and int2::y.
Referenced by builtin::mipmaps::Resources< format, SharedStorage, InnerType >::fill_intermediate_tile(), builtin::mipmaps::Resources< format, SharedStorage, InnerType >::fill_last_tile(), builtin::mipmaps::Resources< format, SharedStorage, InnerType >::intermediate_level_loop(), kernel_size_from_input_size(), and update_mipmaps().
Definition at line 47 of file gpu_shader_update_mipmaps.bsl.hh.
References linearrgb_to_srgb(), and pow.
Referenced by linearrgb_to_srgb(), builtin::mipmaps::Resources< format, SharedStorage, InnerType >::store_sample(), and builtin::mipmaps::SharedSRGB::store_sample().
Definition at line 38 of file gpu_shader_update_mipmaps.bsl.hh.
References pow, and srgb_to_linearrgb().
Referenced by builtin::mipmaps::Resources< format, SharedStorage, InnerType >::load_sample(), builtin::mipmaps::SharedSRGB::load_sample(), and srgb_to_linearrgb().
| void builtin::mipmaps::update_mipmaps | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< format, SharedStorage, InnerType > & | srt ) |
Definition at line 532 of file gpu_shader_update_mipmaps.bsl.hh.
References barrier(), global_invocation_id, INPUT_LEVEL, kernel_size_from_input_size(), local_invocation_id, LOCAL_SIZE_X, max, min, resource_table, tile_index, TILE_SIZE, update_mipmaps(), work_group_id, int2::x, and int2::y.
Referenced by update_mipmaps(), update_mipmaps< SFLOAT_16, Shared< float >, float >(), update_mipmaps< SFLOAT_16_16_16_16, Shared< float4 >, float4 >(), update_mipmaps< SFLOAT_32, Shared< float >, float >(), update_mipmaps< SFLOAT_32_32_32_32, Shared< float4 >, float4 >(), update_mipmaps< UNORM_8, SharedUnorm, float >(), and update_mipmaps< UNORM_8_8_8_8, SharedSRGB, float4 >().
| template void builtin::mipmaps::update_mipmaps< SFLOAT_16, Shared< float >, float > | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< SFLOAT_16, Shared< float >, float > & | srt ) |
References update_mipmaps().
| template void builtin::mipmaps::update_mipmaps< SFLOAT_16_16_16_16, Shared< float4 >, float4 > | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< SFLOAT_16_16_16_16, Shared< float4 >, float4 > & | srt ) |
References update_mipmaps().
| template void builtin::mipmaps::update_mipmaps< SFLOAT_32, Shared< float >, float > | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< SFLOAT_32, Shared< float >, float > & | srt ) |
References update_mipmaps().
| template void builtin::mipmaps::update_mipmaps< SFLOAT_32_32_32_32, Shared< float4 >, float4 > | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< SFLOAT_32_32_32_32, Shared< float4 >, float4 > & | srt ) |
References update_mipmaps().
| template void builtin::mipmaps::update_mipmaps< UNORM_8, SharedUnorm, float > | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< UNORM_8, SharedUnorm, float > & | srt ) |
References update_mipmaps().
| template void builtin::mipmaps::update_mipmaps< UNORM_8_8_8_8, SharedSRGB, float4 > | ( | const uint3 | global_id, |
| const uint3 | group_id, | ||
| const uint3 | local_index, | ||
| Resources< UNORM_8_8_8_8, SharedSRGB, float4 > & | srt ) |
References update_mipmaps().
|
staticconstexpr |
Definition at line 68 of file gpu_shader_update_mipmaps.bsl.hh.
Referenced by builtin::mipmaps::Resources< format, SharedStorage, InnerType >::fill_intermediate_tile(), builtin::mipmaps::Resources< format, SharedStorage, InnerType >::fill_last_tile(), builtin::mipmaps::Resources< format, SharedStorage, InnerType >::intermediate_level_loop(), and update_mipmaps().
Definition at line 67 of file gpu_shader_update_mipmaps.bsl.hh.
|
staticconstexpr |
Definition at line 66 of file gpu_shader_update_mipmaps.bsl.hh.
Referenced by update_mipmaps().