Add const-eval for `asin` and `asinh`.

This CL adds const-eval for the `asin` and `asinh` operators.

Bug: tint:1581
Change-Id: I18b2eeb4fb85b8979012b48551eefa773d1b980e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106980
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2022-10-27 15:10:20 +00:00 committed by Dawn LUCI CQ
parent a92f4259d5
commit 59d9c89ff7
180 changed files with 9532 additions and 5064 deletions

View File

@ -415,10 +415,10 @@ fn all<N: num>(vec<N, bool>) -> bool
fn any(bool) -> bool
fn any<N: num>(vec<N, bool>) -> bool
fn arrayLength<T, A: access>(ptr<storage, array<T>, A>) -> u32
fn asin<T: f32_f16>(T) -> T
fn asin<N: num, T: f32_f16>(vec<N, T>) -> vec<N, T>
fn asinh<T: f32_f16>(T) -> T
fn asinh<N: num, T: f32_f16>(vec<N, T>) -> vec<N, T>
@const fn asin<T: fa_f32_f16>(T) -> T
@const fn asin<N: num, T: fa_f32_f16>(vec<N, T>) -> vec<N, T>
@const fn asinh<T: fa_f32_f16>(T) -> T
@const fn asinh<N: num, T: fa_f32_f16>(vec<N, T>) -> vec<N, T>
@const fn atan<T: fa_f32_f16>(T) -> T
@const fn atan<N: num, T: fa_f32_f16>(vec<N, T>) -> vec<N, T>
@const fn atan2<T: fa_f32_f16>(T, T) -> T

View File

