|
MayaFlux 0.4.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 45 of file TextureBuffer.cpp.