JSchpp12 / Starlight

A toy renderer utilizing Vulkan
0 stars 0 forks source link

Descriptor Manager #26

Open JSchpp12 opened 11 months ago

JSchpp12 commented 11 months ago

Need some better way to manage descriptors and buffer memory. What would be great is if objects could register their own type (i.e. object or material) then combine that with the memory type (image) and a pointer to how to write that memory. Then checks could be done to make sure descriptors are combined correctly.

This could also be combined with shaderC to get the descriptor information.

Uses:

  1. Want something to be able to request a layout containing specific descriptors.

    void buildingPipeline(){
    vk::DescriptorSetLayout& layout = DescriptorManager::getSetLayoutFor([list of descriptor handles])
    }
  2. Builder style approach to getting a descriptor

    void prepareRender(){
    DescriptorRequest::Builder(device)
    .includeGlobals()
    }