Skip to content

Commit a9260e5

Browse files
authored
Update DXContainer.rst
1 parent 7dcad52 commit a9260e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/docs/DirectX/DXContainer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,15 @@ Root Constants
478478

479479
The root constants are inline 32-bit values that show up in the shader
480480
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.
481+
encoding the register and space the constant is assigned to, and
482+
the last 32 bits encode the number of constants being defined in the buffer.
483483

484484
.. code-block:: c
485485
486486
struct RootConstants {
487487
uint32_t Register;
488488
uint32_t Space;
489-
uint32_t Value;
489+
uint32_t NumOfConstants;
490490
};
491491
492492
Root Descriptor

0 commit comments

Comments
 (0)