You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/docs/DirectX/DXContainer.rst
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -434,15 +434,15 @@ Root Signature Header
434
434
435
435
The `RootSignatureHeader` structure contains the top-level information about a root signature:
436
436
437
-
- **Version**: Specifies the version of the root signature format. This allows for
438
-
backward compatibility as the format evolves.
439
-
- **NumParameters**: The number of root parameters contained in this root signature.
440
-
- **ParametersOffset**: Byte offset from the beginning of RST0 section to the array of root
441
-
parameters header.
442
-
- **NumStaticSamplers**: The number of static samplers defined in the root signature.
443
-
- **StaticSamplerOffset**: Byte offset to the array of static samplers.
444
-
- **Flags**: Bit flags that define global behaviors for the root signature, such as whether
445
-
to deny vertex shader access to certain resources.
437
+
#. **Version**: Specifies the version of the root signature format. This allows for backward
438
+
compatibility as the format evolves.
439
+
#. **NumParameters**: The number of root parameters contained in this root signature.
440
+
#. **ParametersOffset**: Byte offset from the beginning of RST0 section to the array of root
441
+
parameters header.
442
+
#. **NumStaticSamplers**: The number of static samplers defined in the root signature.
443
+
#. **StaticSamplerOffset**: Byte offset to the array of static samplers.
444
+
#. **Flags**: Bit flags that define global behaviors for the root signature, such as whether
445
+
to deny vertex shader access to certain resources.
446
446
447
447
This header allows readers to navigate the binary representation of the root signature by
448
448
providing counts and offsets to locate each component within the serialized data.
@@ -462,12 +462,12 @@ Root Parameter Header
462
462
Each root parameter in the signature is preceded by a `RootParameterHeader` that describes
463
463
the parameter's basic attributes:
464
464
465
-
- **ParameterType**: Enumeration indicating what type of parameter this is (e.g., descriptor
466
-
table, constants, CBV, SRV, UAV).
467
-
- **ShaderVisibility**: Specifies which shader stages can access this parameter (e.g., all stages,
468
-
vertex shader only, pixel shader only).
469
-
- **ParameterOffset**: Byte offset to the specific parameter data structure
470
-
for this entry.
465
+
#. **ParameterType**: Enumeration indicating what type of parameter this is (e.g., descriptor
466
+
table, constants, CBV, SRV, UAV).
467
+
#. **ShaderVisibility**: Specifies which shader stages can access this parameter (e.g., all stages,
468
+
vertex shader only, pixel shader only).
469
+
#. **ParameterOffset**: Byte offset to the specific parameter data structure
470
+
for this entry.
471
471
472
472
The header uses a parameter type field rather than encoding the version of the parameter through
473
473
size, allowing for a more explicit representation of the parameter's nature.
@@ -493,8 +493,8 @@ Root Constants
493
493
The ``RootConstants`` structure represents inline root constants that are directly embedded in the root
494
494
signature and passed to the shader without requiring a constant buffer resource:
495
495
496
-
- **ShaderRegister**: The shader register (b#) where these constants are bound.
497
-
- **RegisterSpace**: The register space used for the binding.
498
-
- **Num32BitValues**: The number of 32-bit values included in this constant buffer.
496
+
#. **ShaderRegister**: The shader register (b#) where these constants are bound.
497
+
#. **RegisterSpace**: The register space used for the binding.
498
+
#. **Num32BitValues**: The number of 32-bit values included in this constant buffer.
499
499
500
500
Root constants provide a fast way to pass small amounts of data directly to the shader without the overhead of creating and binding a constant buffer resource.
0 commit comments