Generic template and forward in stringstream.

This CL updates the templates in the StringStream to match more types.
All of the internal `operator<<` methods have been converted over to
StringStream. The precision was increased in order to better match the
precision needed to read back as a double.

Bug: tint:1686
Change-Id: Iaa15cf247f174967dd1014647ba5a74804997c22
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122080
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair
2023-03-02 21:28:45 +00:00
committed by Dawn LUCI CQ
parent 03de0e83ae
commit 6cc183c85a
1345 changed files with 2569 additions and 2353 deletions

View File

@@ -8,8 +8,8 @@ void original_clusterfuzz_code() {
void more_tests_that_would_fail() {
{
const float a = 1.471127629f;
const float b = 0.099668652f;
const float a = 1.47112762928009033203f;
const float b = 0.09966865181922912598f;
}
{
const float a = 2.5f;

View File

@@ -8,8 +8,8 @@ void original_clusterfuzz_code() {
void more_tests_that_would_fail() {
{
const float a = 1.471127629f;
const float b = 0.099668652f;
const float a = 1.47112762928009033203f;
const float b = 0.09966865181922912598f;
}
{
const float a = 2.5f;

View File

@@ -9,8 +9,8 @@ void original_clusterfuzz_code() {
void more_tests_that_would_fail() {
{
float a = 1.471127629f;
float b = 0.099668652f;
float a = 1.47112762928009033203f;
float b = 0.09966865181922912598f;
}
{
float a = 2.5f;

View File

@@ -6,8 +6,8 @@ void original_clusterfuzz_code() {
void more_tests_that_would_fail() {
{
float const a = 1.471127629f;
float const b = 0.099668652f;
float const a = 1.47112762928009033203f;
float const b = 0.09966865181922912598f;
}
{
float const a = 2.5f;

View File

@@ -1,18 +1,18 @@
fn original_clusterfuzz_code() {
_ = atan2(1, 0.1);
_ = atan2(1, 0.10000000000000000555);
}
fn more_tests_that_would_fail() {
{
let a = atan2(1, 0.1);
let b = atan2(0.1, 1);
let a = atan2(1, 0.10000000000000000555);
let b = atan2(0.10000000000000000555, 1);
}
{
let a = (1 + 1.5);
let b = (1.5 + 1);
}
{
_ = atan2(1, 0.1);
_ = atan2(0.1, 1);
_ = atan2(1, 0.10000000000000000555);
_ = atan2(0.10000000000000000555, 1);
}
}

View File

@@ -6,5 +6,5 @@ void unused_entry_point() {
Texture1D<int4> arg_0 : register(t0, space0);
void d() {
const float l = 0.141120002f;
const float l = 0.14112000167369842529f;
}

View File

@@ -6,5 +6,5 @@ void unused_entry_point() {
Texture1D<int4> arg_0 : register(t0, space0);
void d() {
const float l = 0.141120002f;
const float l = 0.14112000167369842529f;
}

View File

@@ -5,6 +5,6 @@ void unused_entry_point() {
return;
}
void d() {
float l = 0.141120002f;
float l = 0.14112000167369842529f;
}

View File

@@ -2,6 +2,6 @@
using namespace metal;
void d() {
float const l = 0.141120002f;
float const l = 0.14112000167369842529f;
}

View File

@@ -14,7 +14,7 @@ void main_1() {
v = float4(sin(x_33), cos(x_35), exp2(x_37), log(x_39));
const float4 x_42 = v;
const float4 x_44 = asfloat(x_7[0]);
if ((distance(x_42, x_44) < 0.100000001f)) {
if ((distance(x_42, x_44) < 0.10000000149011611938f)) {
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
x_GLF_color = (0.0f).xxxx;

View File

@@ -14,7 +14,7 @@ void main_1() {
v = float4(sin(x_33), cos(x_35), exp2(x_37), log(x_39));
const float4 x_42 = v;
const float4 x_44 = asfloat(x_7[0]);
if ((distance(x_42, x_44) < 0.100000001f)) {
if ((distance(x_42, x_44) < 0.10000000149011611938f)) {
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
x_GLF_color = (0.0f).xxxx;

View File

@@ -22,7 +22,7 @@ void main_1() {
v = vec4(sin(x_33), cos(x_35), exp2(x_37), log(x_39));
vec4 x_42 = v;
vec4 x_44 = x_7.inner.r;
if ((distance(x_42, x_44) < 0.100000001f)) {
if ((distance(x_42, x_44) < 0.10000000149011611938f)) {
x_GLF_color = vec4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
x_GLF_color = vec4(0.0f);

View File

@@ -16,7 +16,7 @@ void main_1(const constant buf0* const tint_symbol_3, thread float4* const tint_
v = float4(sin(x_33), cos(x_35), exp2(x_37), log(x_39));
float4 const x_42 = v;
float4 const x_44 = (*(tint_symbol_3)).r;
if ((distance(x_42, x_44) < 0.100000001f)) {
if ((distance(x_42, x_44) < 0.10000000149011611938f)) {
*(tint_symbol_4) = float4(1.0f, 0.0f, 0.0f, 1.0f);
} else {
*(tint_symbol_4) = float4(0.0f);

View File

@@ -18,7 +18,7 @@ fn main_1() {
v = vec4<f32>(sin(x_33), cos(x_35), exp2(x_37), log(x_39));
let x_42 : vec4<f32> = v;
let x_44 : vec4<f32> = x_7.r;
if ((distance(x_42, x_44) < 0.100000001f)) {
if ((distance(x_42, x_44) < 0.10000000149011611938f)) {
x_GLF_color = vec4<f32>(1.0f, 0.0f, 0.0f, 1.0f);
} else {
x_GLF_color = vec4<f32>(0.0f, 0.0f, 0.0f, 0.0f);

View File

@@ -34,7 +34,7 @@ void main_inner(uint3 GlobalInvocationID) {
if ((index >= config[0].x)) {
return;
}
lightsBuffer.Store(((32u * index) + 4u), asuint(((asfloat(lightsBuffer.Load(((32u * index) + 4u))) - 0.100000001f) + (0.001f * (float(index) - (64.0f * floor((float(index) / 64.0f))))))));
lightsBuffer.Store(((32u * index) + 4u), asuint(((asfloat(lightsBuffer.Load(((32u * index) + 4u))) - 0.10000000149011611938f) + (0.00100000004749745131f * (float(index) - (64.0f * floor((float(index) / 64.0f))))))));
if ((asfloat(lightsBuffer.Load(((32u * index) + 4u))) < asfloat(uniforms[0].y))) {
lightsBuffer.Store(((32u * index) + 4u), asuint(asfloat(uniforms[1].y)));
}

View File

@@ -34,7 +34,7 @@ void main_inner(uint3 GlobalInvocationID) {
if ((index >= config[0].x)) {
return;
}
lightsBuffer.Store(((32u * index) + 4u), asuint(((asfloat(lightsBuffer.Load(((32u * index) + 4u))) - 0.100000001f) + (0.001f * (float(index) - (64.0f * floor((float(index) / 64.0f))))))));
lightsBuffer.Store(((32u * index) + 4u), asuint(((asfloat(lightsBuffer.Load(((32u * index) + 4u))) - 0.10000000149011611938f) + (0.00100000004749745131f * (float(index) - (64.0f * floor((float(index) / 64.0f))))))));
if ((asfloat(lightsBuffer.Load(((32u * index) + 4u))) < asfloat(uniforms[0].y))) {
lightsBuffer.Store(((32u * index) + 4u), asuint(asfloat(uniforms[1].y)));
}

View File

@@ -55,7 +55,7 @@ void tint_symbol_2(uvec3 GlobalInvocationID) {
if ((index >= config.inner.numLights)) {
return;
}
lightsBuffer.lights[index].position.y = ((lightsBuffer.lights[index].position.y - 0.100000001f) + (0.001f * (float(index) - (64.0f * floor((float(index) / 64.0f))))));
lightsBuffer.lights[index].position.y = ((lightsBuffer.lights[index].position.y - 0.10000000149011611938f) + (0.00100000004749745131f * (float(index) - (64.0f * floor((float(index) / 64.0f))))));
if ((lightsBuffer.lights[index].position.y < uniforms.inner.tint_symbol.y)) {
lightsBuffer.lights[index].position.y = uniforms.inner.tint_symbol_1.y;
}

View File

@@ -65,7 +65,7 @@ void tint_symbol_inner(uint3 GlobalInvocationID, const constant Config* const ti
if ((index >= (*(tint_symbol_1)).numLights)) {
return;
}
(*(tint_symbol_2)).lights[index].position[1] = (((*(tint_symbol_2)).lights[index].position[1] - 0.100000001f) + (0.001f * (float(index) - (64.0f * floor((float(index) / 64.0f))))));
(*(tint_symbol_2)).lights[index].position[1] = (((*(tint_symbol_2)).lights[index].position[1] - 0.10000000149011611938f) + (0.00100000004749745131f * (float(index) - (64.0f * floor((float(index) / 64.0f))))));
if (((*(tint_symbol_2)).lights[index].position[1] < (*(tint_symbol_3)).min[1])) {
(*(tint_symbol_2)).lights[index].position[1] = (*(tint_symbol_3)).max[1];
}

View File

@@ -48,7 +48,7 @@ fn main(@builtin(global_invocation_id) GlobalInvocationID : vec3<u32>) {
if ((index >= config.numLights)) {
return;
}
lightsBuffer.lights[index].position.y = ((lightsBuffer.lights[index].position.y - 0.1) + (0.001 * (f32(index) - (64.0 * floor((f32(index) / 64.0))))));
lightsBuffer.lights[index].position.y = ((lightsBuffer.lights[index].position.y - 0.10000000000000000555) + (0.00100000000000000002 * (f32(index) - (64.0 * floor((f32(index) / 64.0))))));
if ((lightsBuffer.lights[index].position.y < uniforms.min.y)) {
lightsBuffer.lights[index].position.y = uniforms.max.y;
}

View File

@@ -1,5 +1,5 @@
@compute @workgroup_size(1)
fn compute_main() {
let a = 1.23;
let a = 1.24;
var b = max(a, 1.17549435e-38);
}

View File

@@ -1,6 +1,6 @@
[numthreads(1, 1, 1)]
void compute_main() {
const float a = 1.230000019f;
const float a = 1.24000000953674316406f;
float b = max(a, 1.17549435e-38f);
return;
}

View File

@@ -1,6 +1,6 @@
[numthreads(1, 1, 1)]
void compute_main() {
const float a = 1.230000019f;
const float a = 1.24000000953674316406f;
float b = max(a, 1.17549435e-38f);
return;
}

View File

@@ -1,7 +1,7 @@
#version 310 es
void compute_main() {
float a = 1.230000019f;
float a = 1.24000000953674316406f;
float b = max(a, 1.17549435e-38f);
}

View File

@@ -2,7 +2,7 @@
using namespace metal;
kernel void compute_main() {
float const a = 1.230000019f;
float const a = 1.24000000953674316406f;
float b = fmax(a, 1.17549435e-38f);
return;
}

View File

@@ -13,14 +13,14 @@
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%float_1_23000002 = OpConstant %float 1.23000002
%float_1_24000001 = OpConstant %float 1.24000001
%float_1_17549435en38 = OpConstant %float 1.17549435e-38
%_ptr_Function_float = OpTypePointer Function %float
%12 = OpConstantNull %float
%compute_main = OpFunction %void None %1
%4 = OpLabel
%b = OpVariable %_ptr_Function_float Function %12
%7 = OpExtInst %float %8 NMax %float_1_23000002 %float_1_17549435en38
%7 = OpExtInst %float %8 NMax %float_1_24000001 %float_1_17549435en38
OpStore %b %7
OpReturn
OpFunctionEnd

View File

@@ -1,5 +1,5 @@
@compute @workgroup_size(1)
fn compute_main() {
let a = 1.23;
let a = 1.23999999999999999112;
var b = max(a, 1.17549435e-38);
}

View File

@@ -3,7 +3,7 @@ struct tint_symbol {
};
float4 main_inner() {
float3 light = float3(1.200000048f, 1.0f, 2.0f);
float3 light = float3(1.20000004768371582031f, 1.0f, 2.0f);
float3 negative_light = -(light);
return (0.0f).xxxx;
}

View File

@@ -3,7 +3,7 @@ struct tint_symbol {
};
float4 main_inner() {
float3 light = float3(1.200000048f, 1.0f, 2.0f);
float3 light = float3(1.20000004768371582031f, 1.0f, 2.0f);
float3 negative_light = -(light);
return (0.0f).xxxx;
}

View File

@@ -1,7 +1,7 @@
#version 310 es
vec4 tint_symbol() {
vec3 light = vec3(1.200000048f, 1.0f, 2.0f);
vec3 light = vec3(1.20000004768371582031f, 1.0f, 2.0f);
vec3 negative_light = -(light);
return vec4(0.0f);
}

View File

@@ -6,7 +6,7 @@ struct tint_symbol_1 {
};
float4 tint_symbol_inner() {
float3 light = float3(1.200000048f, 1.0f, 2.0f);
float3 light = float3(1.20000004768371582031f, 1.0f, 2.0f);
float3 negative_light = -(light);
return float4(0.0f);
}

View File

@@ -1,6 +1,6 @@
@vertex
fn main() -> @builtin(position) vec4<f32> {
var light : vec3<f32> = vec3<f32>(1.2, 1.0, 2.0);
var light : vec3<f32> = vec3<f32>(1.19999999999999995559, 1.0, 2.0);
var negative_light : vec3<f32> = -(light);
return vec4<f32>();
}

View File

@@ -12,7 +12,7 @@ struct tint_symbol_2 {
};
Output main_inner(uint VertexIndex, uint InstanceIndex) {
const float2 zv[4] = {(0.200000003f).xx, (0.300000012f).xx, (-0.100000001f).xx, (1.100000024f).xx};
const float2 zv[4] = {(0.20000000298023223877f).xx, (0.30000001192092895508f).xx, (-0.10000000149011611938f).xx, (1.10000002384185791016f).xx};
const float z = zv[InstanceIndex].x;
Output output = (Output)0;
output.Position = float4(0.5f, 0.5f, z, 1.0f);

View File

@@ -12,7 +12,7 @@ struct tint_symbol_2 {
};
Output main_inner(uint VertexIndex, uint InstanceIndex) {
const float2 zv[4] = {(0.200000003f).xx, (0.300000012f).xx, (-0.100000001f).xx, (1.100000024f).xx};
const float2 zv[4] = {(0.20000000298023223877f).xx, (0.30000001192092895508f).xx, (-0.10000000149011611938f).xx, (1.10000002384185791016f).xx};
const float z = zv[InstanceIndex].x;
Output output = (Output)0;
output.Position = float4(0.5f, 0.5f, z, 1.0f);

View File

@@ -7,7 +7,7 @@ struct Output {
};
Output tint_symbol(uint VertexIndex, uint InstanceIndex) {
vec2 zv[4] = vec2[4](vec2(0.200000003f), vec2(0.300000012f), vec2(-0.100000001f), vec2(1.100000024f));
vec2 zv[4] = vec2[4](vec2(0.20000000298023223877f), vec2(0.30000001192092895508f), vec2(-0.10000000149011611938f), vec2(1.10000002384185791016f));
float z = zv[InstanceIndex].x;
Output tint_symbol_1 = Output(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol_1.Position = vec4(0.5f, 0.5f, z, 1.0f);

View File

@@ -25,7 +25,7 @@ struct tint_symbol_1 {
};
Output tint_symbol_inner(uint VertexIndex, uint InstanceIndex) {
tint_array<float2, 4> const zv = tint_array<float2, 4>{float2(0.200000003f), float2(0.300000012f), float2(-0.100000001f), float2(1.100000024f)};
tint_array<float2, 4> const zv = tint_array<float2, 4>{float2(0.20000000298023223877f), float2(0.30000001192092895508f), float2(-0.10000000149011611938f), float2(1.10000002384185791016f)};
float const z = zv[InstanceIndex][0];
Output output = {};
output.Position = float4(0.5f, 0.5f, z, 1.0f);

View File

@@ -7,7 +7,7 @@ struct Output {
@vertex
fn main(@builtin(vertex_index) VertexIndex : u32, @builtin(instance_index) InstanceIndex : u32) -> Output {
let zv : array<vec2<f32>, 4> = array<vec2<f32>, 4>(vec2<f32>(0.2, 0.2), vec2<f32>(0.3, 0.3), vec2<f32>(-(0.1), -(0.1)), vec2<f32>(1.1, 1.1));
let zv : array<vec2<f32>, 4> = array<vec2<f32>, 4>(vec2<f32>(0.2000000000000000111, 0.2000000000000000111), vec2<f32>(0.2999999999999999889, 0.2999999999999999889), vec2<f32>(-(0.10000000000000000555), -(0.10000000000000000555)), vec2<f32>(1.10000000000000008882, 1.10000000000000008882));
let z : f32 = zv[InstanceIndex].x;
var output : Output;
output.Position = vec4<f32>(0.5, 0.5, z, 1.0);

View File

@@ -6,7 +6,7 @@ cbuffer cbuffer_uniforms : register(b3, space0) {
};
bool aboutEqual(float value, float expect) {
return (abs((value - expect)) < 0.001f);
return (abs((value - expect)) < 0.00100000004749745131f);
}
struct tint_symbol_8 {

View File

@@ -6,7 +6,7 @@ cbuffer cbuffer_uniforms : register(b3, space0) {
};
bool aboutEqual(float value, float expect) {
return (abs((value - expect)) < 0.001f);
return (abs((value - expect)) < 0.00100000004749745131f);
}
struct tint_symbol_8 {

View File

@@ -17,7 +17,7 @@ layout(binding = 3, std140) uniform uniforms_block_ubo {
} uniforms;
bool aboutEqual(float value, float expect) {
return (abs((value - expect)) < 0.001f);
return (abs((value - expect)) < 0.00100000004749745131f);
}
uniform highp sampler2D src_1;

View File

@@ -27,7 +27,7 @@ struct OutputBuf {
};
bool aboutEqual(float value, float expect) {
return (fabs((value - expect)) < 0.001f);
return (fabs((value - expect)) < 0.00100000004749745131f);
}
void tint_symbol_inner(uint3 GlobalInvocationID, texture2d<float, access::sample> tint_symbol_7, texture2d<float, access::sample> tint_symbol_8, const constant Uniforms* const tint_symbol_9, device OutputBuf* const tint_symbol_10) {

View File

@@ -19,7 +19,7 @@ struct OutputBuf {
@group(0) @binding(3) var<uniform> uniforms : Uniforms;
fn aboutEqual(value : f32, expect : f32) -> bool {
return (abs((value - expect)) < 0.001);
return (abs((value - expect)) < 0.00100000000000000002);
}
@compute @workgroup_size(1, 1, 1)

View File

@@ -1,5 +1,5 @@
float tint_degrees(float param_0) {
return param_0 * 57.295779513082323;
return param_0 * 57.29577951308232286465;
}
void main_1() {

View File

@@ -1,5 +1,5 @@
float tint_degrees(float param_0) {
return param_0 * 57.295779513082323;
return param_0 * 57.29577951308232286465;
}
void main_1() {

View File

@@ -1,7 +1,7 @@
#version 310 es
float tint_degrees(float param_0) {
return param_0 * 57.295779513082323f;
return param_0 * 57.29577951308232286465f;
}

View File

@@ -3,7 +3,7 @@
using namespace metal;
float tint_degrees(float param_0) {
return param_0 * 57.295779513082323;
return param_0 * 57.29577951308232286465;
}
void main_1() {

View File

@@ -4,7 +4,7 @@ struct frexp_result_f32 {
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result_f32 res = {0.61500001f, 1};
const frexp_result_f32 res = {0.61500000953674316406f, 1};
const int exp = res.exp;
const float fract = res.fract;
return;

View File

@@ -4,7 +4,7 @@ struct frexp_result_f32 {
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result_f32 res = {0.61500001f, 1};
const frexp_result_f32 res = {0.61500000953674316406f, 1};
const int exp = res.exp;
const float fract = res.fract;
return;

View File

@@ -7,7 +7,7 @@ struct frexp_result_f32 {
void tint_symbol() {
frexp_result_f32 res = frexp_result_f32(0.61500001f, 1);
frexp_result_f32 res = frexp_result_f32(0.61500000953674316406f, 1);
int tint_symbol_1 = res.exp;
float tint_symbol_2 = res.fract;
}

View File

@@ -7,7 +7,7 @@ struct frexp_result_f32 {
int exp;
};
kernel void tint_symbol() {
frexp_result_f32 const res = frexp_result_f32{.fract=0.61500001f, .exp=1};
frexp_result_f32 const res = frexp_result_f32{.fract=0.61500000953674316406f, .exp=1};
int const exp = res.exp;
float const fract = res.fract;
return;

View File

@@ -1,6 +1,6 @@
@compute @workgroup_size(1)
fn main() {
let res = frexp(1.23);
let res = frexp(1.22999999999999998224);
let exp : i32 = res.exp;
let fract : f32 = res.fract;
}

View File

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

View File

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

View File

@@ -2,7 +2,7 @@
using namespace metal;
void acos_004aff() {
half2 res = half2(0.250488281h);
half2 res = half2(0.25048828125h);
}
struct tint_symbol {

View File

@@ -1,5 +1,5 @@
fn acos_069188() {
var res = acos(vec3(0.96891242171000003));
var res = acos(vec3(0.96891242171000002692));
}
@vertex

View File

@@ -1,5 +1,5 @@
fn acos_15d35b() {
var res = acos(vec2(0.96891242171000003));
var res = acos(vec2(0.96891242171000002692));
}
@vertex

View File

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

View File

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

View File

@@ -2,7 +2,7 @@
using namespace metal;
void acos_203628() {
half4 res = half4(0.250488281h);
half4 res = half4(0.25048828125h);
}
struct tint_symbol {

View File

@@ -1,5 +1,5 @@
void acos_303e3d() {
float16_t res = float16_t(0.250488281h);
float16_t res = float16_t(0.25048828125h);
}
struct tint_symbol {

View File

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

View File

@@ -2,7 +2,7 @@
using namespace metal;
void acos_303e3d() {
half res = 0.250488281h;
half res = 0.25048828125h;
}
struct tint_symbol {

View File

@@ -1,5 +1,5 @@
fn acos_489247() {
var res : f32 = acos(0.968912423f);
var res : f32 = acos(0.96891242265701293945f);
}
@vertex

View File

@@ -1,5 +1,5 @@
fn acos_4dac75() {
var res = acos(vec4(0.96891242171000003));
var res = acos(vec4(0.96891242171000002692));
}
@vertex

View File

@@ -1,5 +1,5 @@
fn acos_5e9ad2() {
var res = acos(0.96891242171000003);
var res = acos(0.96891242171000002692);
}
@vertex

View File

@@ -1,5 +1,5 @@
fn acos_8e2acf() {
var res : vec4<f32> = acos(vec4<f32>(0.968912423f));
var res : vec4<f32> = acos(vec4<f32>(0.96891242265701293945f));
}
@vertex

View File

@@ -1,5 +1,5 @@
fn acos_a610c4() {
var res : vec3<f32> = acos(vec3<f32>(0.968912423f));
var res : vec3<f32> = acos(vec3<f32>(0.96891242265701293945f));
}
@vertex

View File

@@ -1,5 +1,5 @@
fn acos_dfc915() {
var res : vec2<f32> = acos(vec2<f32>(0.968912423f));
var res : vec2<f32> = acos(vec2<f32>(0.96891242265701293945f));
}
@vertex

View File

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

View File

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

View File

@@ -2,7 +2,7 @@
using namespace metal;
void acos_f47057() {
half3 res = half3(0.250488281h);
half3 res = half3(0.25048828125h);
}
struct tint_symbol {

View File

@@ -23,7 +23,7 @@
// fn acosh(vec<2, fa>) -> vec<2, fa>
fn acosh_17260e() {
var res = acosh(vec2(2.));
var res = acosh(vec2(1.5430806348));
}
@vertex

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@@ -31,12 +31,11 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%float_1_31695795 = OpConstant %float 1.31695795
%15 = OpConstantComposite %v2float %float_1_31695795 %float_1_31695795
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v2float %float_1 %float_1
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%acosh_17260e = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %18
@@ -56,12 +55,12 @@
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %acosh_17260e
%27 = OpLabel
%28 = OpFunctionCall %void %acosh_17260e
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%31 = OpLabel
%32 = OpFunctionCall %void %acosh_17260e
%30 = OpLabel
%31 = OpFunctionCall %void %acosh_17260e
OpReturn
OpFunctionEnd

View File

@@ -1,5 +1,5 @@
fn acosh_17260e() {
var res = acosh(vec2(2.0));
var res = acosh(vec2(1.54308063479999990619));
}
@vertex

View File

@@ -23,7 +23,7 @@
// fn acosh(fa) -> fa
fn acosh_3433e8() {
var res = acosh(2.);
var res = acosh(1.5430806348);
}
@vertex

View File

@@ -1,5 +1,5 @@
void acosh_3433e8() {
float res = 1.316957951f;
float res = 1.0f;
}
struct tint_symbol {

View File

@@ -1,5 +1,5 @@
void acosh_3433e8() {
float res = 1.316957951f;
float res = 1.0f;
}
struct tint_symbol {

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 30
; Bound: 29
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@@ -30,14 +30,13 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_31695795 = OpConstant %float 1.31695795
%float_1 = OpConstant %float 1
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%acosh_3433e8 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1_31695795
OpStore %res %float_1
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %16
@@ -53,12 +52,12 @@
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %void %acosh_3433e8
%24 = OpLabel
%25 = OpFunctionCall %void %acosh_3433e8
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %acosh_3433e8
%27 = OpLabel
%28 = OpFunctionCall %void %acosh_3433e8
OpReturn
OpFunctionEnd

View File

@@ -1,5 +1,5 @@
fn acosh_3433e8() {
var res = acosh(2.0);
var res = acosh(1.54308063479999990619);
}
@vertex

View File

@@ -23,7 +23,7 @@
// fn acosh(vec<4, fa>) -> vec<4, fa>
fn acosh_490aae() {
var res = acosh(vec4(2.));
var res = acosh(vec4(1.5430806348));
}
@vertex

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Bound: 30
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@@ -30,11 +30,10 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float_1_31695795 = OpConstant %float 1.31695795
%14 = OpConstantComposite %v4float %float_1_31695795 %float_1_31695795 %float_1_31695795 %float_1_31695795
%float_1 = OpConstant %float 1
%14 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%acosh_490aae = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4float Function %5
@@ -54,12 +53,12 @@
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%26 = OpLabel
%27 = OpFunctionCall %void %acosh_490aae
%25 = OpLabel
%26 = OpFunctionCall %void %acosh_490aae
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %acosh_490aae
%28 = OpLabel
%29 = OpFunctionCall %void %acosh_490aae
OpReturn
OpFunctionEnd

View File

@@ -1,5 +1,5 @@
fn acosh_490aae() {
var res = acosh(vec4(2.0));
var res = acosh(vec4(1.54308063479999990619));
}
@vertex

View File

@@ -25,7 +25,7 @@ enable f16;
// fn acosh(vec<2, f16>) -> vec<2, f16>
fn acosh_5f49d8() {
var res: vec2<f16> = acosh(vec2<f16>(2.h));
var res: vec2<f16> = acosh(vec2<f16>(1.5430806348h));
}
@vertex

View File

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

View File

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

View File

@@ -2,7 +2,7 @@
using namespace metal;
void acosh_5f49d8() {
half2 res = half2(1.31640625h);
half2 res = half2(0.99951171875h);
}
struct tint_symbol {

View File

@@ -36,8 +36,8 @@
%9 = OpTypeFunction %void
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%half_0x1_51p_0 = OpConstant %half 0x1.51p+0
%16 = OpConstantComposite %v2half %half_0x1_51p_0 %half_0x1_51p_0
%half_0x1_ffcpn1 = OpConstant %half 0x1.ffcp-1
%16 = OpConstantComposite %v2half %half_0x1_ffcpn1 %half_0x1_ffcpn1
%_ptr_Function_v2half = OpTypePointer Function %v2half
%19 = OpConstantNull %v2half
%20 = OpTypeFunction %v4float

View File

@@ -1,7 +1,7 @@
enable f16;
fn acosh_5f49d8() {
var res : vec2<f16> = acosh(vec2<f16>(2.0h));
var res : vec2<f16> = acosh(vec2<f16>(1.54296875h));
}
@vertex

View File

@@ -23,7 +23,7 @@
// fn acosh(vec<2, f32>) -> vec<2, f32>
fn acosh_640883() {
var res: vec2<f32> = acosh(vec2<f32>(2.f));
var res: vec2<f32> = acosh(vec2<f32>(1.5430806348f));
}
@vertex

View File

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

View File

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

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