As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [constant-buffer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
262 views

Performance impact/implications of constant buffers / uniform buffers

Constant buffers stay constant throughout entire dispatches / draw calls, and thus their data can presumably be shared as efficiently as possible between different threads using those buffers. But I ...
cg_guy420's user avatar
  • 115
8 votes
1 answer
862 views

DirectX12 CbvHeap

With directX12 they introduced heap descriptors. A way for us to describe the table for resources we wanted to send to the shaders. I'm admittedly very new at computer graphics and only tinkered a bit ...
Andrew Wilson's user avatar
4 votes
1 answer
5k views

DirectX 12 Constant Buffer Binding

I can't really seem to figure out how to bind two constant buffers to my shaders. I have them described like so. One in slot b0 and the other in slot b1. ...
Andrew Wilson's user avatar
11 votes
1 answer
313 views

Do the alignement and declaration order of uniforms matter?

In the section 6.4 Constant Buffers of the book Practical Rendering & Computation with Direct3D 11 (pages 325, 326) it is mentioned: By default, the HLSL compiler will attempt to align ...
Julien Guertault's user avatar