MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ TextureArrayBuffer() [1/2]

MayaFlux::Buffers::TextureArrayBuffer::TextureArrayBuffer ( uint32_t  width,
uint32_t  height,
Portal::Graphics::ImageFormat  format,
uint32_t  layers 
)
Parameters
widthWidth of every layer in pixels.
heightHeight of every layer in pixels.
formatPixel format of every layer.
layersNumber of layers, at least 1.

Definition at line 17 of file TextureArrayBuffer.cpp.

23 , m_layers(std::max(layers, 1U))
25{
26 RenderConfig config;
27 config.vertex_shader = "texture.vert.spv";
28 config.fragment_shader = "texture_array.frag.spv";
29 config.default_texture_binding = "textureArray";
32
34 m_push.weights.fill(1.0F);
35}
bool format
uint32_t width
uint32_t height
TextureBuffer(uint32_t width, uint32_t height, Portal::Graphics::ImageFormat format, const void *initial_pixel_data=nullptr)
Create texture buffer with dimensions.
Portal::Graphics::RenderConfig RenderConfig
Definition VKBuffer.hpp:78
void set_default_render_config(const RenderConfig &config)
Called by derived classes to set their context-specific defaults.
Definition VKBuffer.hpp:631
static size_t get_bytes_per_pixel(ImageFormat format)
Get bytes per pixel for a format.
std::array< float, WEIGHT_SLOTS > weights

References MayaFlux::Portal::Graphics::RenderConfig::default_texture_binding, MayaFlux::Portal::Graphics::RenderConfig::fragment_shader, MayaFlux::Buffers::TextureArrayBuffer::Push::layer_count, m_layers, m_push, max, MayaFlux::Buffers::VKBuffer::set_default_render_config(), MayaFlux::Portal::Graphics::RenderConfig::topology, MayaFlux::Portal::Graphics::TRIANGLE_STRIP, MayaFlux::Portal::Graphics::RenderConfig::vertex_shader, and MayaFlux::Buffers::TextureArrayBuffer::Push::weights.

+ Here is the call graph for this function: