From 09d7e134de70a5de5f6d2bf4e099fcdbdefc9500 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Wed, 14 May 2025 08:06:59 -0700 Subject: Add explanation for SV_InstanceID usage difference from SPIR-V (#7072) Closes https://github.com/shader-slang/slang/issues/6805 This change adds a note to the SPIR-V target specific doc that SV_InstanceID does not map directly to SPIR-V's BuiltIn InstanceIndex, and adds a more detailed explanation of the difference, its motivation, and how to derive the actual value equivalent to BuiltIn InstanceIndex with an example. --------- Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- docs/user-guide/toc.html | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/user-guide/toc.html') diff --git a/docs/user-guide/toc.html b/docs/user-guide/toc.html index 13f6e9f03..a60780e65 100644 --- a/docs/user-guide/toc.html +++ b/docs/user-guide/toc.html @@ -194,6 +194,7 @@
  • Experimental support for the older versions of SPIR-V
  • Combined texture sampler
  • System-Value semantics
  • +
  • Using SV_InstanceID with SPIR-V target
  • Behavior of `discard` after SPIR-V 1.6
  • Supported HLSL features when targeting SPIR-V
  • Unsupported GLSL keywords when targeting SPIR-V
  • -- cgit v1.2.3