|
Blender V4.3
|
#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 23 of file vk_samplers.hh.
| void blender::gpu::VKSamplers::free | ( | ) |
Definition at line 34 of file vk_samplers.cc.
References blender::gpu::VKSampler::free(), GPU_SAMPLER_CUSTOM_COMPARE, GPU_SAMPLER_CUSTOM_ICON, GPU_SAMPLER_EXTEND_MODES_COUNT, and GPU_SAMPLER_FILTERING_TYPES_COUNT.
Referenced by blender::gpu::VKDevice::deinit(), and blender::gpu::VKDevice::reinit().
| 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(), blender::gpu::VKSampler::create(), GPUSamplerState::extend_yz, GPU_SAMPLER_CUSTOM_COMPARE, GPU_SAMPLER_CUSTOM_ICON, GPU_SAMPLER_EXTEND_MODES_COUNT, GPU_SAMPLER_FILTERING_TYPES_COUNT, GPUSamplerState::icon_sampler(), is_initialized, and state.
Referenced by blender::gpu::VKDevice::init(), and blender::gpu::VKDevice::reinit().