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

◆ clear_layer()

void MayaFlux::Buffers::TextureArrayBuffer::clear_layer ( uint32_t  layer)
private

Definition at line 240 of file TextureArrayBuffer.cpp.

241{
242 if (m_blank.size() != m_layer_bytes) {
243 m_blank.assign(m_layer_bytes, 0);
244 }
245 if (!m_layer_staging) {
247 }
248
250 get_texture(), layer, m_blank.data(), m_blank.size(), m_layer_staging);
251}
std::shared_ptr< VKBuffer > m_layer_staging
std::shared_ptr< Core::VKImage > get_texture() const
Get GPU texture image Suitable for binding to shaders via RenderProcessor::bind_texture()
bool upload_layer(const std::shared_ptr< Core::VKImage > &image, uint32_t layer, const void *data, size_t size, const std::shared_ptr< Buffers::VKBuffer > &staging=nullptr, bool deferred=false)
Upload pixels into one layer of an array image.
std::shared_ptr< VKBuffer > create_image_staging_buffer(size_t size)
Allocate a persistent host-visible staging buffer sized for repeated streaming uploads to an image of...
MAYAFLUX_API TextureLoom & get_texture_manager()
Get the global texture manager instance.

References MayaFlux::Buffers::create_image_staging_buffer(), MayaFlux::Buffers::TextureBuffer::get_texture(), MayaFlux::Portal::Graphics::get_texture_manager(), m_blank, m_layer_bytes, m_layer_staging, and MayaFlux::Portal::Graphics::TextureLoom::upload_layer().

Referenced by submit_layer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: