diff options
| author | Yong He <yonghe@outlook.com> | 2024-10-24 21:31:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-24 21:31:34 -0700 |
| commit | a2a201e327559e6a24b081fee73096b2a3b3e33f (patch) | |
| tree | b0b5ca96db7e95d364779cc4ca84936a02962534 /tests | |
| parent | 46b8ab8353966f2590ed2667028b220b57f963ae (diff) | |
Use DebugDeclare instead of DebugValue. (#5404)
* Use DebugDeclare instead of DebugValue.
* Avoid generating illegal SPIRV.
* Improve DebugLine output.
* Fix.
* Fix.
* Misc improvements.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/spirv/debug-type-pointer-2.slang | 2 | ||||
| -rw-r--r-- | tests/spirv/debug-type-pointer.slang | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/spirv/debug-type-pointer-2.slang b/tests/spirv/debug-type-pointer-2.slang index 4112d4905..49ee9a48b 100644 --- a/tests/spirv/debug-type-pointer-2.slang +++ b/tests/spirv/debug-type-pointer-2.slang @@ -18,7 +18,7 @@ uniform Problem probs; RWStructuredBuffer<float4> outputBuffer; [shader("compute")] -float4 main() +void main() { outputBuffer[0] = float(probs.getVal()); }
\ No newline at end of file diff --git a/tests/spirv/debug-type-pointer.slang b/tests/spirv/debug-type-pointer.slang index f6add1735..62bd4fda1 100644 --- a/tests/spirv/debug-type-pointer.slang +++ b/tests/spirv/debug-type-pointer.slang @@ -32,7 +32,6 @@ struct LinkedNode float test(LinkedNode *pNode) { - //SPV: DebugValue %pNodeNext LinkedNode *pNodeNext = pNode->pNext; return *(pNode->pValue) + pNodeNext->value; } |
