summaryrefslogtreecommitdiffstats
path: root/docs/language-reference/08-attributes.md
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-04-10 13:38:50 -0700
committerGitHub <noreply@github.com>2024-04-10 13:38:50 -0700
commitee9d398ebfc7c67205a8d5c91834ae4882d0dc9b (patch)
tree2e2bde10088a902878caf986d0f97b372c4e9e2b /docs/language-reference/08-attributes.md
parenta6d59d0e102e2d21d411a7ca1f8acaf3bf1f867c (diff)
Delete out of date docs (#3926)
Diffstat (limited to 'docs/language-reference/08-attributes.md')
-rw-r--r--docs/language-reference/08-attributes.md30
1 files changed, 0 insertions, 30 deletions
diff --git a/docs/language-reference/08-attributes.md b/docs/language-reference/08-attributes.md
deleted file mode 100644
index 76a739315..000000000
--- a/docs/language-reference/08-attributes.md
+++ /dev/null
@@ -1,30 +0,0 @@
-Attributes
-==========
-
-> Note: This section is not yet complete.
-
-## [[vk::spirv_instruction]]
-
-** SPIR-V only **
-
-This attribute is only available for Vulkan SPIR-V output via GLSLANG. In the future it could be supported via the `direct-spirv` option. The attribute will be ignored for any other target. This attribute requires the `GL_EXT_spirv_intrinsics` GLSL extension.
-
-The attibute allows access to SPIR-V intrinsics, by supplying a function declaration with the appropriate signature for the SPIR-V op and no body. The intrinsic takes a single parameter which is the integer value for the SPIR-V op.
-
-In the example below the add function, uses the mechanism to directly use the SPIR-V integer add 'op' which is 128 in this case.
-
-```HLSL
-// 128 is OpIAdd in SPIR-V
-[[vk::spirv_instruction(128)]]
-uint add(uint a, uint b);
-
-RWStructuredBuffer<uint> resultBuffer;
-
-[numthreads(4,1,1)]
-void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
-{
- uint threadId = dispatchThreadID.x;
- resultBuffer[threadId] = add(threadId, threadId);
-}
-```
-