#include <cs237-texture.hpp>
|
vk::ImageView | view () const |
| return the image view for the texture
|
|
vk::Format | format () const |
| get the texel format
|
|
◆ TextureBase()
◆ ~TextureBase()
cs237::__detail::TextureBase::~TextureBase |
( |
| ) |
|
|
protected |
◆ _allocBufferMemory()
vk::DeviceMemory cs237::__detail::TextureBase::_allocBufferMemory |
( |
vk::Buffer |
buf, |
|
|
vk::MemoryPropertyFlags |
props |
|
) |
| |
|
inlineprotected |
A helper function for allocating and binding device memory for a buffer.
- Parameters
-
buf | the buffer to allocate memory for |
props | requred memory properties |
- Returns
- the device memory that has been bound to the buffer
◆ _createBuffer()
vk::Buffer cs237::__detail::TextureBase::_createBuffer |
( |
size_t |
size, |
|
|
vk::BufferUsageFlags |
usage |
|
) |
| |
|
inlineprotected |
create a vk::Buffer object
- Parameters
-
size | the size of the buffer in bytes |
usage | the usage of the buffer |
- Returns
- the allocated buffer
◆ _init()
initialize a texture by copying data into it using a staging buffer.
- Parameters
-
img | the source of the data |
◆ format()
vk::Format cs237::__detail::TextureBase::format |
( |
| ) |
const |
|
inline |
◆ view()
vk::ImageView cs237::__detail::TextureBase::view |
( |
| ) |
const |
|
inline |
return the image view for the texture
◆ _app
◆ _fmt
vk::Format cs237::__detail::TextureBase::_fmt |
|
protected |
◆ _ht
uint32_t cs237::__detail::TextureBase::_ht |
|
protected |
teture height (1 for 1D textures)
◆ _img
vk::Image cs237::__detail::TextureBase::_img |
|
protected |
Vulkan image to hold the texture.
◆ _mem
vk::DeviceMemory cs237::__detail::TextureBase::_mem |
|
protected |
device memory for the texture image
◆ _nMipLevels
uint32_t cs237::__detail::TextureBase::_nMipLevels |
|
protected |
◆ _view
vk::ImageView cs237::__detail::TextureBase::_view |
|
protected |
image view for texture image
◆ _wid
uint32_t cs237::__detail::TextureBase::_wid |
|
protected |
The documentation for this class was generated from the following file: