Skip to content

Commit 351e6bb

Browse files
authored
Addressing some comments
1 parent 787c920 commit 351e6bb

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

llvm/docs/DirectX/DXContainer.rst

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,27 @@ The RTS0 part comprises three data structures: ``RootSignatureHeader``,
406406
in the following sections. All ``RootParameters`` will be serialized following
407407
the order they were defined in the metadata representation.
408408

409+
The table bellow sumarizes the data being serialized as well as it's size. The
410+
details of it part will be discussed in further details on the next sections
411+
of this document.
412+
413+
======================== =========================================== =============================
414+
Part Name Size In Bytes Maximum number of Instances
415+
======================== =========================================== =============================
416+
Root Signature Header 24 1
417+
Root Parameter Headers 12 Many
418+
Root Parameter ================================ === Many
419+
Root Constants 12
420+
Root Descriptor Version 1.0 08
421+
Root Descriptor Version 1.1 12
422+
Descriptors Tables Version 1.0 20
423+
Descriptors Tables Version 1.1 24
424+
================================ ===
425+
426+
Static Samplers 52 Many
427+
======================== =========================================== =============================
428+
429+
409430
Root Signature Header
410431
~~~~~~~~~~~~~~~~~~~~~
411432

@@ -430,9 +451,11 @@ Root Parameters
430451
Root parameters define how resources are bound to the shader pipeline, each
431452
type having different size and fields.
432453

433-
Each slot of root parameters is preceded by 12 bytes, three 32 bit values,
434-
representing the parameter type, a flag encoding the pipeline stages where
435-
the data is visible, and an offset calculated from the start of RTS0 section.
454+
The slot of root parameters is preceded by a variable size section containing
455+
the header information for such parameters. Such structure is 12 bytes long,
456+
composed of three 32 bit values, representing the parameter type, a flag
457+
encoding the pipeline stages where the data is visible, and an offset
458+
calculated from the start of RTS0 section.
436459

437460
.. code-block:: c
438461
@@ -442,6 +465,10 @@ the data is visible, and an offset calculated from the start of RTS0 section.
442465
uint32_t ParameterOffset;
443466
};
444467
468+
After the header information has been serialized, the actual data for each of the
469+
root parameters is layout in a single continous blob. The parameters can be fetch
470+
from such using the offset information, present in the header.
471+
445472
The following sections will describe each of the root parameters types and their
446473
encodings.
447474

0 commit comments

Comments
 (0)