|
Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Wraps an image + sampler combination. More...
#include <foray_samplercollection.hpp>
Public Member Functions | |
| CombinedImageSampler ()=default | |
| CombinedImageSampler (const CombinedImageSampler &other) | |
| CombinedImageSampler (CombinedImageSampler &&other) | |
| CombinedImageSampler & | operator= (const CombinedImageSampler &other) |
| CombinedImageSampler (core::Context *context, core::ManagedImage *image, const VkSamplerCreateInfo &samplerCi) | |
| Construct and initialize. | |
| void | Init (core::Context *context, const VkSamplerCreateInfo &samplerCi) |
| Initializes by fetching a matching sampler from sampler collection. | |
| void | Init (core::Context *context, core::ManagedImage *image, const VkSamplerCreateInfo &samplerCi) |
| Initializes by fetching a matching sampler from sampler collection. | |
| VkDescriptorImageInfo | GetVkDescriptorInfo (VkImageLayout layout=VkImageLayout::VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL) const |
| Build descriptor image info. | |
Public Member Functions inherited from foray::core::SamplerReference | |
| SamplerReference ()=default | |
| SamplerReference (const SamplerReference &other) | |
| SamplerReference (SamplerReference &&other) | |
| SamplerReference & | operator= (const SamplerReference &other) |
| virtual | ~SamplerReference () |
| SamplerReference (Context *context, const VkSamplerCreateInfo &samplerCi) | |
| Construct and initialize. | |
| SamplerReference (SamplerCollection *collection, const VkSamplerCreateInfo &samplerCi) | |
| Construct and initialize. | |
| void | Init (Context *context, const VkSamplerCreateInfo &samplerCi) |
| Initializes by fetching a matching sampler from sampler collection. | |
| void | Init (SamplerCollection *collection, const VkSamplerCreateInfo &samplerCi) |
| Initializes by fetching a matching sampler from sampler collection. | |
| void | Destroy () |
| Returns the sampler and deinitializes. | |
| operator VkSampler () const | |
Protected Attributes | |
| core::ManagedImage * | mManagedImage = nullptr |
| Reference used only for descriptor image info filling. | |
Protected Attributes inherited from foray::core::SamplerReference | |
| VkSampler | mSampler = nullptr |
| Sampler (owned by SamplerCollection, this is a loan) | |
| uint64_t | mHash = (uint64_t)0 |
| Hash of the Sampler CreateInfo. | |
| SamplerCollection * | mCollection = nullptr |
| Collection owning the Sampler object. | |
Wraps an image + sampler combination.
|
default |
| foray::core::CombinedImageSampler::CombinedImageSampler | ( | const CombinedImageSampler & | other | ) |
| foray::core::CombinedImageSampler::CombinedImageSampler | ( | CombinedImageSampler && | other | ) |
| foray::core::CombinedImageSampler::CombinedImageSampler | ( | core::Context * | context, |
| core::ManagedImage * | image, | ||
| const VkSamplerCreateInfo & | samplerCi | ||
| ) |
Construct and initialize.
| context | Requires SamplerCol field |
| image | Image |
| samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
|
inline |
Build descriptor image info.
| void foray::core::CombinedImageSampler::Init | ( | core::Context * | context, |
| const VkSamplerCreateInfo & | samplerCi | ||
| ) |
Initializes by fetching a matching sampler from sampler collection.
| context | Requires SamplerCol field |
| samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
| void foray::core::CombinedImageSampler::Init | ( | core::Context * | context, |
| core::ManagedImage * | image, | ||
| const VkSamplerCreateInfo & | samplerCi | ||
| ) |
Initializes by fetching a matching sampler from sampler collection.
| context | Requires SamplerCol field |
| image | Image |
| samplerCi | Sampler create info (Note: DO NOT USE for non zero .pNext) |
| CombinedImageSampler & foray::core::CombinedImageSampler::operator= | ( | const CombinedImageSampler & | other | ) |
|
protected |
Reference used only for descriptor image info filling.