1
$\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$
0
$\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$
  • $\begingroup$ Can you put the examples in the answer itself, rather than as video links? $\endgroup$ – Nicol Bolas Mar 21 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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