Blender
V4.3
source
blender
gpu
vulkan
vk_sampler.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
#include "
gpu_shader_private.hh
"
12
13
#include "
vk_common.hh
"
14
15
#include "
BLI_utility_mixins.hh
"
16
17
namespace
blender::gpu
{
18
class
VKContext;
19
20
class
VKSampler
:
public
NonCopyable
{
21
VkSampler vk_sampler_ = VK_NULL_HANDLE;
22
23
public
:
24
virtual
~VKSampler
();
25
void
create
(
const
GPUSamplerState
&sampler_state);
26
void
free
();
27
28
VkSampler
vk_handle
()
const
29
{
30
BLI_assert
(vk_sampler_ != VK_NULL_HANDLE);
31
return
vk_sampler_;
32
}
33
34
bool
is_initialized
()
const
35
{
36
return
vk_sampler_ != VK_NULL_HANDLE;
37
}
38
};
39
40
}
// namespace blender::gpu
BLI_assert
#define BLI_assert(a)
Definition
BLI_assert.h:50
BLI_utility_mixins.hh
blender::NonCopyable
Definition
BLI_utility_mixins.hh:16
blender::gpu::VKSampler
Definition
vk_sampler.hh:20
blender::gpu::VKSampler::vk_handle
VkSampler vk_handle() const
Definition
vk_sampler.hh:28
blender::gpu::VKSampler::is_initialized
bool is_initialized() const
Definition
vk_sampler.hh:34
blender::gpu::VKSampler::free
void free()
Definition
vk_sampler.cc:76
blender::gpu::VKSampler::create
void create(const GPUSamplerState &sampler_state)
Definition
vk_sampler.cc:22
blender::gpu::VKSampler::~VKSampler
virtual ~VKSampler()
Definition
vk_sampler.cc:17
gpu_shader_private.hh
blender::gpu
Definition
blf_internal_types.hh:23
GPUSamplerState
Definition
GPU_texture.hh:174
vk_common.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0