2
$\begingroup$

So usually texture samplers are set directly in the D3D12_ROOT_SIGNATURE_DESC structure in DX12, at least that's how I've been setting them. I was wondering if it's possible to put them in an upload_heap and map a CPU pointer to it or something similar to make it possible to modify the samplers dynamicaly?

$\endgroup$

1 Answer 1

1
$\begingroup$

Yes it is possible by putting Samplers in descriptor tables to dynamically assign and index into them. Source: https://youtu.be/Wbnw87tYqVg?t=754

Here's an example that uses the HLSL root signature syntax to do this here: https://youtu.be/Wbnw87tYqVg?t=5277

$\endgroup$
1
  • $\begingroup$ Can you put the examples in the answer itself, rather than as video links? $\endgroup$ Commented Mar 21, 2019 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.