summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-06-06 19:20:57 -0400
committerGitHub <noreply@github.com>2023-06-06 19:20:57 -0400
commit52f27e4c35a42f5b6796a8f1ef5c51937f175d82 (patch)
treef98de2dab9fcaa18eb4ff5df02819be6ac93520a /docs
parent07c2b213692154ea0d7ddb2cc18bf5ad5a1dc11a (diff)
Fix some issues with stdlib intrinsics docs (#2919)
* #include an absolute path didn't work - because paths were taken to always be relative. * Small fixes and improvements around reflection tool. * Make PrettyWriter printing a class. * WIP documentation around stdlib intrinsics. * Preliminary docs around stdlib mechanisms. * Small fixes. * Fix some issues with stdlib intrinsics not generating.
Diffstat (limited to 'docs')
-rw-r--r--docs/design/stdlib-intrinsics.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/design/stdlib-intrinsics.md b/docs/design/stdlib-intrinsics.md
index c6ed7e507..4ae23e2eb 100644
--- a/docs/design/stdlib-intrinsics.md
+++ b/docs/design/stdlib-intrinsics.md
@@ -25,7 +25,7 @@ The `.meta.slang` files look largely like Slang source files, but their contents
As an example, to produce an an array with values 0 to 9 we could write...
-```slang
+```text
// Slang code
int a[] = {
@@ -33,7 +33,7 @@ int a[] = {
${{{{
// C++ code
for (int i = 0; i < 10; ++i) {
-}}}}}
+}}}}
// Slang code that will be emitted for each iteration of the loop.
// $(i) will be replaced by the value of i for the loop
@@ -217,7 +217,7 @@ Defines an attribute `anyValueSize` that can be applied to `InterfaceDecl` and d
Allows returning or passing a value "by reference".
-# GLSL/Vulkan specific intrinsics
+# GLSL/Vulkan specific
## __glsl_version(version)
@@ -262,7 +262,7 @@ __specialized_for_target(glsl)
void debugBreak();
```
-# CUDA specific intrinsics
+# CUDA specific
## __cuda_sm_version
@@ -270,6 +270,6 @@ When declaration is used with this intrinsic for a CUDA target, the highest shad
# NVAPI
-## `[__requiresNVAPI]`
+## [__requiresNVAPI]
If declaration is reached during a compilation for an applicable target (D3D11/12), will indicate that [NVAPI support](../nvapi-support.md) is required for declaration to work.