summaryrefslogtreecommitdiffstats
path: root/docs/user-guide/a2-01-spirv-target-specific.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user-guide/a2-01-spirv-target-specific.md')
-rw-r--r--docs/user-guide/a2-01-spirv-target-specific.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/user-guide/a2-01-spirv-target-specific.md b/docs/user-guide/a2-01-spirv-target-specific.md
index 05bf023df..0f64a5e1b 100644
--- a/docs/user-guide/a2-01-spirv-target-specific.md
+++ b/docs/user-guide/a2-01-spirv-target-specific.md
@@ -67,6 +67,8 @@ The system-value semantics are translated to the following SPIR-V code.
| `SV_DomainLocation` | `BuiltIn TessCoord` |
| `SV_DrawIndex`<sup>*</sup> | `Builtin DrawIndex` |
| `SV_DeviceIndex` | `Builtin DeviceIndex` |
+| `SV_FragInvocationCount` | `Builtin FragInvocationCountExt` |
+| `SV_FragSize` | `Builtin FragSizeExt` |
| `SV_GSInstanceID` | `BuiltIn InvocationId` |
| `SV_GroupID` | `BuiltIn WorkgroupId` |
| `SV_GroupIndex` | `BuiltIn LocalInvocationIndex` |
@@ -95,7 +97,7 @@ The system-value semantics are translated to the following SPIR-V code.
| `SV_VulkanInstanceID` | `BuiltIn InstanceIndex` |
| `SV_VulkanVertexID` | `BuiltIn VertexIndex` |
-*Note* that `SV_DrawIndex`, `SV_PointSize` and `SV_PointCoord` are Slang-specific semantics that are not defined in HLSL.
+*Note* that `SV_DrawIndex`, `SV_FragInvocationCount`, `SV_FragSize`, `SV_PointSize` and `SV_PointCoord` are Slang-specific semantics that are not defined in HLSL.
Also *Note* that `SV_InstanceID`/`SV_VertexID` counts all instances/vertices in a draw call, unlike how `InstanceIndex`/`VertexIndex` is relative to `BaseInstance`/`BaseVertex`.
See [Using SV_InstanceID/SV_VertexID with SPIR-V target](#using-sv_instanceid-and-sv_vertexid-with-spir-v-target)