mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 11:15:46 +00:00
This matches the term used in the WGSL spec. Change-Id: I4603332b828450c126ef806f1064ed54f372013f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78787 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
39 lines
633 B
Plaintext
39 lines
633 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
|
|
float tint_radians(float param_0) {
|
|
return param_0 * 0.017453292519943295474;
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value [[position]];
|
|
};
|
|
|
|
void radians_6b0ff2() {
|
|
float res = tint_radians(1.0f);
|
|
}
|
|
|
|
float4 vertex_main_inner() {
|
|
radians_6b0ff2();
|
|
return float4();
|
|
}
|
|
|
|
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() {
|
|
radians_6b0ff2();
|
|
return;
|
|
}
|
|
|
|
kernel void compute_main() {
|
|
radians_6b0ff2();
|
|
return;
|
|
}
|
|
|