MayaFlux 0.2.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 14 of file VKBuffer.cpp.

18 : m_size_bytes(size_bytes)
19 , m_usage(usage)
20 , m_modality(modality)
21 , m_processing_chain(std::make_shared<Buffers::BufferProcessingChain>())
23{
25
27 "VKBuffer created (uninitialized): {} bytes, modality: {}",
28 size_bytes, Kakshya::modality_to_string(modality));
29}
#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:288
ProcessingToken m_processing_token
Definition VKBuffer.hpp:467
std::shared_ptr< Buffers::BufferProcessingChain > m_processing_chain
Definition VKBuffer.hpp:466
Kakshya::DataModality m_modality
Definition VKBuffer.hpp:454
@ 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:82

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: