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

◆ create_descriptor_buffer()

std::shared_ptr< VKBuffer > MayaFlux::Buffers::DescriptorBindingsProcessor::create_descriptor_buffer ( size_t  size,
vk::DescriptorType  type 
)
private

Create GPU buffer for a descriptor binding.

Definition at line 334 of file DescriptorBindingsProcessor.cpp.

337{
338 VKBuffer::Usage usage {};
339
340 if (type == vk::DescriptorType::eUniformBuffer) {
342 } else { // SSBO
344 }
345
346 return std::make_shared<VKBuffer>(
347 size,
348 usage,
350}
@ UNIFORM
Uniform buffer (host-visible when requested)
@ COMPUTE
Storage buffer for compute shaders.
@ UNKNOWN
Unknown or undefined modality.

References MayaFlux::Buffers::VKBuffer::COMPUTE, MayaFlux::Buffers::VKBuffer::UNIFORM, and MayaFlux::Kakshya::UNKNOWN.

Referenced by bind_matrix_node(), bind_scalar_node(), bind_structured_node(), and bind_vector_node().

+ Here is the caller graph for this function: