We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b50c4 commit 6c9da55Copy full SHA for 6c9da55
03_DeviceSelectionAndSharedSources/app_resources/pplnLayoutMergeTest/shader_3.comp.hlsl
@@ -2,13 +2,14 @@
2
#include "common.hlsl"
3
4
[[vk::binding(0,0)]] RWStructuredBuffer<SomeType> asdf;
5
-[[vk::binding(1,0)]] RWByteAddressBuffer output[3];
+[[vk::binding(1,0)]] RWStructuredBuffer<SomeType> fdsa;
6
+[[vk::binding(2,0)]] RWByteAddressBuffer output;
7
8
[numthreads(WorkgroupSize, 1, 1)]
9
void main(uint32_t3 ID : SV_DispatchThreadID)
10
{
11
const uint32_t index = ID.x;
12
const uint32_t byteOffset = sizeof(uint32_t)*index;
13
- output[0].Store<uint32_t>(byteOffset, asdf[index].a);
14
+ output.Store<uint32_t>(byteOffset, asdf[index].a + fdsa[index].b[2]);
15
}
0 commit comments