summaryrefslogtreecommitdiffstats
path: root/docs/target-compatibility.md
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-04-23 14:40:01 -0400
committerGitHub <noreply@github.com>2020-04-23 14:40:01 -0400
commit6f5c250b19b03a8eb4b6a9254613ce8539769a23 (patch)
treefad6585589f143838a831f94ff07ec9a556ab7d2 /docs/target-compatibility.md
parent806ab08f64c76e961ecdf40ecaf9499c5a88ac5f (diff)
Small improvements around atomics (#1333)
* Use the original value in the test. Run test on VK. * Added RWBuffer and Buffer types to C++ prelude. * Add vk to atomics.slang tests * Update target-compatibility around atomics. When tests disabled in atomics-buffer.slang explained why. * tabs -> spaces. * Small docs improvement.
Diffstat (limited to 'docs/target-compatibility.md')
-rw-r--r--docs/target-compatibility.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/target-compatibility.md b/docs/target-compatibility.md
index ff63a65a2..0b29a6152 100644
--- a/docs/target-compatibility.md
+++ b/docs/target-compatibility.md
@@ -37,7 +37,8 @@ Items with ^ means there is some discussion about support later in the document
| Full bool | Yes | Yes | Yes | No | Yes ^
| Mesh Shader | No | No + | No + | No | No
| `[unroll]` | Yes | Yes | Yes ^ | Yes | Limited +
-
+| Atomics | Yes | Yes | Yes | Yes | No +
+| Atomics on RWBuffer | Yes | Yes | Yes | No | No +
## Half Type
@@ -161,3 +162,10 @@ On GLSL and VK targets loop unrolling uses the [GL_EXT_control_flow_attributes](
Slang does have a cross target mechanism to [unroll loops](language-reference/06-statements.md), in the section `Compile-Time For Statement`.
+## Atomics on RWBuffer
+
+For VK the GLSL output from Slang seems plausible, but VK binding fails in tests harness.
+
+On CUDA RWBuffer becomes CUsurfObject, which is a 'texture' type and does not support atomics.
+
+On the CPU atomics are not supported, but will be in the future.