|
Blender V5.0
|
#include <vk_samplers.hh>
Inherits blender::NonCopyable.
Public Member Functions | |
| void | init () |
| void | free () |
| const VKSampler & | get (const GPUSamplerState &sampler_state) const |
Collection of samplers.
Samplers are device owned and can be shared between contexts.
Definition at line 22 of file vk_samplers.hh.
| void blender::gpu::VKSamplers::free | ( | ) |
Definition at line 34 of file vk_samplers.cc.
References GPU_SAMPLER_CUSTOM_COMPARE, GPU_SAMPLER_CUSTOM_ICON, GPU_SAMPLER_EXTEND_MODES_COUNT, and GPU_SAMPLER_FILTERING_TYPES_COUNT.
| const VKSampler & blender::gpu::VKSamplers::get | ( | const GPUSamplerState & | sampler_state | ) | const |
Definition at line 48 of file vk_samplers.cc.
References BLI_assert, GPUSamplerState::custom_type, GPUSamplerState::extend_x, GPUSamplerState::extend_yz, GPUSamplerState::filtering, GPU_SAMPLER_STATE_TYPE_CUSTOM, GPU_SAMPLER_STATE_TYPE_INTERNAL, and GPUSamplerState::type.
| void blender::gpu::VKSamplers::init | ( | ) |
Definition at line 13 of file vk_samplers.cc.
References GPUSamplerState::compare_sampler(), GPU_SAMPLER_CUSTOM_COMPARE, GPU_SAMPLER_CUSTOM_ICON, GPU_SAMPLER_EXTEND_MODES_COUNT, GPU_SAMPLER_FILTERING_TYPES_COUNT, GPUSamplerState::icon_sampler(), and state.