mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +00:00
Currently in the MSL backend we cast int values to uint in order to get the correct WGSL behaviour for over/under flow. This fails in the case of host shareable buffers as they use `packed` types which need to get cast to the non-packed version first. Bug: tint:1677 Change-Id: I57b70abaa8ca614472a26d63f19c1aef2bd64668 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/103986 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
17 lines
325 B
GLSL
17 lines
325 B
GLSL
#version 310 es
|
|
|
|
layout(binding = 0, std430) buffer Input_ssbo {
|
|
ivec3 position;
|
|
uint pad;
|
|
} tint_symbol;
|
|
|
|
void tint_symbol_1(uvec3 id) {
|
|
ivec3 pos = (tint_symbol.position - ivec3(0));
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
tint_symbol_1(gl_GlobalInvocationID);
|
|
return;
|
|
}
|