mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
tint: Implement modf and frexp built-ins for f16 types
This patch implement modf and frexp built-ins for f16 types, and also simplify their implementation for f32 in MSL and HLSL, and clean up deprecated code in GLSL writer. Corresponding unittests are also implemented, but end-to-end tests for f16 are not implemented yet. Bug: tint:1473, tint:1502 Change-Id: I12887ae5303c6dc032a51f619e1afeb19b4603b6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98102 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
1cd4706f85
commit
20cddbf04c
@@ -3,9 +3,8 @@ struct modf_result {
|
||||
float whole;
|
||||
};
|
||||
modf_result tint_modf(float param_0) {
|
||||
float whole;
|
||||
float fract = modf(param_0, whole);
|
||||
modf_result result = {fract, whole};
|
||||
modf_result result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,8 @@ struct modf_result {
|
||||
float whole;
|
||||
};
|
||||
modf_result tint_modf(float param_0) {
|
||||
float whole;
|
||||
float fract = modf(param_0, whole);
|
||||
modf_result result = {fract, whole};
|
||||
modf_result result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ struct modf_result {
|
||||
float whole;
|
||||
};
|
||||
modf_result tint_modf(float param_0) {
|
||||
float whole;
|
||||
float fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void i() {
|
||||
|
||||
@@ -7,9 +7,9 @@ struct frexp_result {
|
||||
int exp;
|
||||
};
|
||||
frexp_result tint_frexp(float param_0) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
kernel void tint_symbol() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(f32) -> __frexp_result
|
||||
fn frexp_eabd40() {
|
||||
// fn frexp(f32) -> __frexp_result<f32>
|
||||
fn frexp_4b2200() {
|
||||
var res = frexp(1.f);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result tint_frexp(float param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
frexp_result res = tint_frexp(1.0f);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result tint_frexp(float param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
frexp_result res = tint_frexp(1.0f);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ frexp_result tint_frexp(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
frexp_result res = tint_frexp(1.0f);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ frexp_result tint_frexp(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
frexp_result res = tint_frexp(1.0f);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ frexp_result tint_frexp(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
frexp_result res = tint_frexp(1.0f);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result {
|
||||
int exp;
|
||||
};
|
||||
frexp_result tint_frexp(float param_0) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
frexp_result res = tint_frexp(1.0f);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_eabd40 "frexp_eabd40"
|
||||
OpName %frexp_4b2200 "frexp_4b2200"
|
||||
OpName %__frexp_result "__frexp_result"
|
||||
OpMemberName %__frexp_result 0 "sig"
|
||||
OpMemberName %__frexp_result 1 "exp"
|
||||
@@ -42,7 +42,7 @@
|
||||
%_ptr_Function___frexp_result = OpTypePointer Function %__frexp_result
|
||||
%20 = OpConstantNull %__frexp_result
|
||||
%21 = OpTypeFunction %v4float
|
||||
%frexp_eabd40 = OpFunction %void None %9
|
||||
%frexp_4b2200 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___frexp_result Function %20
|
||||
%13 = OpExtInst %__frexp_result %16 FrexpStruct %float_1
|
||||
@@ -51,7 +51,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %21
|
||||
%23 = OpLabel
|
||||
%24 = OpFunctionCall %void %frexp_eabd40
|
||||
%24 = OpFunctionCall %void %frexp_4b2200
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -63,11 +63,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %frexp_eabd40
|
||||
%30 = OpFunctionCall %void %frexp_4b2200
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_eabd40
|
||||
%33 = OpFunctionCall %void %frexp_4b2200
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn frexp_eabd40() {
|
||||
fn frexp_4b2200() {
|
||||
var res = frexp(1.0f);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<4, f32>) -> __frexp_result_vec<4>
|
||||
fn frexp_3c4f48() {
|
||||
// fn frexp(vec<4, f32>) -> __frexp_result_vec<4, f32>
|
||||
fn frexp_77af93() {
|
||||
var res = frexp(vec4<f32>(1.f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec4 tint_frexp(float4 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
frexp_result_vec4 res = tint_frexp((1.0f).xxxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec4 tint_frexp(float4 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
frexp_result_vec4 res = tint_frexp((1.0f).xxxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ frexp_result_vec4 tint_frexp(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
frexp_result_vec4 res = tint_frexp(vec4(1.0f));
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ frexp_result_vec4 tint_frexp(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
frexp_result_vec4 res = tint_frexp(vec4(1.0f));
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ frexp_result_vec4 tint_frexp(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
frexp_result_vec4 res = tint_frexp(vec4(1.0f));
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result_vec4 {
|
||||
int4 exp;
|
||||
};
|
||||
frexp_result_vec4 tint_frexp(float4 param_0) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result_vec4 result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
frexp_result_vec4 res = tint_frexp(float4(1.0f));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_3c4f48 "frexp_3c4f48"
|
||||
OpName %frexp_77af93 "frexp_77af93"
|
||||
OpName %__frexp_result_vec4 "__frexp_result_vec4"
|
||||
OpMemberName %__frexp_result_vec4 0 "sig"
|
||||
OpMemberName %__frexp_result_vec4 1 "exp"
|
||||
@@ -44,7 +44,7 @@
|
||||
%_ptr_Function___frexp_result_vec4 = OpTypePointer Function %__frexp_result_vec4
|
||||
%22 = OpConstantNull %__frexp_result_vec4
|
||||
%23 = OpTypeFunction %v4float
|
||||
%frexp_3c4f48 = OpFunction %void None %9
|
||||
%frexp_77af93 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___frexp_result_vec4 Function %22
|
||||
%13 = OpExtInst %__frexp_result_vec4 %17 FrexpStruct %19
|
||||
@@ -53,7 +53,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_3c4f48
|
||||
%26 = OpFunctionCall %void %frexp_77af93
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -65,11 +65,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%31 = OpLabel
|
||||
%32 = OpFunctionCall %void %frexp_3c4f48
|
||||
%32 = OpFunctionCall %void %frexp_77af93
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_3c4f48
|
||||
%35 = OpFunctionCall %void %frexp_77af93
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn frexp_3c4f48() {
|
||||
fn frexp_77af93() {
|
||||
var res = frexp(vec4<f32>(1.0f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<3, f32>) -> __frexp_result_vec<3>
|
||||
fn frexp_368997() {
|
||||
// fn frexp(vec<3, f32>) -> __frexp_result_vec<3, f32>
|
||||
fn frexp_979800() {
|
||||
var res = frexp(vec3<f32>(1.f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
frexp_result_vec3 res = tint_frexp((1.0f).xxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
frexp_result_vec3 res = tint_frexp((1.0f).xxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
frexp_result_vec3 res = tint_frexp(vec3(1.0f));
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
frexp_result_vec3 res = tint_frexp(vec3(1.0f));
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
frexp_result_vec3 res = tint_frexp(vec3(1.0f));
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result_vec3 {
|
||||
int3 exp;
|
||||
};
|
||||
frexp_result_vec3 tint_frexp(float3 param_0) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result_vec3 result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
frexp_result_vec3 res = tint_frexp(float3(1.0f));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_368997 "frexp_368997"
|
||||
OpName %frexp_979800 "frexp_979800"
|
||||
OpName %__frexp_result_vec3 "__frexp_result_vec3"
|
||||
OpMemberName %__frexp_result_vec3 0 "sig"
|
||||
OpMemberName %__frexp_result_vec3 1 "exp"
|
||||
@@ -45,7 +45,7 @@
|
||||
%_ptr_Function___frexp_result_vec3 = OpTypePointer Function %__frexp_result_vec3
|
||||
%23 = OpConstantNull %__frexp_result_vec3
|
||||
%24 = OpTypeFunction %v4float
|
||||
%frexp_368997 = OpFunction %void None %9
|
||||
%frexp_979800 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___frexp_result_vec3 Function %23
|
||||
%13 = OpExtInst %__frexp_result_vec3 %18 FrexpStruct %20
|
||||
@@ -54,7 +54,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %24
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %frexp_368997
|
||||
%27 = OpFunctionCall %void %frexp_979800
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -66,11 +66,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_368997
|
||||
%33 = OpFunctionCall %void %frexp_979800
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_368997
|
||||
%36 = OpFunctionCall %void %frexp_979800
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn frexp_368997() {
|
||||
fn frexp_979800() {
|
||||
var res = frexp(vec3<f32>(1.0f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<2, f32>) -> __frexp_result_vec<2>
|
||||
fn frexp_4bdfc7() {
|
||||
// fn frexp(vec<2, f32>) -> __frexp_result_vec<2, f32>
|
||||
fn frexp_eb2421() {
|
||||
var res = frexp(vec2<f32>(1.f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec2 tint_frexp(float2 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
frexp_result_vec2 res = tint_frexp((1.0f).xx);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec2 tint_frexp(float2 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
frexp_result_vec2 res = tint_frexp((1.0f).xx);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
frexp_result_vec2 res = tint_frexp(vec2(1.0f));
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
frexp_result_vec2 res = tint_frexp(vec2(1.0f));
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
frexp_result_vec2 res = tint_frexp(vec2(1.0f));
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result_vec2 {
|
||||
int2 exp;
|
||||
};
|
||||
frexp_result_vec2 tint_frexp(float2 param_0) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result_vec2 result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
frexp_result_vec2 res = tint_frexp(float2(1.0f));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_4bdfc7 "frexp_4bdfc7"
|
||||
OpName %frexp_eb2421 "frexp_eb2421"
|
||||
OpName %__frexp_result_vec2 "__frexp_result_vec2"
|
||||
OpMemberName %__frexp_result_vec2 0 "sig"
|
||||
OpMemberName %__frexp_result_vec2 1 "exp"
|
||||
@@ -45,7 +45,7 @@
|
||||
%_ptr_Function___frexp_result_vec2 = OpTypePointer Function %__frexp_result_vec2
|
||||
%23 = OpConstantNull %__frexp_result_vec2
|
||||
%24 = OpTypeFunction %v4float
|
||||
%frexp_4bdfc7 = OpFunction %void None %9
|
||||
%frexp_eb2421 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___frexp_result_vec2 Function %23
|
||||
%13 = OpExtInst %__frexp_result_vec2 %18 FrexpStruct %20
|
||||
@@ -54,7 +54,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %24
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %frexp_4bdfc7
|
||||
%27 = OpFunctionCall %void %frexp_eb2421
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -66,11 +66,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_4bdfc7
|
||||
%33 = OpFunctionCall %void %frexp_eb2421
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_4bdfc7
|
||||
%36 = OpFunctionCall %void %frexp_eb2421
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn frexp_4bdfc7() {
|
||||
fn frexp_eb2421() {
|
||||
var res = frexp(vec2<f32>(1.0f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn modf(vec<2, f32>) -> __modf_result_vec<2>
|
||||
fn modf_f5f20d() {
|
||||
// fn modf(vec<2, f32>) -> __modf_result_vec<2, f32>
|
||||
fn modf_2d50da() {
|
||||
var res = modf(vec2<f32>(1.f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec2 {
|
||||
float2 whole;
|
||||
};
|
||||
modf_result_vec2 tint_modf(float2 param_0) {
|
||||
float2 whole;
|
||||
float2 fract = modf(param_0, whole);
|
||||
modf_result_vec2 result = {fract, whole};
|
||||
modf_result_vec2 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
modf_result_vec2 res = tint_modf((1.0f).xx);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec2 {
|
||||
float2 whole;
|
||||
};
|
||||
modf_result_vec2 tint_modf(float2 param_0) {
|
||||
float2 whole;
|
||||
float2 fract = modf(param_0, whole);
|
||||
modf_result_vec2 result = {fract, whole};
|
||||
modf_result_vec2 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
modf_result_vec2 res = tint_modf((1.0f).xx);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ modf_result_vec2 tint_modf(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
modf_result_vec2 res = tint_modf(vec2(1.0f));
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ modf_result_vec2 tint_modf(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
modf_result_vec2 res = tint_modf(vec2(1.0f));
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ modf_result_vec2 tint_modf(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
modf_result_vec2 res = tint_modf(vec2(1.0f));
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct modf_result_vec2 {
|
||||
float2 whole;
|
||||
};
|
||||
modf_result_vec2 tint_modf(float2 param_0) {
|
||||
float2 whole;
|
||||
float2 fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result_vec2 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
modf_result_vec2 res = tint_modf(float2(1.0f));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %modf_f5f20d "modf_f5f20d"
|
||||
OpName %modf_2d50da "modf_2d50da"
|
||||
OpName %__modf_result_vec2 "__modf_result_vec2"
|
||||
OpMemberName %__modf_result_vec2 0 "fract"
|
||||
OpMemberName %__modf_result_vec2 1 "whole"
|
||||
@@ -43,7 +43,7 @@
|
||||
%_ptr_Function___modf_result_vec2 = OpTypePointer Function %__modf_result_vec2
|
||||
%21 = OpConstantNull %__modf_result_vec2
|
||||
%22 = OpTypeFunction %v4float
|
||||
%modf_f5f20d = OpFunction %void None %9
|
||||
%modf_2d50da = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___modf_result_vec2 Function %21
|
||||
%13 = OpExtInst %__modf_result_vec2 %16 ModfStruct %18
|
||||
@@ -52,7 +52,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %22
|
||||
%24 = OpLabel
|
||||
%25 = OpFunctionCall %void %modf_f5f20d
|
||||
%25 = OpFunctionCall %void %modf_2d50da
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -64,11 +64,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %void %modf_f5f20d
|
||||
%31 = OpFunctionCall %void %modf_2d50da
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%33 = OpLabel
|
||||
%34 = OpFunctionCall %void %modf_f5f20d
|
||||
%34 = OpFunctionCall %void %modf_2d50da
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn modf_f5f20d() {
|
||||
fn modf_2d50da() {
|
||||
var res = modf(vec2<f32>(1.0f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn modf(vec<4, f32>) -> __modf_result_vec<4>
|
||||
fn modf_ec2dbc() {
|
||||
// fn modf(vec<4, f32>) -> __modf_result_vec<4, f32>
|
||||
fn modf_4bfced() {
|
||||
var res = modf(vec4<f32>(1.f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec4 {
|
||||
float4 whole;
|
||||
};
|
||||
modf_result_vec4 tint_modf(float4 param_0) {
|
||||
float4 whole;
|
||||
float4 fract = modf(param_0, whole);
|
||||
modf_result_vec4 result = {fract, whole};
|
||||
modf_result_vec4 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
modf_result_vec4 res = tint_modf((1.0f).xxxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec4 {
|
||||
float4 whole;
|
||||
};
|
||||
modf_result_vec4 tint_modf(float4 param_0) {
|
||||
float4 whole;
|
||||
float4 fract = modf(param_0, whole);
|
||||
modf_result_vec4 result = {fract, whole};
|
||||
modf_result_vec4 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
modf_result_vec4 res = tint_modf((1.0f).xxxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ modf_result_vec4 tint_modf(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
modf_result_vec4 res = tint_modf(vec4(1.0f));
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ modf_result_vec4 tint_modf(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
modf_result_vec4 res = tint_modf(vec4(1.0f));
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ modf_result_vec4 tint_modf(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
modf_result_vec4 res = tint_modf(vec4(1.0f));
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct modf_result_vec4 {
|
||||
float4 whole;
|
||||
};
|
||||
modf_result_vec4 tint_modf(float4 param_0) {
|
||||
float4 whole;
|
||||
float4 fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result_vec4 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
modf_result_vec4 res = tint_modf(float4(1.0f));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %modf_ec2dbc "modf_ec2dbc"
|
||||
OpName %modf_4bfced "modf_4bfced"
|
||||
OpName %__modf_result_vec4 "__modf_result_vec4"
|
||||
OpMemberName %__modf_result_vec4 0 "fract"
|
||||
OpMemberName %__modf_result_vec4 1 "whole"
|
||||
@@ -42,7 +42,7 @@
|
||||
%_ptr_Function___modf_result_vec4 = OpTypePointer Function %__modf_result_vec4
|
||||
%20 = OpConstantNull %__modf_result_vec4
|
||||
%21 = OpTypeFunction %v4float
|
||||
%modf_ec2dbc = OpFunction %void None %9
|
||||
%modf_4bfced = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___modf_result_vec4 Function %20
|
||||
%13 = OpExtInst %__modf_result_vec4 %15 ModfStruct %17
|
||||
@@ -51,7 +51,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %21
|
||||
%23 = OpLabel
|
||||
%24 = OpFunctionCall %void %modf_ec2dbc
|
||||
%24 = OpFunctionCall %void %modf_4bfced
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -63,11 +63,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %modf_ec2dbc
|
||||
%30 = OpFunctionCall %void %modf_4bfced
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %modf_ec2dbc
|
||||
%33 = OpFunctionCall %void %modf_4bfced
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn modf_ec2dbc() {
|
||||
fn modf_4bfced() {
|
||||
var res = modf(vec4<f32>(1.0f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn modf(vec<3, f32>) -> __modf_result_vec<3>
|
||||
fn modf_9b75f7() {
|
||||
// fn modf(vec<3, f32>) -> __modf_result_vec<3, f32>
|
||||
fn modf_5ea256() {
|
||||
var res = modf(vec3<f32>(1.f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec3 {
|
||||
float3 whole;
|
||||
};
|
||||
modf_result_vec3 tint_modf(float3 param_0) {
|
||||
float3 whole;
|
||||
float3 fract = modf(param_0, whole);
|
||||
modf_result_vec3 result = {fract, whole};
|
||||
modf_result_vec3 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_9b75f7() {
|
||||
void modf_5ea256() {
|
||||
modf_result_vec3 res = tint_modf((1.0f).xxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return;
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec3 {
|
||||
float3 whole;
|
||||
};
|
||||
modf_result_vec3 tint_modf(float3 param_0) {
|
||||
float3 whole;
|
||||
float3 fract = modf(param_0, whole);
|
||||
modf_result_vec3 result = {fract, whole};
|
||||
modf_result_vec3 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_9b75f7() {
|
||||
void modf_5ea256() {
|
||||
modf_result_vec3 res = tint_modf((1.0f).xxx);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ modf_result_vec3 tint_modf(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_9b75f7() {
|
||||
void modf_5ea256() {
|
||||
modf_result_vec3 res = tint_modf(vec3(1.0f));
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ modf_result_vec3 tint_modf(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_9b75f7() {
|
||||
void modf_5ea256() {
|
||||
modf_result_vec3 res = tint_modf(vec3(1.0f));
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ modf_result_vec3 tint_modf(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_9b75f7() {
|
||||
void modf_5ea256() {
|
||||
modf_result_vec3 res = tint_modf(vec3(1.0f));
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct modf_result_vec3 {
|
||||
float3 whole;
|
||||
};
|
||||
modf_result_vec3 tint_modf(float3 param_0) {
|
||||
float3 whole;
|
||||
float3 fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result_vec3 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_9b75f7() {
|
||||
void modf_5ea256() {
|
||||
modf_result_vec3 res = tint_modf(float3(1.0f));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %modf_9b75f7 "modf_9b75f7"
|
||||
OpName %modf_5ea256 "modf_5ea256"
|
||||
OpName %__modf_result_vec3 "__modf_result_vec3"
|
||||
OpMemberName %__modf_result_vec3 0 "fract"
|
||||
OpMemberName %__modf_result_vec3 1 "whole"
|
||||
@@ -43,7 +43,7 @@
|
||||
%_ptr_Function___modf_result_vec3 = OpTypePointer Function %__modf_result_vec3
|
||||
%21 = OpConstantNull %__modf_result_vec3
|
||||
%22 = OpTypeFunction %v4float
|
||||
%modf_9b75f7 = OpFunction %void None %9
|
||||
%modf_5ea256 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___modf_result_vec3 Function %21
|
||||
%13 = OpExtInst %__modf_result_vec3 %16 ModfStruct %18
|
||||
@@ -52,7 +52,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %22
|
||||
%24 = OpLabel
|
||||
%25 = OpFunctionCall %void %modf_9b75f7
|
||||
%25 = OpFunctionCall %void %modf_5ea256
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -64,11 +64,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %void %modf_9b75f7
|
||||
%31 = OpFunctionCall %void %modf_5ea256
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%33 = OpLabel
|
||||
%34 = OpFunctionCall %void %modf_9b75f7
|
||||
%34 = OpFunctionCall %void %modf_5ea256
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn modf_9b75f7() {
|
||||
fn modf_5ea256() {
|
||||
var res = modf(vec3<f32>(1.0f));
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_9b75f7();
|
||||
modf_5ea256();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,23 +21,23 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn modf(f32) -> __modf_result
|
||||
fn modf_180fed() {
|
||||
// fn modf(f32) -> __modf_result<f32>
|
||||
fn modf_bbf7f7() {
|
||||
var res = modf(1.f);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result {
|
||||
float whole;
|
||||
};
|
||||
modf_result tint_modf(float param_0) {
|
||||
float whole;
|
||||
float fract = modf(param_0, whole);
|
||||
modf_result result = {fract, whole};
|
||||
modf_result result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_180fed() {
|
||||
void modf_bbf7f7() {
|
||||
modf_result res = tint_modf(1.0f);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return;
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result {
|
||||
float whole;
|
||||
};
|
||||
modf_result tint_modf(float param_0) {
|
||||
float whole;
|
||||
float fract = modf(param_0, whole);
|
||||
modf_result result = {fract, whole};
|
||||
modf_result result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_180fed() {
|
||||
void modf_bbf7f7() {
|
||||
modf_result res = tint_modf(1.0f);
|
||||
}
|
||||
|
||||
@@ -18,7 +17,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -30,12 +29,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return;
|
||||
}
|
||||
@@ -12,12 +12,12 @@ modf_result tint_modf(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_180fed() {
|
||||
void modf_bbf7f7() {
|
||||
modf_result res = tint_modf(1.0f);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,12 @@ modf_result tint_modf(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_180fed() {
|
||||
void modf_bbf7f7() {
|
||||
modf_result res = tint_modf(1.0f);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -70,12 +70,12 @@ modf_result tint_modf(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_180fed() {
|
||||
void modf_bbf7f7() {
|
||||
modf_result res = tint_modf(1.0f);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct modf_result {
|
||||
float whole;
|
||||
};
|
||||
modf_result tint_modf(float param_0) {
|
||||
float whole;
|
||||
float fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_180fed() {
|
||||
void modf_bbf7f7() {
|
||||
modf_result res = tint_modf(1.0f);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %modf_180fed "modf_180fed"
|
||||
OpName %modf_bbf7f7 "modf_bbf7f7"
|
||||
OpName %__modf_result "__modf_result"
|
||||
OpMemberName %__modf_result 0 "fract"
|
||||
OpMemberName %__modf_result 1 "whole"
|
||||
@@ -41,7 +41,7 @@
|
||||
%_ptr_Function___modf_result = OpTypePointer Function %__modf_result
|
||||
%19 = OpConstantNull %__modf_result
|
||||
%20 = OpTypeFunction %v4float
|
||||
%modf_180fed = OpFunction %void None %9
|
||||
%modf_bbf7f7 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%res = OpVariable %_ptr_Function___modf_result Function %19
|
||||
%13 = OpExtInst %__modf_result %15 ModfStruct %float_1
|
||||
@@ -50,7 +50,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %20
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %void %modf_180fed
|
||||
%23 = OpFunctionCall %void %modf_bbf7f7
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -62,11 +62,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %void %modf_180fed
|
||||
%29 = OpFunctionCall %void %modf_bbf7f7
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%31 = OpLabel
|
||||
%32 = OpFunctionCall %void %modf_180fed
|
||||
%32 = OpFunctionCall %void %modf_bbf7f7
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +1,19 @@
|
||||
fn modf_180fed() {
|
||||
fn modf_bbf7f7() {
|
||||
var res = modf(1.0f);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_180fed();
|
||||
modf_bbf7f7();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,24 +21,24 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(f32) -> __frexp_result
|
||||
fn frexp_eabd40() {
|
||||
// fn frexp(f32) -> __frexp_result<f32>
|
||||
fn frexp_4b2200() {
|
||||
var arg_0 = 1.f;
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result tint_frexp(float param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
float arg_0 = 1.0f;
|
||||
frexp_result res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result tint_frexp(float param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
float arg_0 = 1.0f;
|
||||
frexp_result res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
@@ -12,13 +12,13 @@ frexp_result tint_frexp(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
float arg_0 = 1.0f;
|
||||
frexp_result res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ frexp_result tint_frexp(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
float arg_0 = 1.0f;
|
||||
frexp_result res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -72,13 +72,13 @@ frexp_result tint_frexp(float param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
float arg_0 = 1.0f;
|
||||
frexp_result res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result {
|
||||
int exp;
|
||||
};
|
||||
frexp_result tint_frexp(float param_0) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_eabd40() {
|
||||
void frexp_4b2200() {
|
||||
float arg_0 = 1.0f;
|
||||
frexp_result res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_eabd40 "frexp_eabd40"
|
||||
OpName %frexp_4b2200 "frexp_4b2200"
|
||||
OpName %arg_0 "arg_0"
|
||||
OpName %__frexp_result "__frexp_result"
|
||||
OpMemberName %__frexp_result 0 "sig"
|
||||
@@ -44,7 +44,7 @@
|
||||
%_ptr_Function___frexp_result = OpTypePointer Function %__frexp_result
|
||||
%23 = OpConstantNull %__frexp_result
|
||||
%24 = OpTypeFunction %v4float
|
||||
%frexp_eabd40 = OpFunction %void None %9
|
||||
%frexp_4b2200 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_0 = OpVariable %_ptr_Function_float Function %8
|
||||
%res = OpVariable %_ptr_Function___frexp_result Function %23
|
||||
@@ -56,7 +56,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %24
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %frexp_eabd40
|
||||
%27 = OpFunctionCall %void %frexp_4b2200
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -68,11 +68,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_eabd40
|
||||
%33 = OpFunctionCall %void %frexp_4b2200
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_eabd40
|
||||
%36 = OpFunctionCall %void %frexp_4b2200
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,20 +1,20 @@
|
||||
fn frexp_eabd40() {
|
||||
fn frexp_4b2200() {
|
||||
var arg_0 = 1.0f;
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_eabd40();
|
||||
frexp_4b2200();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,24 +21,24 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<4, f32>) -> __frexp_result_vec<4>
|
||||
fn frexp_3c4f48() {
|
||||
// fn frexp(vec<4, f32>) -> __frexp_result_vec<4, f32>
|
||||
fn frexp_77af93() {
|
||||
var arg_0 = vec4<f32>(1.f);
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec4 tint_frexp(float4 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
float4 arg_0 = (1.0f).xxxx;
|
||||
frexp_result_vec4 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec4 tint_frexp(float4 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
float4 arg_0 = (1.0f).xxxx;
|
||||
frexp_result_vec4 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
@@ -12,13 +12,13 @@ frexp_result_vec4 tint_frexp(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
vec4 arg_0 = vec4(1.0f);
|
||||
frexp_result_vec4 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ frexp_result_vec4 tint_frexp(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
vec4 arg_0 = vec4(1.0f);
|
||||
frexp_result_vec4 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -72,13 +72,13 @@ frexp_result_vec4 tint_frexp(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
vec4 arg_0 = vec4(1.0f);
|
||||
frexp_result_vec4 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result_vec4 {
|
||||
int4 exp;
|
||||
};
|
||||
frexp_result_vec4 tint_frexp(float4 param_0) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result_vec4 result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_3c4f48() {
|
||||
void frexp_77af93() {
|
||||
float4 arg_0 = float4(1.0f);
|
||||
frexp_result_vec4 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_3c4f48 "frexp_3c4f48"
|
||||
OpName %frexp_77af93 "frexp_77af93"
|
||||
OpName %arg_0 "arg_0"
|
||||
OpName %__frexp_result_vec4 "__frexp_result_vec4"
|
||||
OpMemberName %__frexp_result_vec4 0 "sig"
|
||||
@@ -46,7 +46,7 @@
|
||||
%_ptr_Function___frexp_result_vec4 = OpTypePointer Function %__frexp_result_vec4
|
||||
%25 = OpConstantNull %__frexp_result_vec4
|
||||
%26 = OpTypeFunction %v4float
|
||||
%frexp_3c4f48 = OpFunction %void None %9
|
||||
%frexp_77af93 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_0 = OpVariable %_ptr_Function_v4float Function %5
|
||||
%res = OpVariable %_ptr_Function___frexp_result_vec4 Function %25
|
||||
@@ -58,7 +58,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %26
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %void %frexp_3c4f48
|
||||
%29 = OpFunctionCall %void %frexp_77af93
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -70,11 +70,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_3c4f48
|
||||
%35 = OpFunctionCall %void %frexp_77af93
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_3c4f48
|
||||
%38 = OpFunctionCall %void %frexp_77af93
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,20 +1,20 @@
|
||||
fn frexp_3c4f48() {
|
||||
fn frexp_77af93() {
|
||||
var arg_0 = vec4<f32>(1.0f);
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_3c4f48();
|
||||
frexp_77af93();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,24 +21,24 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<3, f32>) -> __frexp_result_vec<3>
|
||||
fn frexp_368997() {
|
||||
// fn frexp(vec<3, f32>) -> __frexp_result_vec<3, f32>
|
||||
fn frexp_979800() {
|
||||
var arg_0 = vec3<f32>(1.f);
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
float3 arg_0 = (1.0f).xxx;
|
||||
frexp_result_vec3 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
float3 arg_0 = (1.0f).xxx;
|
||||
frexp_result_vec3 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
@@ -12,13 +12,13 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
vec3 arg_0 = vec3(1.0f);
|
||||
frexp_result_vec3 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
vec3 arg_0 = vec3(1.0f);
|
||||
frexp_result_vec3 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -72,13 +72,13 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
vec3 arg_0 = vec3(1.0f);
|
||||
frexp_result_vec3 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result_vec3 {
|
||||
int3 exp;
|
||||
};
|
||||
frexp_result_vec3 tint_frexp(float3 param_0) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result_vec3 result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_368997() {
|
||||
void frexp_979800() {
|
||||
float3 arg_0 = float3(1.0f);
|
||||
frexp_result_vec3 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_368997 "frexp_368997"
|
||||
OpName %frexp_979800 "frexp_979800"
|
||||
OpName %arg_0 "arg_0"
|
||||
OpName %__frexp_result_vec3 "__frexp_result_vec3"
|
||||
OpMemberName %__frexp_result_vec3 0 "sig"
|
||||
@@ -48,7 +48,7 @@
|
||||
%_ptr_Function___frexp_result_vec3 = OpTypePointer Function %__frexp_result_vec3
|
||||
%27 = OpConstantNull %__frexp_result_vec3
|
||||
%28 = OpTypeFunction %v4float
|
||||
%frexp_368997 = OpFunction %void None %9
|
||||
%frexp_979800 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_0 = OpVariable %_ptr_Function_v3float Function %18
|
||||
%res = OpVariable %_ptr_Function___frexp_result_vec3 Function %27
|
||||
@@ -60,7 +60,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %28
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %void %frexp_368997
|
||||
%31 = OpFunctionCall %void %frexp_979800
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -72,11 +72,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%36 = OpLabel
|
||||
%37 = OpFunctionCall %void %frexp_368997
|
||||
%37 = OpFunctionCall %void %frexp_979800
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%39 = OpLabel
|
||||
%40 = OpFunctionCall %void %frexp_368997
|
||||
%40 = OpFunctionCall %void %frexp_979800
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,20 +1,20 @@
|
||||
fn frexp_368997() {
|
||||
fn frexp_979800() {
|
||||
var arg_0 = vec3<f32>(1.0f);
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_368997();
|
||||
frexp_979800();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,24 +21,24 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<2, f32>) -> __frexp_result_vec<2>
|
||||
fn frexp_4bdfc7() {
|
||||
// fn frexp(vec<2, f32>) -> __frexp_result_vec<2, f32>
|
||||
fn frexp_eb2421() {
|
||||
var arg_0 = vec2<f32>(1.f);
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec2 tint_frexp(float2 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
float2 arg_0 = (1.0f).xx;
|
||||
frexp_result_vec2 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ frexp_result_vec2 tint_frexp(float2 param_0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
float2 arg_0 = (1.0f).xx;
|
||||
frexp_result_vec2 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -19,7 +19,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
@@ -12,13 +12,13 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
vec2 arg_0 = vec2(1.0f);
|
||||
frexp_result_vec2 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
vec2 arg_0 = vec2(1.0f);
|
||||
frexp_result_vec2 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -72,13 +72,13 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
vec2 arg_0 = vec2(1.0f);
|
||||
frexp_result_vec2 res = tint_frexp(arg_0);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct frexp_result_vec2 {
|
||||
int2 exp;
|
||||
};
|
||||
frexp_result_vec2 tint_frexp(float2 param_0) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
return {sig, exp};
|
||||
frexp_result_vec2 result;
|
||||
result.sig = frexp(param_0, result.exp);
|
||||
return result;
|
||||
}
|
||||
|
||||
void frexp_4bdfc7() {
|
||||
void frexp_eb2421() {
|
||||
float2 arg_0 = float2(1.0f);
|
||||
frexp_result_vec2 res = tint_frexp(arg_0);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %frexp_4bdfc7 "frexp_4bdfc7"
|
||||
OpName %frexp_eb2421 "frexp_eb2421"
|
||||
OpName %arg_0 "arg_0"
|
||||
OpName %__frexp_result_vec2 "__frexp_result_vec2"
|
||||
OpMemberName %__frexp_result_vec2 0 "sig"
|
||||
@@ -48,7 +48,7 @@
|
||||
%_ptr_Function___frexp_result_vec2 = OpTypePointer Function %__frexp_result_vec2
|
||||
%27 = OpConstantNull %__frexp_result_vec2
|
||||
%28 = OpTypeFunction %v4float
|
||||
%frexp_4bdfc7 = OpFunction %void None %9
|
||||
%frexp_eb2421 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_0 = OpVariable %_ptr_Function_v2float Function %18
|
||||
%res = OpVariable %_ptr_Function___frexp_result_vec2 Function %27
|
||||
@@ -60,7 +60,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %28
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %void %frexp_4bdfc7
|
||||
%31 = OpFunctionCall %void %frexp_eb2421
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -72,11 +72,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%36 = OpLabel
|
||||
%37 = OpFunctionCall %void %frexp_4bdfc7
|
||||
%37 = OpFunctionCall %void %frexp_eb2421
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%39 = OpLabel
|
||||
%40 = OpFunctionCall %void %frexp_4bdfc7
|
||||
%40 = OpFunctionCall %void %frexp_eb2421
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,20 +1,20 @@
|
||||
fn frexp_4bdfc7() {
|
||||
fn frexp_eb2421() {
|
||||
var arg_0 = vec2<f32>(1.0f);
|
||||
var res = frexp(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
frexp_4bdfc7();
|
||||
frexp_eb2421();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,24 +21,24 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn modf(vec<2, f32>) -> __modf_result_vec<2>
|
||||
fn modf_f5f20d() {
|
||||
// fn modf(vec<2, f32>) -> __modf_result_vec<2, f32>
|
||||
fn modf_2d50da() {
|
||||
var arg_0 = vec2<f32>(1.f);
|
||||
var res = modf(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec2 {
|
||||
float2 whole;
|
||||
};
|
||||
modf_result_vec2 tint_modf(float2 param_0) {
|
||||
float2 whole;
|
||||
float2 fract = modf(param_0, whole);
|
||||
modf_result_vec2 result = {fract, whole};
|
||||
modf_result_vec2 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
float2 arg_0 = (1.0f).xx;
|
||||
modf_result_vec2 res = tint_modf(arg_0);
|
||||
}
|
||||
@@ -19,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec2 {
|
||||
float2 whole;
|
||||
};
|
||||
modf_result_vec2 tint_modf(float2 param_0) {
|
||||
float2 whole;
|
||||
float2 fract = modf(param_0, whole);
|
||||
modf_result_vec2 result = {fract, whole};
|
||||
modf_result_vec2 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
float2 arg_0 = (1.0f).xx;
|
||||
modf_result_vec2 res = tint_modf(arg_0);
|
||||
}
|
||||
@@ -19,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
@@ -12,13 +12,13 @@ modf_result_vec2 tint_modf(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
vec2 arg_0 = vec2(1.0f);
|
||||
modf_result_vec2 res = tint_modf(arg_0);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ modf_result_vec2 tint_modf(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
vec2 arg_0 = vec2(1.0f);
|
||||
modf_result_vec2 res = tint_modf(arg_0);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -72,13 +72,13 @@ modf_result_vec2 tint_modf(vec2 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
vec2 arg_0 = vec2(1.0f);
|
||||
modf_result_vec2 res = tint_modf(arg_0);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct modf_result_vec2 {
|
||||
float2 whole;
|
||||
};
|
||||
modf_result_vec2 tint_modf(float2 param_0) {
|
||||
float2 whole;
|
||||
float2 fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result_vec2 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_f5f20d() {
|
||||
void modf_2d50da() {
|
||||
float2 arg_0 = float2(1.0f);
|
||||
modf_result_vec2 res = tint_modf(arg_0);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %value "value"
|
||||
OpName %vertex_point_size "vertex_point_size"
|
||||
OpName %modf_f5f20d "modf_f5f20d"
|
||||
OpName %modf_2d50da "modf_2d50da"
|
||||
OpName %arg_0 "arg_0"
|
||||
OpName %__modf_result_vec2 "__modf_result_vec2"
|
||||
OpMemberName %__modf_result_vec2 0 "fract"
|
||||
@@ -46,7 +46,7 @@
|
||||
%_ptr_Function___modf_result_vec2 = OpTypePointer Function %__modf_result_vec2
|
||||
%25 = OpConstantNull %__modf_result_vec2
|
||||
%26 = OpTypeFunction %v4float
|
||||
%modf_f5f20d = OpFunction %void None %9
|
||||
%modf_2d50da = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_0 = OpVariable %_ptr_Function_v2float Function %18
|
||||
%res = OpVariable %_ptr_Function___modf_result_vec2 Function %25
|
||||
@@ -58,7 +58,7 @@
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %26
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %void %modf_f5f20d
|
||||
%29 = OpFunctionCall %void %modf_2d50da
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
@@ -70,11 +70,11 @@
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %modf_f5f20d
|
||||
%35 = OpFunctionCall %void %modf_2d50da
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %modf_f5f20d
|
||||
%38 = OpFunctionCall %void %modf_2d50da
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,20 +1,20 @@
|
||||
fn modf_f5f20d() {
|
||||
fn modf_2d50da() {
|
||||
var arg_0 = vec2<f32>(1.0f);
|
||||
var res = modf(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_f5f20d();
|
||||
modf_2d50da();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2021 The Tint Authors.
|
||||
// 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.
|
||||
@@ -21,24 +21,24 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn modf(vec<4, f32>) -> __modf_result_vec<4>
|
||||
fn modf_ec2dbc() {
|
||||
// fn modf(vec<4, f32>) -> __modf_result_vec<4, f32>
|
||||
fn modf_4bfced() {
|
||||
var arg_0 = vec4<f32>(1.f);
|
||||
var res = modf(arg_0);
|
||||
}
|
||||
|
||||
@vertex
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@fragment
|
||||
fn fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
@compute @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec4 {
|
||||
float4 whole;
|
||||
};
|
||||
modf_result_vec4 tint_modf(float4 param_0) {
|
||||
float4 whole;
|
||||
float4 fract = modf(param_0, whole);
|
||||
modf_result_vec4 result = {fract, whole};
|
||||
modf_result_vec4 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
float4 arg_0 = (1.0f).xxxx;
|
||||
modf_result_vec4 res = tint_modf(arg_0);
|
||||
}
|
||||
@@ -19,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
@@ -3,13 +3,12 @@ struct modf_result_vec4 {
|
||||
float4 whole;
|
||||
};
|
||||
modf_result_vec4 tint_modf(float4 param_0) {
|
||||
float4 whole;
|
||||
float4 fract = modf(param_0, whole);
|
||||
modf_result_vec4 result = {fract, whole};
|
||||
modf_result_vec4 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
float4 arg_0 = (1.0f).xxxx;
|
||||
modf_result_vec4 res = tint_modf(arg_0);
|
||||
}
|
||||
@@ -19,7 +18,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return (0.0f).xxxx;
|
||||
}
|
||||
|
||||
@@ -31,12 +30,12 @@ tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
@@ -12,13 +12,13 @@ modf_result_vec4 tint_modf(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
vec4 arg_0 = vec4(1.0f);
|
||||
modf_result_vec4 res = tint_modf(arg_0);
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return vec4(0.0f);
|
||||
}
|
||||
|
||||
@@ -45,13 +45,13 @@ modf_result_vec4 tint_modf(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
vec4 arg_0 = vec4(1.0f);
|
||||
modf_result_vec4 res = tint_modf(arg_0);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -72,13 +72,13 @@ modf_result_vec4 tint_modf(vec4 param_0) {
|
||||
}
|
||||
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
vec4 arg_0 = vec4(1.0f);
|
||||
modf_result_vec4 res = tint_modf(arg_0);
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
@@ -7,12 +7,12 @@ struct modf_result_vec4 {
|
||||
float4 whole;
|
||||
};
|
||||
modf_result_vec4 tint_modf(float4 param_0) {
|
||||
float4 whole;
|
||||
float4 fract = modf(param_0, whole);
|
||||
return {fract, whole};
|
||||
modf_result_vec4 result;
|
||||
result.fract = modf(param_0, result.whole);
|
||||
return result;
|
||||
}
|
||||
|
||||
void modf_ec2dbc() {
|
||||
void modf_4bfced() {
|
||||
float4 arg_0 = float4(1.0f);
|
||||
modf_result_vec4 res = tint_modf(arg_0);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ struct tint_symbol {
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return float4(0.0f);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ vertex tint_symbol vertex_main() {
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
modf_ec2dbc();
|
||||
modf_4bfced();
|
||||
return;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user