mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
Change-Id: I6b4aee4bb08b0f4c02c015f469edc24be1623fc3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73340 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
22 lines
358 B
HLSL
22 lines
358 B
HLSL
cbuffer cbuffer_ubo : register(b0, space0) {
|
|
uint4 ubo[1];
|
|
};
|
|
|
|
struct S {
|
|
int data[64];
|
|
};
|
|
|
|
RWByteAddressBuffer result : register(u1, space0);
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void f() {
|
|
S s = (S)0;
|
|
{
|
|
int tint_symbol_2[64] = s.data;
|
|
tint_symbol_2[asint(ubo[0].x)] = 1;
|
|
s.data = tint_symbol_2;
|
|
}
|
|
result.Store(0u, asuint(s.data[3]));
|
|
return;
|
|
}
|