@ -1526,6 +1526,40 @@ ConstEval::Result ConstEval::OpShiftLeft(const sem::Type* ty,
return r;
}
ConstEval::Result ConstEval::asin(const sem::Type* ty,
utils::VectorRef<const sem::Constant*> args,
const Source& source) {
auto transform = [&](const sem::Constant* c0) {
auto create = [&](auto i) -> ImplResult {
using NumberT = decltype(i);
if (i.value < NumberT(-1.0) || i.value > NumberT(1.0)) {
AddError("asin must be called with a value in the range [-1, 1]", source);
return utils::Failure;
}
return CreateElement(builder, c0->Type(), decltype(i)(std::asin(i.value)));
};
return Dispatch_fa_f32_f16(create, c0);
};
return TransformElements(builder, ty, transform, args[0]);
}
ConstEval::Result ConstEval::asinh(const sem::Type* ty,
utils::VectorRef<const sem::Constant*> args,
const Source&) {
auto transform = [&](const sem::Constant* c0) {
auto create = [&](auto i) {
return CreateElement(builder, c0->Type(), decltype(i)(std::asinh(i.value)));
};
return Dispatch_fa_f32_f16(create, c0);
};
auto r = TransformElements(builder, ty, transform, args[0]);
if (builder.Diagnostics().contains_errors()) {
return utils::Failure;
}
return r;
}
ConstEval::Result ConstEval::atan(const sem::Type* ty,
utils::VectorRef<const sem::Constant*> args,
const Source&) {

View File

@ -377,6 +377,24 @@ class ConstEval {
// Builtins
////////////////////////////////////////////////////////////////////////////
/// asin builtin
/// @param ty the expression type
/// @param args the input arguments
/// @param source the source location of the conversion
/// @return the result value, or null if the value cannot be calculated
Result asin(const sem::Type* ty,
utils::VectorRef<const sem::Constant*> args,
const Source& source);
/// asinh builtin
/// @param ty the expression type
/// @param args the input arguments
/// @param source the source location of the conversion
/// @return the result value, or null if the value cannot be calculated
Result asinh(const sem::Type* ty,
utils::VectorRef<const sem::Constant*> args,
const Source& source);
/// atan builtin
/// @param ty the expression type
/// @param args the input arguments

View File

@ -256,6 +256,7 @@ INSTANTIATE_TEST_SUITE_P( //
testing::ValuesIn(Concat(AtanCases<AFloat, true>(), //
AtanCases<f32, false>(),
AtanCases<f16, false>()))));
template <typename T, bool finite_only>
std::vector<Case> AtanhCases() {
std::vector<Case> cases = {
@ -296,7 +297,7 @@ TEST_F(ResolverConstEvalBuiltinTest, Atanh_OutsideRange_Positive) {
}
TEST_F(ResolverConstEvalBuiltinTest, Atanh_OutsideRange_Negative) {
auto* expr = Call(Source{{12, 24}}, "atanh", Expr(-1.0_a));
auto* expr = Call(Source{{12, 24}}, "atanh", Negation(1.0_a));
GlobalConst("C", expr);
EXPECT_FALSE(r()->Resolve());
@ -312,13 +313,118 @@ TEST_F(ResolverConstEvalBuiltinTest, Atanh_OutsideRange_Positive_INF) {
}
TEST_F(ResolverConstEvalBuiltinTest, Atanh_OutsideRange_Negative_INF) {
auto* expr = Call(Source{{12, 24}}, "atanh", Expr(-f32::Inf()));
auto* expr = Call(Source{{12, 24}}, "atanh", Negation(f32::Inf()));
GlobalConst("C", expr);
EXPECT_FALSE(r()->Resolve());
EXPECT_EQ(r()->error(), "12:24 error: atanh must be called with a value in the range (-1, 1)");
}
template <typename T, bool finite_only>
std::vector<Case> AsinCases() {
std::vector<Case> cases = {
// If i is +/-0, +/-0 is returned
C({T(0.0)}, T(0.0)),
C({-T(0.0)}, -T(0.0)),
C({T(1.0)}, kPiOver2<T>).FloatComp(),
C({-T(1.0)}, -kPiOver2<T>).FloatComp(),
// Vector tests
C({Vec(T(0.0), T(1.0), -T(1.0))}, Vec(T(0.0), kPiOver2<T>, -kPiOver2<T>)).FloatComp(),
};
ConcatIntoIf<!finite_only>( //
cases, std::vector<Case>{
// If i is NaN, NaN is returned
C({T::NaN()}, T::NaN()),
// Vector tests
C({Vec(T::NaN(), T::NaN())}, Vec(T::NaN(), T::NaN())).FloatComp(),
});
return cases;
}
INSTANTIATE_TEST_SUITE_P( //
Asin,
ResolverConstEvalBuiltinTest,
testing::Combine(testing::Values(sem::BuiltinType::kAsin),
testing::ValuesIn(Concat(AsinCases<AFloat, true>(), //
AsinCases<f32, false>(),
AsinCases<f16, false>()))));
TEST_F(ResolverConstEvalBuiltinTest, Asin_OutsideRange_Positive) {
auto* expr = Call(Source{{12, 24}}, "asin", Expr(1.1_a));
GlobalConst("C", expr);
EXPECT_FALSE(r()->Resolve());
EXPECT_EQ(r()->error(), "12:24 error: asin must be called with a value in the range [-1, 1]");
}
TEST_F(ResolverConstEvalBuiltinTest, Asin_OutsideRange_Negative) {
auto* expr = Call(Source{{12, 24}}, "asin", Negation(1.1_a));
GlobalConst("C", expr);
EXPECT_FALSE(r()->Resolve());
EXPECT_EQ(r()->error(), "12:24 error: asin must be called with a value in the range [-1, 1]");
}
TEST_F(ResolverConstEvalBuiltinTest, Asin_OutsideRange_Positive_INF) {
auto* expr = Call(Source{{12, 24}}, "asin", Expr(f32::Inf()));
GlobalConst("C", expr);
EXPECT_FALSE(r()->Resolve());
EXPECT_EQ(r()->error(), "12:24 error: asin must be called with a value in the range [-1, 1]");
}
TEST_F(ResolverConstEvalBuiltinTest, Asin_OutsideRange_Negative_INF) {
auto* expr = Call(Source{{12, 24}}, "asin", Negation(f32::Inf()));
GlobalConst("C", expr);
EXPECT_FALSE(r()->Resolve());
EXPECT_EQ(r()->error(), "12:24 error: asin must be called with a value in the range [-1, 1]");
}
template <typename T, bool finite_only>
std::vector<Case> AsinhCases() {
std::vector<Case> cases = {
// If i is +/-0, +/-0 is returned
C({T(0.0)}, T(0.0)),
C({-T(0.0)}, -T(0.0)),
C({T(0.9)}, T(0.80886693565278)).FloatComp(),
C({-T(2.0)}, -T(1.4436354751788)).FloatComp(),
// Vector tests
C({Vec(T(0.0), T(0.9), -T(2.0))}, //
Vec(T(0.0), T(0.8088669356278), -T(1.4436354751788)))
.FloatComp(),
};
ConcatIntoIf<!finite_only>( //
cases, std::vector<Case>{
// If i is +/- INF, +/-INF is returned
C({T::Inf()}, T::Inf()),
C({-T::Inf()}, -T::Inf()),
// If i is NaN, NaN is returned
C({T::NaN()}, T::NaN()),
// Vector tests
C({Vec(T::Inf(), T::NaN(), -T::Inf())}, //
Vec(T::Inf(), T::NaN(), -T::Inf())),
});
return cases;
}
INSTANTIATE_TEST_SUITE_P( //
Asinh,
ResolverConstEvalBuiltinTest,
testing::Combine(testing::Values(sem::BuiltinType::kAsinh),
testing::ValuesIn(Concat(AsinhCases<AFloat, true>(), //
AsinhCases<f32, false>(),
AsinhCases<f16, false>()))));
template <typename T>
std::vector<Case> ClampCases() {
return {

File diff suppressed because it is too large Load Diff

View File

@ -167,7 +167,7 @@ DataMap polyfillSinh() {
TEST_F(BuiltinPolyfillTest, ShouldRunAsinh) {
auto* src = R"(
fn f() {
asinh(1.0);
asinh(1.0f);
}
)";
@ -178,7 +178,7 @@ fn f() {
TEST_F(BuiltinPolyfillTest, Asinh_f32) {
auto* src = R"(
fn f() {
let r : f32 = asinh(1234);
let r : f32 = asinh(1234f);
}
)";
@ -188,7 +188,7 @@ fn tint_sinh(x : f32) -> f32 {
}
fn f() {
let r : f32 = tint_sinh(1234);
let r : f32 = tint_sinh(1234.0f);
}
)";
@ -200,7 +200,7 @@ fn f() {
TEST_F(BuiltinPolyfillTest, Asinh_vec3_f32) {
auto* src = R"(
fn f() {
let r : vec3<f32> = asinh(vec3<f32>(1234));
let r : vec3<f32> = asinh(vec3<f32>(1234f));
}
)";
@ -210,7 +210,7 @@ fn tint_sinh(x : vec3<f32>) -> vec3<f32> {
}
fn f() {
let r : vec3<f32> = tint_sinh(vec3<f32>(1234));
let r : vec3<f32> = tint_sinh(vec3<f32>(1234.0f));
}
)";

View File

@ -92,14 +92,15 @@ TEST_P(GlslImportData_SingleVectorParamTest, FloatVector) {
auto param = GetParam();
auto* ident = Expr(param.name);
auto* expr = Call(ident, vec3<f32>(1_f, 2_f, 3_f));
auto* expr = Call(ident, vec3<f32>(0.1_f, 0.2_f, 0.3_f));
WrapInFunction(expr);
GeneratorImpl& gen = Build();
std::stringstream out;
ASSERT_TRUE(gen.EmitCall(out, expr)) << gen.error();
EXPECT_EQ(out.str(), std::string(param.glsl_name) + "(vec3(1.0f, 2.0f, 3.0f))");
EXPECT_EQ(out.str(),
std::string(param.glsl_name) + "(vec3(0.100000001f, 0.200000003f, 0.300000012f))");
}
INSTANTIATE_TEST_SUITE_P(GlslGeneratorImplTest_Import,
GlslImportData_SingleVectorParamTest,

View File

@ -92,14 +92,15 @@ TEST_P(HlslImportData_SingleVectorParamTest, FloatVector) {
auto param = GetParam();
auto* ident = Expr(param.name);
auto* expr = Call(ident, vec3<f32>(1_f, 2_f, 3_f));
auto* expr = Call(ident, vec3<f32>(0.1_f, 0.2_f, 0.3_f));
WrapInFunction(expr);
GeneratorImpl& gen = Build();
std::stringstream out;
ASSERT_TRUE(gen.EmitCall(out, expr)) << gen.error();
EXPECT_EQ(out.str(), std::string(param.hlsl_name) + "(float3(1.0f, 2.0f, 3.0f))");
EXPECT_EQ(out.str(),
std::string(param.hlsl_name) + "(float3(0.100000001f, 0.200000003f, 0.300000012f))");
}
INSTANTIATE_TEST_SUITE_P(HlslGeneratorImplTest_Import,
HlslImportData_SingleVectorParamTest,

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 res = asin((1.0f).xxxx);
float4 res = (1.570796371f).xxxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 res = asin((1.0f).xxxx);
float4 res = (1.570796371f).xxxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_064953() {
vec4 res = asin(vec4(1.0f));
vec4 res = vec4(1.570796371f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_064953() {
vec4 res = asin(vec4(1.0f));
vec4 res = vec4(1.570796371f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_064953() {
vec4 res = asin(vec4(1.0f));
vec4 res = vec4(1.570796371f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_064953() {
float4 res = asin(float4(1.0f));
float4 res = float4(1.570796371f);
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Bound: 31
; Schema: 0
OpCapability Shader
%14 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -31,36 +30,36 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%16 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%float_1_57079637 = OpConstant %float 1.57079637
%14 = OpConstantComposite %v4float %float_1_57079637 %float_1_57079637 %float_1_57079637 %float_1_57079637
%_ptr_Function_v4float = OpTypePointer Function %v4float
%19 = OpTypeFunction %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_064953 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4float Function %5
%13 = OpExtInst %v4float %14 Asin %16
OpStore %res %13
OpStore %res %14
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asin_064953
%vertex_main_inner = OpFunction %v4float None %17
%19 = OpLabel
%20 = OpFunctionCall %void %asin_064953
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
%22 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %asin_064953
%26 = OpLabel
%27 = OpFunctionCall %void %asin_064953
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %asin_064953
%29 = OpLabel
%30 = OpFunctionCall %void %asin_064953
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asin(vec<3, fa>) -> vec<3, fa>
fn asin_0bac07() {
var res = asin(vec3(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_0bac07();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_0bac07();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_0bac07();
}

View File

@ -0,0 +1,30 @@
void asin_0bac07() {
float3 res = (1.570796371f).xxx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_0bac07();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_0bac07();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_0bac07();
return;
}

View File

@ -0,0 +1,30 @@
void asin_0bac07() {
float3 res = (1.570796371f).xxx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_0bac07();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_0bac07();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_0bac07();
return;
}

View File

@ -0,0 +1,49 @@
#version 310 es
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
}
vec4 vertex_main() {
asin_0bac07();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
}
void fragment_main() {
asin_0bac07();
}
void main() {
fragment_main();
return;
}
#version 310 es
void asin_0bac07() {
vec3 res = vec3(1.570796371f);
}
void compute_main() {
asin_0bac07();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@ -0,0 +1,33 @@
#include <metal_stdlib>
using namespace metal;
void asin_0bac07() {
float3 res = float3(1.570796371f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
asin_0bac07();
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() {
asin_0bac07();
return;
}
kernel void compute_main() {
asin_0bac07();
return;
}

View File

@ -0,0 +1,67 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %asin_0bac07 "asin_0bac07"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v3float %float_1_57079637 %float_1_57079637 %float_1_57079637
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_0bac07 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asin_0bac07
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asin_0bac07
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asin_0bac07
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,19 @@
fn asin_0bac07() {
var res = asin(vec3(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_0bac07();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_0bac07();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_0bac07();
}

View File

@ -1,5 +1,5 @@
void asin_11dfda() {
float16_t res = asin(float16_t(0.0h));
float16_t res = float16_t(0.0h);
}
struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require
void asin_11dfda() {
float16_t res = asin(0.0hf);
float16_t res = 0.0hf;
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float;
void asin_11dfda() {
float16_t res = asin(0.0hf);
float16_t res = 0.0hf;
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require
void asin_11dfda() {
float16_t res = asin(0.0hf);
float16_t res = 0.0hf;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_11dfda() {
half res = asin(0.0h);
half res = 0.0h;
}
struct tint_symbol {

View File

@ -1,14 +1,13 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Bound: 31
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -36,36 +35,35 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%half = OpTypeFloat 16
%16 = OpConstantNull %half
%14 = OpConstantNull %half
%_ptr_Function_half = OpTypePointer Function %half
%19 = OpTypeFunction %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_11dfda = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_half Function %16
%13 = OpExtInst %half %15 Asin %16
OpStore %res %13
%res = OpVariable %_ptr_Function_half Function %14
OpStore %res %14
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asin_11dfda
%vertex_main_inner = OpFunction %v4float None %17
%19 = OpLabel
%20 = OpFunctionCall %void %asin_11dfda
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
%22 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asin_11dfda
%26 = OpLabel
%27 = OpFunctionCall %void %asin_11dfda
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asin_11dfda
%29 = OpLabel
%30 = OpFunctionCall %void %asin_11dfda
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
void asin_2d8e29() {
vector<float16_t, 3> res = asin((float16_t(0.0h)).xxx);
vector<float16_t, 3> res = (float16_t(0.0h)).xxx;
}
struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require
void asin_2d8e29() {
f16vec3 res = asin(f16vec3(0.0hf));
f16vec3 res = f16vec3(0.0hf);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float;
void asin_2d8e29() {
f16vec3 res = asin(f16vec3(0.0hf));
f16vec3 res = f16vec3(0.0hf);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require
void asin_2d8e29() {
f16vec3 res = asin(f16vec3(0.0hf));
f16vec3 res = f16vec3(0.0hf);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_2d8e29() {
half3 res = asin(half3(0.0h));
half3 res = half3(0.0h);
}
struct tint_symbol {

View File

@ -1,14 +1,13 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 32
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%16 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -37,36 +36,35 @@
%9 = OpTypeFunction %void
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%17 = OpConstantNull %v3half
%15 = OpConstantNull %v3half
%_ptr_Function_v3half = OpTypePointer Function %v3half
%20 = OpTypeFunction %v4float
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_2d8e29 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3half Function %17
%13 = OpExtInst %v3half %16 Asin %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v3half Function %15
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %asin_2d8e29
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %asin_2d8e29
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_2d8e29
%27 = OpLabel
%28 = OpFunctionCall %void %asin_2d8e29
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_2d8e29
%30 = OpLabel
%31 = OpFunctionCall %void %asin_2d8e29
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
void asin_3cfbd4() {
vector<float16_t, 4> res = asin((float16_t(0.0h)).xxxx);
vector<float16_t, 4> res = (float16_t(0.0h)).xxxx;
}
struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require
void asin_3cfbd4() {
f16vec4 res = asin(f16vec4(0.0hf));
f16vec4 res = f16vec4(0.0hf);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float;
void asin_3cfbd4() {
f16vec4 res = asin(f16vec4(0.0hf));
f16vec4 res = f16vec4(0.0hf);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require
void asin_3cfbd4() {
f16vec4 res = asin(f16vec4(0.0hf));
f16vec4 res = f16vec4(0.0hf);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_3cfbd4() {
half4 res = asin(half4(0.0h));
half4 res = half4(0.0h);
}
struct tint_symbol {

View File

@ -1,14 +1,13 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 32
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%16 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -37,36 +36,35 @@
%9 = OpTypeFunction %void
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%17 = OpConstantNull %v4half
%15 = OpConstantNull %v4half
%_ptr_Function_v4half = OpTypePointer Function %v4half
%20 = OpTypeFunction %v4float
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_3cfbd4 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4half Function %17
%13 = OpExtInst %v4half %16 Asin %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v4half Function %15
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %asin_3cfbd4
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %asin_3cfbd4
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_3cfbd4
%27 = OpLabel
%28 = OpFunctionCall %void %asin_3cfbd4
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_3cfbd4
%30 = OpLabel
%31 = OpFunctionCall %void %asin_3cfbd4
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asin(vec<4, fa>) -> vec<4, fa>
fn asin_64bb1f() {
var res = asin(vec4(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_64bb1f();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_64bb1f();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_64bb1f();
}

View File

@ -0,0 +1,30 @@
void asin_64bb1f() {
float4 res = (1.570796371f).xxxx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_64bb1f();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_64bb1f();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_64bb1f();
return;
}

View File

@ -0,0 +1,30 @@
void asin_64bb1f() {
float4 res = (1.570796371f).xxxx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_64bb1f();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_64bb1f();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_64bb1f();
return;
}

View File

@ -0,0 +1,49 @@
#version 310 es
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
}
vec4 vertex_main() {
asin_64bb1f();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
}
void fragment_main() {
asin_64bb1f();
}
void main() {
fragment_main();
return;
}
#version 310 es
void asin_64bb1f() {
vec4 res = vec4(1.570796371f);
}
void compute_main() {
asin_64bb1f();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@ -0,0 +1,33 @@
#include <metal_stdlib>
using namespace metal;
void asin_64bb1f() {
float4 res = float4(1.570796371f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
asin_64bb1f();
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() {
asin_64bb1f();
return;
}
kernel void compute_main() {
asin_64bb1f();
return;
}

View File

@ -0,0 +1,65 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %asin_64bb1f "asin_64bb1f"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%14 = OpConstantComposite %v4float %float_1_57079637 %float_1_57079637 %float_1_57079637 %float_1_57079637
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_64bb1f = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4float Function %5
OpStore %res %14
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %17
%19 = OpLabel
%20 = OpFunctionCall %void %asin_64bb1f
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%22 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %void %asin_64bb1f
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_64bb1f
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,19 @@
fn asin_64bb1f() {
var res = asin(vec4(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_64bb1f();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_64bb1f();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_64bb1f();
}

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 res = asin((1.0f).xx);
float2 res = (1.570796371f).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 res = asin((1.0f).xx);
float2 res = (1.570796371f).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_7b6a44() {
vec2 res = asin(vec2(1.0f));
vec2 res = vec2(1.570796371f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_7b6a44() {
vec2 res = asin(vec2(1.0f));
vec2 res = vec2(1.570796371f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_7b6a44() {
vec2 res = asin(vec2(1.0f));
vec2 res = vec2(1.570796371f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_7b6a44() {
float2 res = asin(float2(1.0f));
float2 res = float2(1.570796371f);
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 33
; Schema: 0
OpCapability Shader
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -32,37 +31,37 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1 = OpConstant %float 1
%17 = OpConstantComposite %v2float %float_1 %float_1
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v2float %float_1_57079637 %float_1_57079637
%_ptr_Function_v2float = OpTypePointer Function %v2float
%20 = OpConstantNull %v2float
%21 = OpTypeFunction %v4float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_7b6a44 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %20
%13 = OpExtInst %v2float %15 Asin %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %asin_7b6a44
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asin_7b6a44
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_7b6a44
%28 = OpLabel
%29 = OpFunctionCall %void %asin_7b6a44
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_7b6a44
%31 = OpLabel
%32 = OpFunctionCall %void %asin_7b6a44
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 res = asin((1.0f).xxx);
float3 res = (1.570796371f).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 res = asin((1.0f).xxx);
float3 res = (1.570796371f).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_8cd9c9() {
vec3 res = asin(vec3(1.0f));
vec3 res = vec3(1.570796371f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_8cd9c9() {
vec3 res = asin(vec3(1.0f));
vec3 res = vec3(1.570796371f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_8cd9c9() {
vec3 res = asin(vec3(1.0f));
vec3 res = vec3(1.570796371f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_8cd9c9() {
float3 res = asin(float3(1.0f));
float3 res = float3(1.570796371f);
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 33
; Schema: 0
OpCapability Shader
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -32,37 +31,37 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1 = OpConstant %float 1
%17 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v3float %float_1_57079637 %float_1_57079637 %float_1_57079637
%_ptr_Function_v3float = OpTypePointer Function %v3float
%20 = OpConstantNull %v3float
%21 = OpTypeFunction %v4float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_8cd9c9 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3float Function %20
%13 = OpExtInst %v3float %15 Asin %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v3float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %asin_8cd9c9
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asin_8cd9c9
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_8cd9c9
%28 = OpLabel
%29 = OpFunctionCall %void %asin_8cd9c9
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_8cd9c9
%31 = OpLabel
%32 = OpFunctionCall %void %asin_8cd9c9
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asin(vec<2, fa>) -> vec<2, fa>
fn asin_a5dd88() {
var res = asin(vec2(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_a5dd88();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_a5dd88();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_a5dd88();
}

View File

@ -0,0 +1,30 @@
void asin_a5dd88() {
float2 res = (1.570796371f).xx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_a5dd88();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_a5dd88();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_a5dd88();
return;
}

View File

@ -0,0 +1,30 @@
void asin_a5dd88() {
float2 res = (1.570796371f).xx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_a5dd88();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_a5dd88();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_a5dd88();
return;
}

View File

@ -0,0 +1,49 @@
#version 310 es
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
}
vec4 vertex_main() {
asin_a5dd88();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
}
void fragment_main() {
asin_a5dd88();
}
void main() {
fragment_main();
return;
}
#version 310 es
void asin_a5dd88() {
vec2 res = vec2(1.570796371f);
}
void compute_main() {
asin_a5dd88();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@ -0,0 +1,33 @@
#include <metal_stdlib>
using namespace metal;
void asin_a5dd88() {
float2 res = float2(1.570796371f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
asin_a5dd88();
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() {
asin_a5dd88();
return;
}
kernel void compute_main() {
asin_a5dd88();
return;
}

View File

@ -0,0 +1,67 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %asin_a5dd88 "asin_a5dd88"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1_57079637 = OpConstant %float 1.57079637
%15 = OpConstantComposite %v2float %float_1_57079637 %float_1_57079637
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_a5dd88 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asin_a5dd88
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asin_a5dd88
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asin_a5dd88
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,19 @@
fn asin_a5dd88() {
var res = asin(vec2(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_a5dd88();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_a5dd88();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_a5dd88();
}

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asin(fa) -> fa
fn asin_a6d73a() {
var res = asin(1);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_a6d73a();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_a6d73a();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_a6d73a();
}

View File

@ -0,0 +1,30 @@
void asin_a6d73a() {
float res = 1.570796371f;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_a6d73a();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_a6d73a();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_a6d73a();
return;
}

View File

@ -0,0 +1,30 @@
void asin_a6d73a() {
float res = 1.570796371f;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asin_a6d73a();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asin_a6d73a();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asin_a6d73a();
return;
}

View File

@ -0,0 +1,49 @@
#version 310 es
void asin_a6d73a() {
float res = 1.570796371f;
}
vec4 vertex_main() {
asin_a6d73a();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void asin_a6d73a() {
float res = 1.570796371f;
}
void fragment_main() {
asin_a6d73a();
}
void main() {
fragment_main();
return;
}
#version 310 es
void asin_a6d73a() {
float res = 1.570796371f;
}
void compute_main() {
asin_a6d73a();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@ -0,0 +1,33 @@
#include <metal_stdlib>
using namespace metal;
void asin_a6d73a() {
float res = 1.570796371f;
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
asin_a6d73a();
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() {
asin_a6d73a();
return;
}
kernel void compute_main() {
asin_a6d73a();
return;
}

View File

@ -0,0 +1,64 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 30
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %asin_a6d73a "asin_a6d73a"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_57079637 = OpConstant %float 1.57079637
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_a6d73a = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1_57079637
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %asin_a6d73a
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %void %asin_a6d73a
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asin_a6d73a
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,19 @@
fn asin_a6d73a() {
var res = asin(1);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asin_a6d73a();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asin_a6d73a();
}
@compute @workgroup_size(1)
fn compute_main() {
asin_a6d73a();
}

View File

@ -1,5 +1,5 @@
void asin_b4aced() {
vector<float16_t, 2> res = asin((float16_t(0.0h)).xx);
vector<float16_t, 2> res = (float16_t(0.0h)).xx;
}
struct tint_symbol {

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require
void asin_b4aced() {
f16vec2 res = asin(f16vec2(0.0hf));
f16vec2 res = f16vec2(0.0hf);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float;
void asin_b4aced() {
f16vec2 res = asin(f16vec2(0.0hf));
f16vec2 res = f16vec2(0.0hf);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require
void asin_b4aced() {
f16vec2 res = asin(f16vec2(0.0hf));
f16vec2 res = f16vec2(0.0hf);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_b4aced() {
half2 res = asin(half2(0.0h));
half2 res = half2(0.0h);
}
struct tint_symbol {

View File

@ -1,14 +1,13 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 32
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%16 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -37,36 +36,35 @@
%9 = OpTypeFunction %void
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%17 = OpConstantNull %v2half
%15 = OpConstantNull %v2half
%_ptr_Function_v2half = OpTypePointer Function %v2half
%20 = OpTypeFunction %v4float
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_b4aced = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2half Function %17
%13 = OpExtInst %v2half %16 Asin %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v2half Function %15
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %asin_b4aced
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %asin_b4aced
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_b4aced
%27 = OpLabel
%28 = OpFunctionCall %void %asin_b4aced
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asin_b4aced
%30 = OpLabel
%31 = OpFunctionCall %void %asin_b4aced
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
void asin_c0c272() {
float res = asin(1.0f);
float res = 1.570796371f;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void asin_c0c272() {
float res = asin(1.0f);
float res = 1.570796371f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void asin_c0c272() {
float res = asin(1.0f);
float res = 1.570796371f;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asin_c0c272() {
float res = asin(1.0f);
float res = 1.570796371f;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asin_c0c272() {
float res = asin(1.0f);
float res = 1.570796371f;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asin_c0c272() {
float res = asin(1.0f);
float res = 1.570796371f;
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Bound: 30
; Schema: 0
OpCapability Shader
%14 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -31,35 +30,35 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%float_1_57079637 = OpConstant %float 1.57079637
%_ptr_Function_float = OpTypePointer Function %float
%18 = OpTypeFunction %v4float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asin_c0c272 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
%13 = OpExtInst %float %14 Asin %float_1
OpStore %res %13
OpStore %res %float_1_57079637
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %asin_c0c272
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %asin_c0c272
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %void %asin_c0c272
%25 = OpLabel
%26 = OpFunctionCall %void %asin_c0c272
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asin_c0c272
%28 = OpLabel
%29 = OpFunctionCall %void %asin_c0c272
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
#version 310 es
void asinh_157447() {
float res = asinh(1.0f);
float res = 0.881373584f;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asinh_157447() {
float res = asinh(1.0f);
float res = 0.881373584f;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asinh_157447() {
float res = asinh(1.0f);
float res = 0.881373584f;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asinh_157447() {
float res = asinh(1.0f);
float res = 0.881373584f;
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Bound: 30
; Schema: 0
OpCapability Shader
%14 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -31,35 +30,35 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1 = OpConstant %float 1
%float_0_881373584 = OpConstant %float 0.881373584
%_ptr_Function_float = OpTypePointer Function %float
%18 = OpTypeFunction %v4float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asinh_157447 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
%13 = OpExtInst %float %14 Asinh %float_1
OpStore %res %13
OpStore %res %float_0_881373584
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %asinh_157447
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %asinh_157447
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %void %asinh_157447
%25 = OpLabel
%26 = OpFunctionCall %void %asinh_157447
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asinh_157447
%28 = OpLabel
%29 = OpFunctionCall %void %asinh_157447
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asinh(vec<2, fa>) -> vec<2, fa>
fn asinh_16b543() {
var res = asinh(vec2(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asinh_16b543();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asinh_16b543();
}
@compute @workgroup_size(1)
fn compute_main() {
asinh_16b543();
}

View File

@ -0,0 +1,30 @@
void asinh_16b543() {
float2 res = (0.881373584f).xx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asinh_16b543();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asinh_16b543();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asinh_16b543();
return;
}

View File

@ -0,0 +1,30 @@
void asinh_16b543() {
float2 res = (0.881373584f).xx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asinh_16b543();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asinh_16b543();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asinh_16b543();
return;
}

View File

@ -0,0 +1,49 @@
#version 310 es
void asinh_16b543() {
vec2 res = vec2(0.881373584f);
}
vec4 vertex_main() {
asinh_16b543();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void asinh_16b543() {
vec2 res = vec2(0.881373584f);
}
void fragment_main() {
asinh_16b543();
}
void main() {
fragment_main();
return;
}
#version 310 es
void asinh_16b543() {
vec2 res = vec2(0.881373584f);
}
void compute_main() {
asinh_16b543();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@ -0,0 +1,33 @@
#include <metal_stdlib>
using namespace metal;
void asinh_16b543() {
float2 res = float2(0.881373584f);
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
asinh_16b543();
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() {
asinh_16b543();
return;
}
kernel void compute_main() {
asinh_16b543();
return;
}

View File

@ -0,0 +1,67 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %asinh_16b543 "asinh_16b543"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_0_881373584 = OpConstant %float 0.881373584
%15 = OpConstantComposite %v2float %float_0_881373584 %float_0_881373584
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asinh_16b543 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asinh_16b543
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asinh_16b543
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asinh_16b543
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,19 @@
fn asinh_16b543() {
var res = asinh(vec2(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asinh_16b543();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asinh_16b543();
}
@compute @workgroup_size(1)
fn compute_main() {
asinh_16b543();
}

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asinh(fa) -> fa
fn asinh_180015() {
var res = asinh(1);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asinh_180015();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asinh_180015();
}
@compute @workgroup_size(1)
fn compute_main() {
asinh_180015();
}

View File

@ -0,0 +1,30 @@
void asinh_180015() {
float res = 0.881373584f;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asinh_180015();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asinh_180015();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asinh_180015();
return;
}

View File

@ -0,0 +1,30 @@
void asinh_180015() {
float res = 0.881373584f;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asinh_180015();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asinh_180015();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asinh_180015();
return;
}

View File

@ -0,0 +1,49 @@
#version 310 es
void asinh_180015() {
float res = 0.881373584f;
}
vec4 vertex_main() {
asinh_180015();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void asinh_180015() {
float res = 0.881373584f;
}
void fragment_main() {
asinh_180015();
}
void main() {
fragment_main();
return;
}
#version 310 es
void asinh_180015() {
float res = 0.881373584f;
}
void compute_main() {
asinh_180015();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}

View File

@ -0,0 +1,33 @@
#include <metal_stdlib>
using namespace metal;
void asinh_180015() {
float res = 0.881373584f;
}
struct tint_symbol {
float4 value [[position]];
};
float4 vertex_main_inner() {
asinh_180015();
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() {
asinh_180015();
return;
}
kernel void compute_main() {
asinh_180015();
return;
}

View File

@ -0,0 +1,64 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 30
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %asinh_180015 "asinh_180015"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_0_881373584 = OpConstant %float 0.881373584
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asinh_180015 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_0_881373584
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %asinh_180015
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %void %asinh_180015
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asinh_180015
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,19 @@
fn asinh_180015() {
var res = asinh(1);
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asinh_180015();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asinh_180015();
}
@compute @workgroup_size(1)
fn compute_main() {
asinh_180015();
}

View File

@ -1,7 +1,7 @@
#version 310 es
void asinh_2265ee() {
vec3 res = asinh(vec3(1.0f));
vec3 res = vec3(0.881373584f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asinh_2265ee() {
vec3 res = asinh(vec3(1.0f));
vec3 res = vec3(0.881373584f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asinh_2265ee() {
vec3 res = asinh(vec3(1.0f));
vec3 res = vec3(0.881373584f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asinh_2265ee() {
float3 res = asinh(float3(1.0f));
float3 res = float3(0.881373584f);
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 33
; Schema: 0
OpCapability Shader
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -32,37 +31,37 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%float_1 = OpConstant %float 1
%17 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%float_0_881373584 = OpConstant %float 0.881373584
%15 = OpConstantComposite %v3float %float_0_881373584 %float_0_881373584 %float_0_881373584
%_ptr_Function_v3float = OpTypePointer Function %v3float
%20 = OpConstantNull %v3float
%21 = OpTypeFunction %v4float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asinh_2265ee = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3float Function %20
%13 = OpExtInst %v3float %15 Asinh %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v3float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %asinh_2265ee
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asinh_2265ee
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asinh_2265ee
%28 = OpLabel
%29 = OpFunctionCall %void %asinh_2265ee
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asinh_2265ee
%31 = OpLabel
%32 = OpFunctionCall %void %asinh_2265ee
OpReturn
OpFunctionEnd

View File

@ -2,7 +2,7 @@
#extension GL_AMD_gpu_shader_half_float : require
void asinh_468a48() {
float16_t res = asinh(0.0hf);
float16_t res = 0.0hf;
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ void main() {
precision mediump float;
void asinh_468a48() {
float16_t res = asinh(0.0hf);
float16_t res = 0.0hf;
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
#extension GL_AMD_gpu_shader_half_float : require
void asinh_468a48() {
float16_t res = asinh(0.0hf);
float16_t res = 0.0hf;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asinh_468a48() {
half res = asinh(0.0h);
half res = 0.0h;
}
struct tint_symbol {

View File

@ -1,14 +1,13 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Bound: 31
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -36,36 +35,35 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%half = OpTypeFloat 16
%16 = OpConstantNull %half
%14 = OpConstantNull %half
%_ptr_Function_half = OpTypePointer Function %half
%19 = OpTypeFunction %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asinh_468a48 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_half Function %16
%13 = OpExtInst %half %15 Asinh %16
OpStore %res %13
%res = OpVariable %_ptr_Function_half Function %14
OpStore %res %14
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asinh_468a48
%vertex_main_inner = OpFunction %v4float None %17
%19 = OpLabel
%20 = OpFunctionCall %void %asinh_468a48
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
%22 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %asinh_468a48
%26 = OpLabel
%27 = OpFunctionCall %void %asinh_468a48
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %asinh_468a48
%29 = OpLabel
%30 = OpFunctionCall %void %asinh_468a48
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
#version 310 es
void asinh_4a2226() {
vec2 res = asinh(vec2(1.0f));
vec2 res = vec2(0.881373584f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void asinh_4a2226() {
vec2 res = asinh(vec2(1.0f));
vec2 res = vec2(0.881373584f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void asinh_4a2226() {
vec2 res = asinh(vec2(1.0f));
vec2 res = vec2(0.881373584f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void asinh_4a2226() {
float2 res = asinh(float2(1.0f));
float2 res = float2(0.881373584f);
}
struct tint_symbol {

View File

@ -1,10 +1,9 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 33
; Schema: 0
OpCapability Shader
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
@ -32,37 +31,37 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1 = OpConstant %float 1
%17 = OpConstantComposite %v2float %float_1 %float_1
%float_0_881373584 = OpConstant %float 0.881373584
%15 = OpConstantComposite %v2float %float_0_881373584 %float_0_881373584
%_ptr_Function_v2float = OpTypePointer Function %v2float
%20 = OpConstantNull %v2float
%21 = OpTypeFunction %v4float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%asinh_4a2226 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %20
%13 = OpExtInst %v2float %15 Asinh %17
OpStore %res %13
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %21
%23 = OpLabel
%24 = OpFunctionCall %void %asinh_4a2226
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %asinh_4a2226
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %27
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %asinh_4a2226
%28 = OpLabel
%29 = OpFunctionCall %void %asinh_4a2226
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %asinh_4a2226
%31 = OpLabel
%32 = OpFunctionCall %void %asinh_4a2226
OpReturn
OpFunctionEnd

View File

@ -0,0 +1,43 @@
// Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
////////////////////////////////////////////////////////////////////////////////
// File generated by tools/src/cmd/gen
// using the template:
// test/tint/builtins/gen/gen.wgsl.tmpl
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// fn asinh(vec<3, fa>) -> vec<3, fa>
fn asinh_51079e() {
var res = asinh(vec3(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
asinh_51079e();
return vec4<f32>();
}
@fragment
fn fragment_main() {
asinh_51079e();
}
@compute @workgroup_size(1)
fn compute_main() {
asinh_51079e();
}

View File

@ -0,0 +1,30 @@
void asinh_51079e() {
float3 res = (0.881373584f).xxx;
}
struct tint_symbol {
float4 value : SV_Position;
};
float4 vertex_main_inner() {
asinh_51079e();
return (0.0f).xxxx;
}
tint_symbol vertex_main() {
const float4 inner_result = vertex_main_inner();
tint_symbol wrapper_result = (tint_symbol)0;
wrapper_result.value = inner_result;
return wrapper_result;
}
void fragment_main() {
asinh_51079e();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
asinh_51079e();
return;
}

Some files were not shown because too many files have changed in this diff Show More