MayaFlux 1.0.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 = Kakshya::DataModality::VERTICES_3D 
)

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 19 of file VKBuffer.cpp.

23 : m_size_bytes(size_bytes)
24 , m_usage(usage)
25 , m_modality(modality)
26 , m_processing_chain(std::make_shared<Buffers::BufferProcessingChain>())
28{
30
32 "VKBuffer created (uninitialized): {} bytes, modality: {}",
33 size_bytes, Kakshya::modality_to_string(modality));
34}
#define MF_INFO(comp, ctx,...)
uint16_t usage
void infer_dimensions_from_data(size_t byte_count)
Infer Kakshya::DataDimension entries from a given byte count.
Definition VKBuffer.cpp:285
ProcessingToken m_processing_token
Definition VKBuffer.hpp:678
std::shared_ptr< Buffers::BufferProcessingChain > m_processing_chain
Definition VKBuffer.hpp:677
Kakshya::DataModality m_modality
Definition VKBuffer.hpp:665
@ 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:102

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: