Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Indexing into descriptor heaps with descriptor tables

$
0
0

Hi,

 

I'm trying to wrap my head around making sense of descriptor tables and heaps to design a flexible root signature/resource mapping system. I'm a little lost in the weeds and would appreciate someone pointing me in the right direction. Here goes:

 

  1. So lets say I have two descriptor tables (CBV and SRV) in my root parameters - how do I allocate a descriptor heap properly so that there's enough storage for N and M ranges in the CBV and SRV respectively?
  2. Related to #1 - how is the index for the the descriptor tables into the heap specified?
  3. Related to #1, if I am able to allocate a large enough descriptor heap, is the full increment size just N or M times the handle increment size?
  4. Lastly, if I'm trying to draw a large amount geometry in batches that have unique resources, what's the most optimal descriptor table and heap configuration I should consider?

Thanks!

 


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>