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

◆ VKBuffer() [1/2]

MayaFlux::Buffers::VKBuffer::VKBuffer ( size_t  size_bytes,
Usage  usage,
Kakshya::DataModality  modality 
)

Construct an unregistered VKBuffer.

Creates a VKBuffer object with the requested capacity, usage intent and semantic modality. No Vulkan resources are created by this constructor — registration with the BufferManager / backend is required to allocate VkBuffer and VkDeviceMemory.

Parameters
size_bytesBuffer capacity in bytes.
usageIntended usage pattern (affects Vulkan flags and memory).
modalitySemantic interpretation of the buffer contents.

Definition at line 13 of file VKBuffer.cpp.

17 : m_size_bytes(size_bytes)
18 , m_usage(usage)
19 , m_modality(modality)
20 , m_processing_chain(std::make_shared<Buffers::BufferProcessingChain>())
22{
24
26 "VKBuffer created (uninitialized): {} bytes, modality: {}",
27 size_bytes, Kakshya::modality_to_string(modality));
28}
#define MF_INFO(comp, ctx,...)
void infer_dimensions_from_data(size_t byte_count)
Infer Kakshya::DataDimension entries from a given byte count.
Definition VKBuffer.cpp:295
ProcessingToken m_processing_token
Definition VKBuffer.hpp:447
std::shared_ptr< Buffers::BufferProcessingChain > m_processing_chain
Definition VKBuffer.hpp:446
Kakshya::DataModality m_modality
Definition VKBuffer.hpp:434
@ GRAPHICS_BACKEND
Standard graphics processing backend configuration.
@ BufferManagement
Buffer Management (Buffers::BufferManager, creating buffers)
@ Buffers
Buffers, Managers, processors and processing chains.
std::string_view modality_to_string(DataModality modality)
Convert DataModality enum to string representation.
Definition NDData.cpp:80

References MayaFlux::Journal::BufferManagement, MayaFlux::Journal::Buffers, infer_dimensions_from_data(), MF_INFO, and MayaFlux::Kakshya::modality_to_string().

+ Here is the call graph for this function: