Skip to content

Commit 6c9da55

Browse files
committed
Correction in 3rd test shader
1 parent f1b50c4 commit 6c9da55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

03_DeviceSelectionAndSharedSources/app_resources/pplnLayoutMergeTest/shader_3.comp.hlsl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
#include "common.hlsl"
33

44
[[vk::binding(0,0)]] RWStructuredBuffer<SomeType> asdf;
5-
[[vk::binding(1,0)]] RWByteAddressBuffer output[3];
5+
[[vk::binding(1,0)]] RWStructuredBuffer<SomeType> fdsa;
6+
[[vk::binding(2,0)]] RWByteAddressBuffer output;
67

78
[numthreads(WorkgroupSize, 1, 1)]
89
void main(uint32_t3 ID : SV_DispatchThreadID)
910
{
1011
const uint32_t index = ID.x;
1112
const uint32_t byteOffset = sizeof(uint32_t)*index;
1213

13-
output[0].Store<uint32_t>(byteOffset, asdf[index].a);
14+
output.Store<uint32_t>(byteOffset, asdf[index].a + fdsa[index].b[2]);
1415
}

0 commit comments

Comments
 (0)