mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 12:15:43 +00:00
Similar to the handling of packed values in the arithmetic operators the shift operators need to cast to the unpacked type before doing the as_type casts. Bug: tint:1542 Change-Id: I4289c45ab0a067ce122f61675fe5e251a83b6f8b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105720 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
10 lines
178 B
HLSL
10 lines
178 B
HLSL
cbuffer cbuffer_u_input : register(b0, space0) {
|
|
uint4 u_input[1];
|
|
};
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main() {
|
|
const int3 temp = (asint(u_input[0].xyz) << (0u).xxx);
|
|
return;
|
|
}
|