diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/user-guide/a2-01-spirv-target-specific.md | 4 | ||||
| -rw-r--r-- | docs/user-guide/a2-02-metal-target-specific.md | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/user-guide/a2-01-spirv-target-specific.md b/docs/user-guide/a2-01-spirv-target-specific.md index 4faf3bde5..d57cc8ce5 100644 --- a/docs/user-guide/a2-01-spirv-target-specific.md +++ b/docs/user-guide/a2-01-spirv-target-specific.md @@ -60,8 +60,8 @@ The system-value semantics are translated to the following SPIR-V code. | `SV_RenderTargetArrayIndex` | `BuiltIn Layer` | | `SV_SampleIndex` | `BuiltIn SampleId` | | `SV_ShadingRate` | `BuiltIn PrimitiveShadingRateKHR` | -| `SV_StartVertexLocation` | `*Not supported* | -| `SV_StartInstanceLocation` | `*Not supported* | +| `SV_StartVertexLocation` | `BuiltIn BaseVertex` | +| `SV_StartInstanceLocation` | `BuiltIn BaseInstance` | | `SV_StencilRef` | `BuiltIn FragStencilRefEXT` | | `SV_Target<N>` | `Location` | | `SV_TessFactor` | `BuiltIn TessLevelOuter` | diff --git a/docs/user-guide/a2-02-metal-target-specific.md b/docs/user-guide/a2-02-metal-target-specific.md index f63b985b5..48c6b4587 100644 --- a/docs/user-guide/a2-02-metal-target-specific.md +++ b/docs/user-guide/a2-02-metal-target-specific.md @@ -40,6 +40,8 @@ The system-value semantics are translated to the following Metal attributes: | `SV_Target<N>` | `[[color(N)]]` | | `SV_VertexID` | `[[vertex_id]]` | | `SV_ViewportArrayIndex` | `[[viewport_array_index]]` | +| `SV_StartVertexLocation` | `[[base_vertex]]` | +| `SV_StartInstanceLocation` | `[[base_instance]]` | Custom semantics are mapped to user attributes: @@ -293,4 +295,4 @@ Translates to: ```metal constant int fc_a_0 [[function_constant(7)]]; constant int a_0 = is_function_constant_defined(fc_a_0) ? fc_a_0 : 2; -```
\ No newline at end of file +``` |
