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

◆ create_descriptor_layout

std::function<void*(const std::shared_ptr<void>&, const std::vector<std::pair<uint32_t, uint32_t>>&)> MayaFlux::Registry::Service::ComputeService::create_descriptor_layout

Create a descriptor set layout.

Parameters
managerDescriptor manager handle
bindingsVector of (binding index, descriptor type) pairs
Returns
Opaque descriptor layout handle

Defines the structure of shader resource bindings. Descriptor type values are backend-specific:

  • Vulkan: VK_DESCRIPTOR_TYPE_* enum values
  • OpenGL: GL_UNIFORM_BUFFER, GL_SHADER_STORAGE_BUFFER, etc.

Example bindings: {0, UNIFORM_BUFFER}, // binding 0: uniform buffer {1, STORAGE_BUFFER}, // binding 1: storage buffer {2, COMBINED_IMAGE_SAMPLER} // binding 2: texture

Definition at line 59 of file ComputeService.hpp.