mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-07 13:45:51 +00:00
Combined with the new PadArrayElements transform, arrays with strides are now correctly emitted. Fixed: tint:182 Fixed: tint:895 Change-Id: I26a1be94dee6e4c9d9747c8317a932fc1fb3c810 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54640 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
12 lines
159 B
HLSL
12 lines
159 B
HLSL
struct S {
|
|
/* 0x0000 */ int a;
|
|
};
|
|
|
|
ConstantBuffer<S> v : register(b0, space0);
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
const int use = (v.a + 1);
|
|
return;
|
|
}
|