GetCPUDescriptorHandleForHeapStart()

Started by
3 comments, last by galop1n 6 years, 1 month ago

Hi,

I have a question about this function in DX12 to get a HANDLE for descriptor.
I am curious if this function returns ALWAYS same address for specific descriptor, or address can change overtime ? Same for GPU version of function.

Thank you very much !

DirectX 11, C++

Advertisement

Calling it twice on the same heap returns the same value. Calling it from run to run or on different heaps returns different values.

Hi, thanks for answer.

Yes, I mean calling SAME heap twice. I was just not sure, if heap can change its address in one RUN.
So, heap has ALWAYS same address in an application live, am I correct ?

DirectX 11, C++

The handle is an abstraction, so even if the memory was moved somehow by the driver, the handle could have remain the same.

 

But by design, that call will not change result for the lifetime of your object, even if you evict it. Because dx12 relies on virtual addressing. 

This topic is closed to new replies.

Advertisement