mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 11:15:46 +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>
12 lines
196 B
WebGPU Shading Language
12 lines
196 B
WebGPU Shading Language
struct UniformBuffer {
|
|
d: vec3<i32>,
|
|
}
|
|
|
|
@group(0) @binding(0)
|
|
var<uniform> u_input: UniformBuffer;
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main() {
|
|
let temp: vec3<i32> = (u_input.d << vec3<u32>());
|
|
}
|