mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 22:26:06 +00:00
Abstract int and abstract float were around the wrong way. Credit goes to amaiorano@ for finding this! Change-Id: Ifaeeca86b0d15ead295b714e0c178fa6d0bfb68b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108641 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
34 lines
525 B
Plaintext
34 lines
525 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
void abs_c3321c() {
|
|
int3 res = int3(1);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
abs_c3321c();
|
|
return float4(0.0f);
|
|
}
|
|
|
|
vertex tint_symbol vertex_main() {
|
|
float4 const inner_result = vertex_main_inner();
|
|
tint_symbol wrapper_result = {};
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
fragment void fragment_main() {
|
|
abs_c3321c();
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main() {
|
|
abs_c3321c();
|
|
return;
|
|
}
|
|
|