@@ -406,6 +406,27 @@ The RTS0 part comprises three data structures: ``RootSignatureHeader``,
406
406
in the following sections. All ``RootParameters `` will be serialized following
407
407
the order they were defined in the metadata representation.
408
408
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
+
409
430
Root Signature Header
410
431
~~~~~~~~~~~~~~~~~~~~~
411
432
@@ -430,9 +451,11 @@ Root Parameters
430
451
Root parameters define how resources are bound to the shader pipeline, each
431
452
type having different size and fields.
432
453
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.
436
459
437
460
.. code-block :: c
438
461
@@ -442,6 +465,10 @@ the data is visible, and an offset calculated from the start of RTS0 section.
442
465
uint32_t ParameterOffset;
443
466
};
444
467
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
+
445
472
The following sections will describe each of the root parameters types and their
446
473
encodings.
447
474
0 commit comments