dawn-cmake/test/ptr_ref/load/local/ptr_uniform.wgsl.expected.hlsl
Ben Clayton d47eb3a965 writer/hlsl: Generate padding for UBO padded structs
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>
2021-06-16 09:50:11 +00:00

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;
}