summaryrefslogtreecommitdiffstats
path: root/tests/bugs/texture2d-ms.hlsl
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-27 15:18:07 -0800
committerGitHub <noreply@github.com>2023-02-27 15:18:07 -0800
commita3ba22b51c371d5a20d61aa4e35233ba4f4f68db (patch)
tree704f8e9575fdd888d01137054b4c3887aaac9360 /tests/bugs/texture2d-ms.hlsl
parentb1b76f06ca5bdfc4b688d99095dfb7d561a04d80 (diff)
Detect and deduplicate read-only resource access. (#2680)
* Detect and deduplicate read-only resource access. * Fix tests. * Fix tests. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/bugs/texture2d-ms.hlsl')
-rw-r--r--tests/bugs/texture2d-ms.hlsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bugs/texture2d-ms.hlsl b/tests/bugs/texture2d-ms.hlsl
index 1d8293937..3fb84f72d 100644
--- a/tests/bugs/texture2d-ms.hlsl
+++ b/tests/bugs/texture2d-ms.hlsl
@@ -3,8 +3,10 @@
[[vk::binding(0, 0)]]
Texture2DMS tex : register(t1);
+RWStructuredBuffer<float4> outBuffer;
+
[numthreads(4, 4, 1)]
void main(uint3 groupId : SV_GroupID)
{
- tex.Load(int2(groupId.xy), 0);
+ outBuffer[0] = tex.Load(int2(groupId.xy), 0);
}