core::ivk::texture_t class

a texture resource used for rendering, either as target, or as input resource.

textures are vital in a graphics application, and this class abstracts 2D, 3D, etc.. into one "texture object" as it is used by the renderer, and not to be used as a container directly.

member-functions

image
const public noexcept
view
const public noexcept
layout
const public noexcept
memory
const public noexcept
subResourceRange
const public noexcept
meta
const public noexcept
mip_levels
const public noexcept
descriptor
public

Function documentation

const vk::Image& core::ivk::texture_t::image() const noexcept

Returns the vk::Image associated with this instance.

const vk::ImageView& core::ivk::texture_t::view() const noexcept

Returns the view into the vk::Image of this instance.

const vk::ImageLayout& core::ivk::texture_t::layout() const noexcept

Returns the layout specifications.

const vk::DeviceMemory& core::ivk::texture_t::memory() const noexcept

Returns the vulkan handle to the device memory location.

const vk::ImageSubresourceRange& core::ivk::texture_t::subResourceRange() const noexcept

Returns the ImageSubresourceRange

const core::meta::texture_t& core::ivk::texture_t::meta() const noexcept

Returns the meta data that describes this texture object.

uint32_t core::ivk::texture_t::mip_levels() const noexcept

Returns how many mip levels are present in this object.

vk::DescriptorImageInfo& core::ivk::texture_t::descriptor(const psl::UID& sampler)

Details

Returns a descriptor image info for the given sampler, if none are present one is generated.