Represents a reference to a VkSampler object managed by a SamplerCollection.
More...
#include <foray_samplercollection.hpp>
Represents a reference to a VkSampler object managed by a SamplerCollection.
◆ SamplerReference() [1/5]
foray::core::SamplerReference::SamplerReference |
( |
| ) |
|
|
default |
◆ SamplerReference() [2/5]
foray::core::SamplerReference::SamplerReference |
( |
const SamplerReference & |
other | ) |
|
◆ SamplerReference() [3/5]
◆ ~SamplerReference()
virtual foray::core::SamplerReference::~SamplerReference |
( |
| ) |
|
|
virtual |
◆ SamplerReference() [4/5]
foray::core::SamplerReference::SamplerReference |
( |
Context * |
context, |
|
|
const VkSamplerCreateInfo & |
samplerCi |
|
) |
| |
Construct and initialize.
- Parameters
-
context | Requires SamplerCol field |
samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
◆ SamplerReference() [5/5]
foray::core::SamplerReference::SamplerReference |
( |
SamplerCollection * |
collection, |
|
|
const VkSamplerCreateInfo & |
samplerCi |
|
) |
| |
Construct and initialize.
- Parameters
-
collection | Collection to get a sampler from |
samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
◆ Destroy()
void foray::core::SamplerReference::Destroy |
( |
| ) |
|
Returns the sampler and deinitializes.
◆ Init() [1/2]
void foray::core::SamplerReference::Init |
( |
Context * |
context, |
|
|
const VkSamplerCreateInfo & |
samplerCi |
|
) |
| |
Initializes by fetching a matching sampler from sampler collection.
- Parameters
-
context | Requires SamplerCol field |
samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
◆ Init() [2/2]
void foray::core::SamplerReference::Init |
( |
SamplerCollection * |
collection, |
|
|
const VkSamplerCreateInfo & |
samplerCi |
|
) |
| |
Initializes by fetching a matching sampler from sampler collection.
- Parameters
-
collection | Collection to get a sampler from |
samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
◆ operator VkSampler()
foray::core::SamplerReference::operator VkSampler |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ mCollection
Collection owning the Sampler object.
◆ mHash
uint64_t foray::core::SamplerReference::mHash = (uint64_t)0 |
|
protected |
Hash of the Sampler CreateInfo.
◆ mSampler
VkSampler foray::core::SamplerReference::mSampler = nullptr |
|
protected |
The documentation for this class was generated from the following file: