|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Buffers::TextureBuffer::TextureBuffer | ( | uint32_t | width, |
| uint32_t | height, | ||
| Portal::Graphics::ImageFormat | format, | ||
| const void * | initial_pixel_data = nullptr |
||
| ) |
Create texture buffer with dimensions.
| width | Texture width in pixels |
| height | Texture height in pixels |
| format | Pixel format |
| initial_pixel_data | Optional initial pixel data (nullptr = uninitialized) |
The VKBuffer itself contains fullscreen quad vertices. The texture pixels are stored separately and uploaded to VKImage.
Definition at line 18 of file TextureBuffer.cpp.
References MayaFlux::Journal::Buffers, generate_default_quad(), MayaFlux::Portal::Graphics::TextureLoom::get_bytes_per_pixel(), MayaFlux::Journal::Init, m_height, m_pixel_data, m_vertex_bytes, m_width, MF_INFO, and MayaFlux::Buffers::VKBuffer::resize().
Here is the call graph for this function: