We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcad52 commit a9260e5Copy full SHA for a9260e5
llvm/docs/DirectX/DXContainer.rst
@@ -478,15 +478,15 @@ Root Constants
478
479
The root constants are inline 32-bit values that show up in the shader
480
as a constant buffer. It is a 12 bytes long structure, two 32 bit values
481
-encoding the register and space the constant is assigned to, and one 32
482
-bit value encoding the constant value.
+encoding the register and space the constant is assigned to, and
+the last 32 bits encode the number of constants being defined in the buffer.
483
484
.. code-block:: c
485
486
struct RootConstants {
487
uint32_t Register;
488
uint32_t Space;
489
- uint32_t Value;
+ uint32_t NumOfConstants;
490
};
491
492
Root Descriptor
0 commit comments