Skip to content

Commit

Permalink
HLSL: Add missing reference output file.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKristian-Work committed Oct 11, 2023
1 parent 7940125 commit 73726f3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions reference/opt/shaders-hlsl/comp/ssbo-store-array.comp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
struct Data
{
uint arr[3];
};

static uint _34;

RWByteAddressBuffer _13 : register(u0);

void comp_main()
{
uint _33[3] = { _34, _34, _34 };
[unroll]
for (int _0ident = 0; _0ident < 3; _0ident++)
{
_13.Store(_0ident * 4 + 0, _33[_0ident]);
}
}

[numthreads(1, 1, 1)]
void main()
{
comp_main();
}

0 comments on commit 73726f3

Please sign in to comment.