ResourceHeap currently only supports one set of resource views that are always bound at once.
It should be extended to provide a functionality similar to the descriptor heap in D3D12, which stores an arbitrary number of descriptors in one heap.
The number of resources that are bound with SetResourceHeap will depend on the pipeline layout of the actively bound pipeline state.
SetResourceHeap should then have an optional parameter to specify the first resource within the heap.
Moreover, the parameter firstSet should be moved into BindingDescriptor structure:
ResourceHeap
currently only supports one set of resource views that are always bound at once. It should be extended to provide a functionality similar to the descriptor heap in D3D12, which stores an arbitrary number of descriptors in one heap. The number of resources that are bound withSetResourceHeap
will depend on the pipeline layout of the actively bound pipeline state.SetResourceHeap
should then have an optional parameter to specify the first resource within the heap. Moreover, the parameterfirstSet
should be moved intoBindingDescriptor
structure: