tint: Suffix builtin return types with '_f32'

If the template type is f32.

See: https://github.com/gpuweb/gpuweb/pull/3629
Change-Id: Ia686d77b4dbc169d7ef69a91d67e45357bee199f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111442
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2022-11-23 19:57:00 +00:00 committed by Dawn LUCI CQ
parent 05c8daac42
commit ed998e91ab
251 changed files with 1243 additions and 1243 deletions

View File

@ -832,7 +832,7 @@ sem::Struct* build_struct(ProgramBuilder& b,
const sem::Struct* build_modf_result(MatchState& state, const sem::Type* el) {
auto build_f32 = [&] {
auto* ty = state.builder.create<sem::F32>();
return build_struct(state.builder, "__modf_result", {{"fract", ty}, {"whole", ty}});
return build_struct(state.builder, "__modf_result_f32", {{"fract", ty}, {"whole", ty}});
};
auto build_f16 = [&] {
auto* ty = state.builder.create<sem::F16>();
@ -860,7 +860,7 @@ const sem::Struct* build_modf_result_vec(MatchState& state, Number& n, const sem
auto prefix = "__modf_result_vec" + std::to_string(n.Value());
auto build_f32 = [&] {
auto* vec = state.builder.create<sem::Vector>(state.builder.create<sem::F32>(), n.Value());
return build_struct(state.builder, prefix, {{"fract", vec}, {"whole", vec}});
return build_struct(state.builder, prefix + "_f32", {{"fract", vec}, {"whole", vec}});
};
auto build_f16 = [&] {
auto* vec = state.builder.create<sem::Vector>(state.builder.create<sem::F16>(), n.Value());
@ -889,7 +889,7 @@ const sem::Struct* build_frexp_result(MatchState& state, const sem::Type* el) {
auto build_f32 = [&] {
auto* f = state.builder.create<sem::F32>();
auto* i = state.builder.create<sem::I32>();
return build_struct(state.builder, "__frexp_result", {{"fract", f}, {"exp", i}});
return build_struct(state.builder, "__frexp_result_f32", {{"fract", f}, {"exp", i}});
};
auto build_f16 = [&] {
auto* f = state.builder.create<sem::F16>();
@ -920,7 +920,7 @@ const sem::Struct* build_frexp_result_vec(MatchState& state, Number& n, const se
auto build_f32 = [&] {
auto* f = state.builder.create<sem::Vector>(state.builder.create<sem::F32>(), n.Value());
auto* e = state.builder.create<sem::Vector>(state.builder.create<sem::I32>(), n.Value());
return build_struct(state.builder, prefix, {{"fract", f}, {"exp", e}});
return build_struct(state.builder, prefix + "_f32", {{"fract", f}, {"exp", e}});
};
auto build_f16 = [&] {
auto* f = state.builder.create<sem::Vector>(state.builder.create<sem::F16>(), n.Value());

View File

@ -425,13 +425,13 @@ TEST_F(GlslGeneratorImplTest_Builtin, Runtime_Modf_Scalar_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct modf_result {
struct modf_result_f32 {
float fract;
float whole;
};
modf_result tint_modf(float param_0) {
modf_result result;
modf_result_f32 tint_modf(float param_0) {
modf_result_f32 result;
result.fract = modf(param_0, result.whole);
return result;
}
@ -439,7 +439,7 @@ modf_result tint_modf(float param_0) {
void test_function() {
float f = 1.5f;
modf_result v = tint_modf(f);
modf_result_f32 v = tint_modf(f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -496,13 +496,13 @@ TEST_F(GlslGeneratorImplTest_Builtin, Runtime_Modf_Vector_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct modf_result_vec3 {
struct modf_result_vec3_f32 {
vec3 fract;
vec3 whole;
};
modf_result_vec3 tint_modf(vec3 param_0) {
modf_result_vec3 result;
modf_result_vec3_f32 tint_modf(vec3 param_0) {
modf_result_vec3_f32 result;
result.fract = modf(param_0, result.whole);
return result;
}
@ -510,7 +510,7 @@ modf_result_vec3 tint_modf(vec3 param_0) {
void test_function() {
vec3 f = vec3(1.5f, 2.5f, 3.5f);
modf_result_vec3 v = tint_modf(f);
modf_result_vec3_f32 v = tint_modf(f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -566,14 +566,14 @@ TEST_F(GlslGeneratorImplTest_Builtin, Const_Modf_Scalar_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct modf_result {
struct modf_result_f32 {
float fract;
float whole;
};
void test_function() {
modf_result v = modf_result(0.5f, 1.0f);
modf_result_f32 v = modf_result_f32(0.5f, 1.0f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -621,14 +621,14 @@ TEST_F(GlslGeneratorImplTest_Builtin, Const_Modf_Vector_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct modf_result_vec3 {
struct modf_result_vec3_f32 {
vec3 fract;
vec3 whole;
};
void test_function() {
modf_result_vec3 v = modf_result_vec3(vec3(0.5f), vec3(1.0f, 2.0f, 3.0f));
modf_result_vec3_f32 v = modf_result_vec3_f32(vec3(0.5f), vec3(1.0f, 2.0f, 3.0f));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -677,13 +677,13 @@ TEST_F(GlslGeneratorImplTest_Builtin, Runtime_Frexp_Scalar_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
frexp_result_f32 tint_frexp(float param_0) {
frexp_result_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
@ -691,7 +691,7 @@ frexp_result tint_frexp(float param_0) {
void test_function() {
float f = 1.0f;
frexp_result v = tint_frexp(f);
frexp_result_f32 v = tint_frexp(f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -748,13 +748,13 @@ TEST_F(GlslGeneratorImplTest_Builtin, Runtime_Frexp_Vector_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
frexp_result_vec3 tint_frexp(vec3 param_0) {
frexp_result_vec3 result;
frexp_result_vec3_f32 tint_frexp(vec3 param_0) {
frexp_result_vec3_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
@ -762,7 +762,7 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
void test_function() {
vec3 f = vec3(0.0f);
frexp_result_vec3 v = tint_frexp(f);
frexp_result_vec3_f32 v = tint_frexp(f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -818,14 +818,14 @@ TEST_F(GlslGeneratorImplTest_Builtin, Const_Frexp_Scalar_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void test_function() {
frexp_result v = frexp_result(0.5f, 1);
frexp_result_f32 v = frexp_result_f32(0.5f, 1);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -873,14 +873,14 @@ TEST_F(GlslGeneratorImplTest_Builtin, Const_Frexp_Vector_f32) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void test_function() {
frexp_result_vec3 v = frexp_result_vec3(vec3(0.0f), ivec3(0));
frexp_result_vec3_f32 v = frexp_result_vec3_f32(vec3(0.0f), ivec3(0));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

View File

@ -388,12 +388,12 @@ TEST_F(HlslGeneratorImplTest_Builtin, Runtime_Modf_Scalar_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct modf_result {
EXPECT_EQ(gen.result(), R"(struct modf_result_f32 {
float fract;
float whole;
};
modf_result tint_modf(float param_0) {
modf_result result;
modf_result_f32 tint_modf(float param_0) {
modf_result_f32 result;
result.fract = modf(param_0, result.whole);
return result;
}
@ -401,7 +401,7 @@ modf_result tint_modf(float param_0) {
[numthreads(1, 1, 1)]
void test_function() {
const float f = 1.5f;
const modf_result v = tint_modf(f);
const modf_result_f32 v = tint_modf(f);
return;
}
)");
@ -442,12 +442,12 @@ TEST_F(HlslGeneratorImplTest_Builtin, Runtime_Modf_Vector_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct modf_result_vec3 {
EXPECT_EQ(gen.result(), R"(struct modf_result_vec3_f32 {
float3 fract;
float3 whole;
};
modf_result_vec3 tint_modf(float3 param_0) {
modf_result_vec3 result;
modf_result_vec3_f32 tint_modf(float3 param_0) {
modf_result_vec3_f32 result;
result.fract = modf(param_0, result.whole);
return result;
}
@ -455,7 +455,7 @@ modf_result_vec3 tint_modf(float3 param_0) {
[numthreads(1, 1, 1)]
void test_function() {
const float3 f = float3(1.5f, 2.5f, 3.5f);
const modf_result_vec3 v = tint_modf(f);
const modf_result_vec3_f32 v = tint_modf(f);
return;
}
)");
@ -495,13 +495,13 @@ TEST_F(HlslGeneratorImplTest_Builtin, Const_Modf_Scalar_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct modf_result {
EXPECT_EQ(gen.result(), R"(struct modf_result_f32 {
float fract;
float whole;
};
[numthreads(1, 1, 1)]
void test_function() {
const modf_result v = {0.5f, 1.0f};
const modf_result_f32 v = {0.5f, 1.0f};
return;
}
)");
@ -533,13 +533,13 @@ TEST_F(HlslGeneratorImplTest_Builtin, Const_Modf_Vector_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct modf_result_vec3 {
EXPECT_EQ(gen.result(), R"(struct modf_result_vec3_f32 {
float3 fract;
float3 whole;
};
[numthreads(1, 1, 1)]
void test_function() {
const modf_result_vec3 v = {(0.5f).xxx, float3(1.0f, 2.0f, 3.0f)};
const modf_result_vec3_f32 v = {(0.5f).xxx, float3(1.0f, 2.0f, 3.0f)};
return;
}
)");
@ -577,14 +577,14 @@ TEST_F(HlslGeneratorImplTest_Builtin, NonInitializer_Modf_Vector_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct modf_result_vec3 {
EXPECT_EQ(gen.result(), R"(struct modf_result_vec3_f32 {
float3 fract;
float3 whole;
};
[numthreads(1, 1, 1)]
void test_function() {
modf_result_vec3 v = {(0.5f).xxx, float3(1.0f, 2.0f, 3.0f)};
const modf_result_vec3 c = {(0.5f).xxx, float3(4.0f, 5.0f, 6.0f)};
modf_result_vec3_f32 v = {(0.5f).xxx, float3(1.0f, 2.0f, 3.0f)};
const modf_result_vec3_f32 c = {(0.5f).xxx, float3(4.0f, 5.0f, 6.0f)};
v = c;
return;
}
@ -598,21 +598,21 @@ TEST_F(HlslGeneratorImplTest_Builtin, Runtime_Frexp_Scalar_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct frexp_result {
EXPECT_EQ(gen.result(), R"(struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result_f32 tint_frexp(float param_0) {
float exp;
float fract = frexp(param_0, exp);
frexp_result result = {fract, int(exp)};
frexp_result_f32 result = {fract, int(exp)};
return result;
}
[numthreads(1, 1, 1)]
void test_function() {
float f = 1.0f;
frexp_result v = tint_frexp(f);
frexp_result_f32 v = tint_frexp(f);
return;
}
)");
@ -654,21 +654,21 @@ TEST_F(HlslGeneratorImplTest_Builtin, Runtime_Frexp_Vector_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct frexp_result_vec3 {
EXPECT_EQ(gen.result(), R"(struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
frexp_result_vec3 tint_frexp(float3 param_0) {
frexp_result_vec3_f32 tint_frexp(float3 param_0) {
float3 exp;
float3 fract = frexp(param_0, exp);
frexp_result_vec3 result = {fract, int3(exp)};
frexp_result_vec3_f32 result = {fract, int3(exp)};
return result;
}
[numthreads(1, 1, 1)]
void test_function() {
float3 f = (0.0f).xxx;
frexp_result_vec3 v = tint_frexp(f);
frexp_result_vec3_f32 v = tint_frexp(f);
return;
}
)");
@ -709,13 +709,13 @@ TEST_F(HlslGeneratorImplTest_Builtin, Const_Frexp_Scalar_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct frexp_result {
EXPECT_EQ(gen.result(), R"(struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void test_function() {
const frexp_result v = {0.5f, 1};
const frexp_result_f32 v = {0.5f, 1};
return;
}
)");
@ -747,13 +747,13 @@ TEST_F(HlslGeneratorImplTest_Builtin, Const_Frexp_Vector_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct frexp_result_vec3 {
EXPECT_EQ(gen.result(), R"(struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
[numthreads(1, 1, 1)]
void test_function() {
const frexp_result_vec3 v = (frexp_result_vec3)0;
const frexp_result_vec3_f32 v = (frexp_result_vec3_f32)0;
return;
}
)");
@ -791,14 +791,14 @@ TEST_F(HlslGeneratorImplTest_Builtin, NonInitializer_Frexp_Vector_f32) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct frexp_result_vec3 {
EXPECT_EQ(gen.result(), R"(struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
[numthreads(1, 1, 1)]
void test_function() {
frexp_result_vec3 v = {float3(0.75f, 0.625f, 0.875f), int3(1, 2, 2)};
const frexp_result_vec3 c = {float3(0.5625f, 0.6875f, 0.8125f), (3).xxx};
frexp_result_vec3_f32 v = {float3(0.75f, 0.625f, 0.875f), int3(1, 2, 2)};
const frexp_result_vec3_f32 c = {float3(0.5625f, 0.6875f, 0.8125f), (3).xxx};
v = c;
return;
}
@ -813,13 +813,13 @@ TEST_F(HlslGeneratorImplTest_Builtin, Frexp_Sig_Deprecation) {
GeneratorImpl& gen = SanitizeAndBuild();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(struct frexp_result {
EXPECT_EQ(gen.result(), R"(struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void test_function() {
frexp_result v = {0.5f, 1};
frexp_result_f32 v = {0.5f, 1};
const float tint_symbol = v.fract;
return;
}

View File

@ -416,19 +416,19 @@ TEST_F(MslGeneratorImplTest, Runtime_Modf_Scalar_f32) {
using namespace metal;
struct modf_result {
struct modf_result_f32 {
float fract;
float whole;
};
modf_result tint_modf(float param_0) {
modf_result result;
modf_result_f32 tint_modf(float param_0) {
modf_result_f32 result;
result.fract = modf(param_0, result.whole);
return result;
}
kernel void test_function() {
float const f = 1.5f;
modf_result const v = tint_modf(f);
modf_result_f32 const v = tint_modf(f);
return;
}
@ -478,19 +478,19 @@ TEST_F(MslGeneratorImplTest, Runtime_Modf_Vector_f32) {
using namespace metal;
struct modf_result_vec3 {
struct modf_result_vec3_f32 {
float3 fract;
float3 whole;
};
modf_result_vec3 tint_modf(float3 param_0) {
modf_result_vec3 result;
modf_result_vec3_f32 tint_modf(float3 param_0) {
modf_result_vec3_f32 result;
result.fract = modf(param_0, result.whole);
return result;
}
kernel void test_function() {
float3 const f = float3(1.5f, 2.5f, 3.5f);
modf_result_vec3 const v = tint_modf(f);
modf_result_vec3_f32 const v = tint_modf(f);
return;
}
@ -539,12 +539,12 @@ TEST_F(MslGeneratorImplTest, Const_Modf_Scalar_f32) {
using namespace metal;
struct modf_result {
struct modf_result_f32 {
float fract;
float whole;
};
kernel void test_function() {
modf_result const v = modf_result{.fract=0.5f, .whole=1.0f};
modf_result_f32 const v = modf_result_f32{.fract=0.5f, .whole=1.0f};
return;
}
@ -585,12 +585,12 @@ TEST_F(MslGeneratorImplTest, Const_Modf_Vector_f32) {
using namespace metal;
struct modf_result_vec3 {
struct modf_result_vec3_f32 {
float3 fract;
float3 whole;
};
kernel void test_function() {
modf_result_vec3 const v = modf_result_vec3{.fract=float3(0.5f), .whole=float3(1.0f, 2.0f, 3.0f)};
modf_result_vec3_f32 const v = modf_result_vec3_f32{.fract=float3(0.5f), .whole=float3(1.0f, 2.0f, 3.0f)};
return;
}
@ -632,19 +632,19 @@ TEST_F(MslGeneratorImplTest, Runtime_Frexp_Scalar_f32) {
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
frexp_result_f32 tint_frexp(float param_0) {
frexp_result_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void test_function() {
float f = 1.0f;
frexp_result v = tint_frexp(f);
frexp_result_f32 v = tint_frexp(f);
return;
}
@ -694,19 +694,19 @@ TEST_F(MslGeneratorImplTest, Runtime_Frexp_Vector_f32) {
using namespace metal;
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
frexp_result_vec3 tint_frexp(float3 param_0) {
frexp_result_vec3 result;
frexp_result_vec3_f32 tint_frexp(float3 param_0) {
frexp_result_vec3_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void test_function() {
float3 f = float3(0.0f);
frexp_result_vec3 v = tint_frexp(f);
frexp_result_vec3_f32 v = tint_frexp(f);
return;
}
@ -755,12 +755,12 @@ TEST_F(MslGeneratorImplTest, Const_Frexp_Scalar_f32) {
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
kernel void test_function() {
frexp_result const v = frexp_result{.fract=0.5f, .exp=1};
frexp_result_f32 const v = frexp_result_f32{.fract=0.5f, .exp=1};
return;
}
@ -801,12 +801,12 @@ TEST_F(MslGeneratorImplTest, Const_Frexp_Vector_f32) {
using namespace metal;
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
kernel void test_function() {
frexp_result_vec3 const v = frexp_result_vec3{};
frexp_result_vec3_f32 const v = frexp_result_vec3_f32{};
return;
}

View File

@ -1653,7 +1653,7 @@ OpEntryPoint Fragment %3 "a_func"
OpExecutionMode %3 OriginUpperLeft
OpName %3 "a_func"
OpName %10 "vec"
OpName %14 "__modf_result_vec2"
OpName %14 "__modf_result_vec2_f32"
OpMemberName %14 0 "fract"
OpMemberName %14 1 "whole"
OpMemberDecorate %14 0 Offset 0
@ -1760,7 +1760,7 @@ OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %3 "a_func"
OpExecutionMode %3 OriginUpperLeft
OpName %3 "a_func"
OpName %6 "__modf_result_vec2"
OpName %6 "__modf_result_vec2_f32"
OpMemberName %6 0 "fract"
OpMemberName %6 1 "whole"
OpMemberDecorate %6 0 Offset 0
@ -1857,7 +1857,7 @@ OpEntryPoint Fragment %3 "a_func"
OpExecutionMode %3 OriginUpperLeft
OpName %3 "a_func"
OpName %10 "vec"
OpName %14 "__frexp_result_vec2"
OpName %14 "__frexp_result_vec2_f32"
OpMemberName %14 0 "fract"
OpMemberName %14 1 "exp"
OpMemberDecorate %14 0 Offset 0
@ -1967,7 +1967,7 @@ OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %3 "a_func"
OpExecutionMode %3 OriginUpperLeft
OpName %3 "a_func"
OpName %6 "__frexp_result_vec2"
OpName %6 "__frexp_result_vec2_f32"
OpMemberName %6 0 "fract"
OpMemberName %6 1 "exp"
OpMemberDecorate %6 0 Offset 0
@ -2066,7 +2066,7 @@ OpEntryPoint Fragment %3 "a_func"
OpExecutionMode %3 OriginUpperLeft
OpName %3 "a_func"
OpName %10 "vec"
OpName %14 "__frexp_result_vec2"
OpName %14 "__frexp_result_vec2_f32"
OpMemberName %14 0 "fract"
OpMemberName %14 1 "exp"
OpMemberDecorate %14 0 Offset 0

View File

@ -2,13 +2,13 @@ bug/tint/1757.wgsl:6:25 warning: use of deprecated language feature: 'sig' has b
let sig : f32 = res.sig;
^^^
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result res = {0.61500001f, 1};
const frexp_result_f32 res = {0.61500001f, 1};
const int exp = res.exp;
const float sig = res.fract;
return;

View File

@ -2,13 +2,13 @@ bug/tint/1757.wgsl:6:25 warning: use of deprecated language feature: 'sig' has b
let sig : f32 = res.sig;
^^^
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result res = {0.61500001f, 1};
const frexp_result_f32 res = {0.61500001f, 1};
const int exp = res.exp;
const float sig = res.fract;
return;

View File

@ -4,14 +4,14 @@ bug/tint/1757.wgsl:6:25 warning: use of deprecated language feature: 'sig' has b
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void tint_symbol() {
frexp_result res = frexp_result(0.61500001f, 1);
frexp_result_f32 res = frexp_result_f32(0.61500001f, 1);
int tint_symbol_1 = res.exp;
float sig = res.fract;
}

View File

@ -6,12 +6,12 @@ bug/tint/1757.wgsl:6:25 warning: use of deprecated language feature: 'sig' has b
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
kernel void tint_symbol() {
frexp_result const res = frexp_result{.fract=0.61500001f, .exp=1};
frexp_result_f32 const res = frexp_result_f32{.fract=0.61500001f, .exp=1};
int const exp = res.exp;
float const sig = res.fract;
return;

View File

@ -12,19 +12,19 @@ bug/tint/1757.wgsl:6:25 warning: use of deprecated language feature: 'sig' has b
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%float_0_61500001 = OpConstant %float 0.61500001
%int_1 = OpConstant %int 1
%10 = OpConstantComposite %__frexp_result %float_0_61500001 %int_1
%10 = OpConstantComposite %__frexp_result_f32 %float_0_61500001 %int_1
%main = OpFunction %void None %1
%4 = OpLabel
%11 = OpCompositeExtract %int %10 1

View File

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

View File

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

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void tint_symbol() {
frexp_result res = frexp_result(0.61500001f, 1);
frexp_result_f32 res = frexp_result_f32(0.61500001f, 1);
int tint_symbol_1 = res.exp;
float tint_symbol_2 = res.fract;
}

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
kernel void tint_symbol() {
frexp_result const res = frexp_result{.fract=0.61500001f, .exp=1};
frexp_result_f32 const res = frexp_result_f32{.fract=0.61500001f, .exp=1};
int const exp = res.exp;
float const fract = res.fract;
return;

View File

@ -8,19 +8,19 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%float_0_61500001 = OpConstant %float 0.61500001
%int_1 = OpConstant %int 1
%10 = OpConstantComposite %__frexp_result %float_0_61500001 %int_1
%10 = OpConstantComposite %__frexp_result_f32 %float_0_61500001 %int_1
%main = OpFunction %void None %1
%4 = OpLabel
%11 = OpCompositeExtract %int %10 1

View File

@ -1,10 +1,10 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result res = {0.625f, 1};
const frexp_result_f32 res = {0.625f, 1};
const float fract = res.fract;
const int exp = res.exp;
return;

View File

@ -1,10 +1,10 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result res = {0.625f, 1};
const frexp_result_f32 res = {0.625f, 1};
const float fract = res.fract;
const int exp = res.exp;
return;

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void tint_symbol() {
frexp_result res = frexp_result(0.625f, 1);
frexp_result_f32 res = frexp_result_f32(0.625f, 1);
float tint_symbol_2 = res.fract;
int tint_symbol_3 = res.exp;
}

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
kernel void tint_symbol() {
frexp_result const res = frexp_result{.fract=0.625f, .exp=1};
frexp_result_f32 const res = frexp_result_f32{.fract=0.625f, .exp=1};
float const fract = res.fract;
int const exp = res.exp;
return;

View File

@ -8,19 +8,19 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%float_0_625 = OpConstant %float 0.625
%int_1 = OpConstant %int 1
%10 = OpConstantComposite %__frexp_result %float_0_625 %int_1
%10 = OpConstantComposite %__frexp_result_f32 %float_0_625 %int_1
%main = OpFunction %void None %1
%4 = OpLabel
%11 = OpCompositeExtract %float %10 0

View File

@ -1,12 +1,12 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result tint_symbol_1 = {0.625f, 1};
const frexp_result_f32 tint_symbol_1 = {0.625f, 1};
const float fract = tint_symbol_1.fract;
const frexp_result tint_symbol_2 = {0.625f, 1};
const frexp_result_f32 tint_symbol_2 = {0.625f, 1};
const int exp = tint_symbol_2.exp;
return;
}

View File

@ -1,12 +1,12 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result tint_symbol_1 = {0.625f, 1};
const frexp_result_f32 tint_symbol_1 = {0.625f, 1};
const float fract = tint_symbol_1.fract;
const frexp_result tint_symbol_2 = {0.625f, 1};
const frexp_result_f32 tint_symbol_2 = {0.625f, 1};
const int exp = tint_symbol_2.exp;
return;
}

View File

@ -1,15 +1,15 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void tint_symbol() {
frexp_result tint_symbol_4 = frexp_result(0.625f, 1);
frexp_result_f32 tint_symbol_4 = frexp_result_f32(0.625f, 1);
float tint_symbol_2 = tint_symbol_4.fract;
frexp_result tint_symbol_5 = frexp_result(0.625f, 1);
frexp_result_f32 tint_symbol_5 = frexp_result_f32(0.625f, 1);
int tint_symbol_3 = tint_symbol_5.exp;
}

View File

@ -2,14 +2,14 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
kernel void tint_symbol() {
frexp_result const tint_symbol_1 = frexp_result{.fract=0.625f, .exp=1};
frexp_result_f32 const tint_symbol_1 = frexp_result_f32{.fract=0.625f, .exp=1};
float const fract = tint_symbol_1.fract;
frexp_result const tint_symbol_2 = frexp_result{.fract=0.625f, .exp=1};
frexp_result_f32 const tint_symbol_2 = frexp_result_f32{.fract=0.625f, .exp=1};
int const exp = tint_symbol_2.exp;
return;
}

View File

@ -1,20 +1,20 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result_f32 tint_frexp(float param_0) {
float exp;
float fract = frexp(param_0, exp);
frexp_result result = {fract, int(exp)};
frexp_result_f32 result = {fract, int(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float runtime_in = 1.25f;
frexp_result res = {0.625f, 1};
frexp_result_f32 res = {0.625f, 1};
res = tint_frexp(runtime_in);
const frexp_result c = {0.625f, 1};
const frexp_result_f32 c = {0.625f, 1};
res = c;
const float fract = res.fract;
const int exp = res.exp;

View File

@ -1,20 +1,20 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result_f32 tint_frexp(float param_0) {
float exp;
float fract = frexp(param_0, exp);
frexp_result result = {fract, int(exp)};
frexp_result_f32 result = {fract, int(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float runtime_in = 1.25f;
frexp_result res = {0.625f, 1};
frexp_result_f32 res = {0.625f, 1};
res = tint_frexp(runtime_in);
const frexp_result c = {0.625f, 1};
const frexp_result_f32 c = {0.625f, 1};
res = c;
const float fract = res.fract;
const int exp = res.exp;

View File

@ -1,12 +1,12 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
frexp_result_f32 tint_frexp(float param_0) {
frexp_result_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
@ -14,9 +14,9 @@ frexp_result tint_frexp(float param_0) {
void tint_symbol() {
float runtime_in = 1.25f;
frexp_result res = frexp_result(0.625f, 1);
frexp_result_f32 res = frexp_result_f32(0.625f, 1);
res = tint_frexp(runtime_in);
res = frexp_result(0.625f, 1);
res = frexp_result_f32(0.625f, 1);
float tint_symbol_1 = res.fract;
int tint_symbol_2 = res.exp;
}

View File

@ -2,21 +2,21 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
frexp_result_f32 tint_frexp(float param_0) {
frexp_result_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void tint_symbol() {
float const runtime_in = 1.25f;
frexp_result res = frexp_result{.fract=0.625f, .exp=1};
frexp_result_f32 res = frexp_result_f32{.fract=0.625f, .exp=1};
res = tint_frexp(runtime_in);
res = frexp_result{.fract=0.625f, .exp=1};
res = frexp_result_f32{.fract=0.625f, .exp=1};
float const fract = res.fract;
int const exp = res.exp;
return;

View File

@ -9,23 +9,23 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpName %res "res"
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%float_1_25 = OpConstant %float 1.25
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%float_0_625 = OpConstant %float 0.625
%int_1 = OpConstant %int 1
%11 = OpConstantComposite %__frexp_result %float_0_625 %int_1
%_ptr_Function___frexp_result = OpTypePointer Function %__frexp_result
%14 = OpConstantNull %__frexp_result
%11 = OpConstantComposite %__frexp_result_f32 %float_0_625 %int_1
%_ptr_Function___frexp_result_f32 = OpTypePointer Function %__frexp_result_f32
%14 = OpConstantNull %__frexp_result_f32
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_float = OpTypePointer Function %float
@ -33,9 +33,9 @@
%_ptr_Function_int = OpTypePointer Function %int
%main = OpFunction %void None %1
%4 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result Function %14
%res = OpVariable %_ptr_Function___frexp_result_f32 Function %14
OpStore %res %11
%15 = OpExtInst %__frexp_result %16 FrexpStruct %float_1_25
%15 = OpExtInst %__frexp_result_f32 %16 FrexpStruct %float_1_25
OpStore %res %15
OpStore %res %11
%20 = OpAccessChain %_ptr_Function_float %res %uint_0

View File

@ -1,18 +1,18 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result_f32 tint_frexp(float param_0) {
float exp;
float fract = frexp(param_0, exp);
frexp_result result = {fract, int(exp)};
frexp_result_f32 result = {fract, int(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float tint_symbol = 1.25f;
const frexp_result res = tint_frexp(tint_symbol);
const frexp_result_f32 res = tint_frexp(tint_symbol);
const float fract = res.fract;
const int exp = res.exp;
return;

View File

@ -1,18 +1,18 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result_f32 tint_frexp(float param_0) {
float exp;
float fract = frexp(param_0, exp);
frexp_result result = {fract, int(exp)};
frexp_result_f32 result = {fract, int(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float tint_symbol = 1.25f;
const frexp_result res = tint_frexp(tint_symbol);
const frexp_result_f32 res = tint_frexp(tint_symbol);
const float fract = res.fract;
const int exp = res.exp;
return;

View File

@ -1,12 +1,12 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
frexp_result_f32 tint_frexp(float param_0) {
frexp_result_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
@ -14,7 +14,7 @@ frexp_result tint_frexp(float param_0) {
void tint_symbol() {
float tint_symbol_1 = 1.25f;
frexp_result res = tint_frexp(tint_symbol_1);
frexp_result_f32 res = tint_frexp(tint_symbol_1);
float tint_symbol_2 = res.fract;
int tint_symbol_3 = res.exp;
}

View File

@ -2,19 +2,19 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
frexp_result tint_frexp(float param_0) {
frexp_result result;
frexp_result_f32 tint_frexp(float param_0) {
frexp_result_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void tint_symbol() {
float const in = 1.25f;
frexp_result const res = tint_frexp(in);
frexp_result_f32 const res = tint_frexp(in);
float const fract = res.fract;
int const exp = res.exp;
return;

View File

@ -9,20 +9,20 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%float_1_25 = OpConstant %float 1.25
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%main = OpFunction %void None %1
%4 = OpLabel
%7 = OpExtInst %__frexp_result %10 FrexpStruct %float_1_25
%7 = OpExtInst %__frexp_result_f32 %10 FrexpStruct %float_1_25
%11 = OpCompositeExtract %float %7 0
%12 = OpCompositeExtract %int %7 1
OpReturn

View File

@ -1,10 +1,10 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result_vec2 res = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 res = {float2(0.625f, 0.9375f), int2(1, 2)};
const float2 fract = res.fract;
const int2 exp = res.exp;
return;

View File

@ -1,10 +1,10 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result_vec2 res = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 res = {float2(0.625f, 0.9375f), int2(1, 2)};
const float2 fract = res.fract;
const int2 exp = res.exp;
return;

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void tint_symbol() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.625f, 0.9375f), ivec2(1, 2));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.625f, 0.9375f), ivec2(1, 2));
vec2 tint_symbol_2 = res.fract;
ivec2 tint_symbol_3 = res.exp;
}

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
kernel void tint_symbol() {
frexp_result_vec2 const res = frexp_result_vec2{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
frexp_result_vec2_f32 const res = frexp_result_vec2_f32{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
float2 const fract = res.fract;
int2 const exp = res.exp;
return;

View File

@ -8,25 +8,25 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result_vec2 "__frexp_result_vec2"
OpMemberName %__frexp_result_vec2 0 "fract"
OpMemberName %__frexp_result_vec2 1 "exp"
OpMemberDecorate %__frexp_result_vec2 0 Offset 0
OpMemberDecorate %__frexp_result_vec2 1 Offset 8
OpName %__frexp_result_vec2_f32 "__frexp_result_vec2_f32"
OpMemberName %__frexp_result_vec2_f32 0 "fract"
OpMemberName %__frexp_result_vec2_f32 1 "exp"
OpMemberDecorate %__frexp_result_vec2_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec2_f32 1 Offset 8
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%__frexp_result_vec2 = OpTypeStruct %v2float %v2int
%__frexp_result_vec2_f32 = OpTypeStruct %v2float %v2int
%float_0_625 = OpConstant %float 0.625
%float_0_9375 = OpConstant %float 0.9375
%12 = OpConstantComposite %v2float %float_0_625 %float_0_9375
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%15 = OpConstantComposite %v2int %int_1 %int_2
%16 = OpConstantComposite %__frexp_result_vec2 %12 %15
%16 = OpConstantComposite %__frexp_result_vec2_f32 %12 %15
%main = OpFunction %void None %1
%4 = OpLabel
%17 = OpCompositeExtract %v2float %16 0

View File

@ -1,12 +1,12 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result_vec2 tint_symbol_1 = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 tint_symbol_1 = {float2(0.625f, 0.9375f), int2(1, 2)};
const float2 fract = tint_symbol_1.fract;
const frexp_result_vec2 tint_symbol_2 = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 tint_symbol_2 = {float2(0.625f, 0.9375f), int2(1, 2)};
const int2 exp = tint_symbol_2.exp;
return;
}

View File

@ -1,12 +1,12 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
[numthreads(1, 1, 1)]
void main() {
const frexp_result_vec2 tint_symbol_1 = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 tint_symbol_1 = {float2(0.625f, 0.9375f), int2(1, 2)};
const float2 fract = tint_symbol_1.fract;
const frexp_result_vec2 tint_symbol_2 = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 tint_symbol_2 = {float2(0.625f, 0.9375f), int2(1, 2)};
const int2 exp = tint_symbol_2.exp;
return;
}

View File

@ -1,15 +1,15 @@
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void tint_symbol() {
frexp_result_vec2 tint_symbol_4 = frexp_result_vec2(vec2(0.625f, 0.9375f), ivec2(1, 2));
frexp_result_vec2_f32 tint_symbol_4 = frexp_result_vec2_f32(vec2(0.625f, 0.9375f), ivec2(1, 2));
vec2 tint_symbol_2 = tint_symbol_4.fract;
frexp_result_vec2 tint_symbol_5 = frexp_result_vec2(vec2(0.625f, 0.9375f), ivec2(1, 2));
frexp_result_vec2_f32 tint_symbol_5 = frexp_result_vec2_f32(vec2(0.625f, 0.9375f), ivec2(1, 2));
ivec2 tint_symbol_3 = tint_symbol_5.exp;
}

View File

@ -2,14 +2,14 @@
using namespace metal;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
kernel void tint_symbol() {
frexp_result_vec2 const tint_symbol_1 = frexp_result_vec2{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
frexp_result_vec2_f32 const tint_symbol_1 = frexp_result_vec2_f32{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
float2 const fract = tint_symbol_1.fract;
frexp_result_vec2 const tint_symbol_2 = frexp_result_vec2{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
frexp_result_vec2_f32 const tint_symbol_2 = frexp_result_vec2_f32{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
int2 const exp = tint_symbol_2.exp;
return;
}

View File

@ -1,20 +1,20 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
frexp_result_vec2_f32 tint_frexp(float2 param_0) {
float2 exp;
float2 fract = frexp(param_0, exp);
frexp_result_vec2 result = {fract, int2(exp)};
frexp_result_vec2_f32 result = {fract, int2(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float2 runtime_in = float2(1.25f, 3.75f);
frexp_result_vec2 res = {float2(0.625f, 0.9375f), int2(1, 2)};
frexp_result_vec2_f32 res = {float2(0.625f, 0.9375f), int2(1, 2)};
res = tint_frexp(runtime_in);
const frexp_result_vec2 c = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 c = {float2(0.625f, 0.9375f), int2(1, 2)};
res = c;
const float2 fract = res.fract;
const int2 exp = res.exp;

View File

@ -1,20 +1,20 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
frexp_result_vec2_f32 tint_frexp(float2 param_0) {
float2 exp;
float2 fract = frexp(param_0, exp);
frexp_result_vec2 result = {fract, int2(exp)};
frexp_result_vec2_f32 result = {fract, int2(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float2 runtime_in = float2(1.25f, 3.75f);
frexp_result_vec2 res = {float2(0.625f, 0.9375f), int2(1, 2)};
frexp_result_vec2_f32 res = {float2(0.625f, 0.9375f), int2(1, 2)};
res = tint_frexp(runtime_in);
const frexp_result_vec2 c = {float2(0.625f, 0.9375f), int2(1, 2)};
const frexp_result_vec2_f32 c = {float2(0.625f, 0.9375f), int2(1, 2)};
res = c;
const float2 fract = res.fract;
const int2 exp = res.exp;

View File

@ -1,12 +1,12 @@
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
frexp_result_vec2 tint_frexp(vec2 param_0) {
frexp_result_vec2 result;
frexp_result_vec2_f32 tint_frexp(vec2 param_0) {
frexp_result_vec2_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
@ -14,9 +14,9 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
void tint_symbol() {
vec2 runtime_in = vec2(1.25f, 3.75f);
frexp_result_vec2 res = frexp_result_vec2(vec2(0.625f, 0.9375f), ivec2(1, 2));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.625f, 0.9375f), ivec2(1, 2));
res = tint_frexp(runtime_in);
res = frexp_result_vec2(vec2(0.625f, 0.9375f), ivec2(1, 2));
res = frexp_result_vec2_f32(vec2(0.625f, 0.9375f), ivec2(1, 2));
vec2 tint_symbol_1 = res.fract;
ivec2 tint_symbol_2 = res.exp;
}

View File

@ -2,21 +2,21 @@
using namespace metal;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
frexp_result_vec2 result;
frexp_result_vec2_f32 tint_frexp(float2 param_0) {
frexp_result_vec2_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void tint_symbol() {
float2 const runtime_in = float2(1.25f, 3.75f);
frexp_result_vec2 res = frexp_result_vec2{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
frexp_result_vec2_f32 res = frexp_result_vec2_f32{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
res = tint_frexp(runtime_in);
res = frexp_result_vec2{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
res = frexp_result_vec2_f32{.fract=float2(0.625f, 0.9375f), .exp=int2(1, 2)};
float2 const fract = res.fract;
int2 const exp = res.exp;
return;

View File

@ -9,12 +9,12 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result_vec2 "__frexp_result_vec2"
OpMemberName %__frexp_result_vec2 0 "fract"
OpMemberName %__frexp_result_vec2 1 "exp"
OpName %__frexp_result_vec2_f32 "__frexp_result_vec2_f32"
OpMemberName %__frexp_result_vec2_f32 0 "fract"
OpMemberName %__frexp_result_vec2_f32 1 "exp"
OpName %res "res"
OpMemberDecorate %__frexp_result_vec2 0 Offset 0
OpMemberDecorate %__frexp_result_vec2 1 Offset 8
OpMemberDecorate %__frexp_result_vec2_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec2_f32 1 Offset 8
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
@ -24,16 +24,16 @@
%9 = OpConstantComposite %v2float %float_1_25 %float_3_75
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%__frexp_result_vec2 = OpTypeStruct %v2float %v2int
%__frexp_result_vec2_f32 = OpTypeStruct %v2float %v2int
%float_0_625 = OpConstant %float 0.625
%float_0_9375 = OpConstant %float 0.9375
%15 = OpConstantComposite %v2float %float_0_625 %float_0_9375
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%18 = OpConstantComposite %v2int %int_1 %int_2
%19 = OpConstantComposite %__frexp_result_vec2 %15 %18
%_ptr_Function___frexp_result_vec2 = OpTypePointer Function %__frexp_result_vec2
%22 = OpConstantNull %__frexp_result_vec2
%19 = OpConstantComposite %__frexp_result_vec2_f32 %15 %18
%_ptr_Function___frexp_result_vec2_f32 = OpTypePointer Function %__frexp_result_vec2_f32
%22 = OpConstantNull %__frexp_result_vec2_f32
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_v2float = OpTypePointer Function %v2float
@ -41,9 +41,9 @@
%_ptr_Function_v2int = OpTypePointer Function %v2int
%main = OpFunction %void None %1
%4 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec2 Function %22
%res = OpVariable %_ptr_Function___frexp_result_vec2_f32 Function %22
OpStore %res %19
%23 = OpExtInst %__frexp_result_vec2 %24 FrexpStruct %9
%23 = OpExtInst %__frexp_result_vec2_f32 %24 FrexpStruct %9
OpStore %res %23
OpStore %res %19
%28 = OpAccessChain %_ptr_Function_v2float %res %uint_0

View File

@ -1,18 +1,18 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
frexp_result_vec2_f32 tint_frexp(float2 param_0) {
float2 exp;
float2 fract = frexp(param_0, exp);
frexp_result_vec2 result = {fract, int2(exp)};
frexp_result_vec2_f32 result = {fract, int2(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float2 tint_symbol = float2(1.25f, 3.75f);
const frexp_result_vec2 res = tint_frexp(tint_symbol);
const frexp_result_vec2_f32 res = tint_frexp(tint_symbol);
const float2 fract = res.fract;
const int2 exp = res.exp;
return;

View File

@ -1,18 +1,18 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
frexp_result_vec2_f32 tint_frexp(float2 param_0) {
float2 exp;
float2 fract = frexp(param_0, exp);
frexp_result_vec2 result = {fract, int2(exp)};
frexp_result_vec2_f32 result = {fract, int2(exp)};
return result;
}
[numthreads(1, 1, 1)]
void main() {
const float2 tint_symbol = float2(1.25f, 3.75f);
const frexp_result_vec2 res = tint_frexp(tint_symbol);
const frexp_result_vec2_f32 res = tint_frexp(tint_symbol);
const float2 fract = res.fract;
const int2 exp = res.exp;
return;

View File

@ -1,12 +1,12 @@
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
frexp_result_vec2 tint_frexp(vec2 param_0) {
frexp_result_vec2 result;
frexp_result_vec2_f32 tint_frexp(vec2 param_0) {
frexp_result_vec2_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
@ -14,7 +14,7 @@ frexp_result_vec2 tint_frexp(vec2 param_0) {
void tint_symbol() {
vec2 tint_symbol_1 = vec2(1.25f, 3.75f);
frexp_result_vec2 res = tint_frexp(tint_symbol_1);
frexp_result_vec2_f32 res = tint_frexp(tint_symbol_1);
vec2 tint_symbol_2 = res.fract;
ivec2 tint_symbol_3 = res.exp;
}

View File

@ -2,19 +2,19 @@
using namespace metal;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
frexp_result_vec2 tint_frexp(float2 param_0) {
frexp_result_vec2 result;
frexp_result_vec2_f32 tint_frexp(float2 param_0) {
frexp_result_vec2_f32 result;
result.fract = frexp(param_0, result.exp);
return result;
}
kernel void tint_symbol() {
float2 const in = float2(1.25f, 3.75f);
frexp_result_vec2 const res = tint_frexp(in);
frexp_result_vec2_f32 const res = tint_frexp(in);
float2 const fract = res.fract;
int2 const exp = res.exp;
return;

View File

@ -9,11 +9,11 @@
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %__frexp_result_vec2 "__frexp_result_vec2"
OpMemberName %__frexp_result_vec2 0 "fract"
OpMemberName %__frexp_result_vec2 1 "exp"
OpMemberDecorate %__frexp_result_vec2 0 Offset 0
OpMemberDecorate %__frexp_result_vec2 1 Offset 8
OpName %__frexp_result_vec2_f32 "__frexp_result_vec2_f32"
OpMemberName %__frexp_result_vec2_f32 0 "fract"
OpMemberName %__frexp_result_vec2_f32 1 "exp"
OpMemberDecorate %__frexp_result_vec2_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec2_f32 1 Offset 8
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
@ -23,10 +23,10 @@
%9 = OpConstantComposite %v2float %float_1_25 %float_3_75
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%__frexp_result_vec2 = OpTypeStruct %v2float %v2int
%__frexp_result_vec2_f32 = OpTypeStruct %v2float %v2int
%main = OpFunction %void None %1
%4 = OpLabel
%10 = OpExtInst %__frexp_result_vec2 %14 FrexpStruct %9
%10 = OpExtInst %__frexp_result_vec2_f32 %14 FrexpStruct %9
%15 = OpCompositeExtract %v2float %10 0
%16 = OpCompositeExtract %v2int %10 1
OpReturn

View File

@ -1,9 +1,9 @@
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
float4 fract;
int4 exp;
};
void frexp_34bbfb() {
frexp_result_vec4 res = {(0.5f).xxxx, (1).xxxx};
frexp_result_vec4_f32 res = {(0.5f).xxxx, (1).xxxx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
float4 fract;
int4 exp;
};
void frexp_34bbfb() {
frexp_result_vec4 res = {(0.5f).xxxx, (1).xxxx};
frexp_result_vec4_f32 res = {(0.5f).xxxx, (1).xxxx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
vec4 fract;
ivec4 exp;
};
void frexp_34bbfb() {
frexp_result_vec4 res = frexp_result_vec4(vec4(0.5f), ivec4(1));
frexp_result_vec4_f32 res = frexp_result_vec4_f32(vec4(0.5f), ivec4(1));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
vec4 fract;
ivec4 exp;
};
void frexp_34bbfb() {
frexp_result_vec4 res = frexp_result_vec4(vec4(0.5f), ivec4(1));
frexp_result_vec4_f32 res = frexp_result_vec4_f32(vec4(0.5f), ivec4(1));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
vec4 fract;
ivec4 exp;
};
void frexp_34bbfb() {
frexp_result_vec4 res = frexp_result_vec4(vec4(0.5f), ivec4(1));
frexp_result_vec4_f32 res = frexp_result_vec4_f32(vec4(0.5f), ivec4(1));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
float4 fract;
int4 exp;
};
void frexp_34bbfb() {
frexp_result_vec4 res = frexp_result_vec4{.fract=float4(0.5f), .exp=int4(1)};
frexp_result_vec4_f32 res = frexp_result_vec4_f32{.fract=float4(0.5f), .exp=int4(1)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_34bbfb "frexp_34bbfb"
OpName %__frexp_result_vec4 "__frexp_result_vec4"
OpMemberName %__frexp_result_vec4 0 "fract"
OpMemberName %__frexp_result_vec4 1 "exp"
OpName %__frexp_result_vec4_f32 "__frexp_result_vec4_f32"
OpMemberName %__frexp_result_vec4_f32 0 "fract"
OpMemberName %__frexp_result_vec4_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result_vec4 0 Offset 0
OpMemberDecorate %__frexp_result_vec4 1 Offset 16
OpMemberDecorate %__frexp_result_vec4_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec4_f32 1 Offset 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -37,19 +37,19 @@
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%__frexp_result_vec4 = OpTypeStruct %v4float %v4int
%__frexp_result_vec4_f32 = OpTypeStruct %v4float %v4int
%float_0_5 = OpConstant %float 0.5
%17 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_0_5
%int_1 = OpConstant %int 1
%19 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
%20 = OpConstantComposite %__frexp_result_vec4 %17 %19
%_ptr_Function___frexp_result_vec4 = OpTypePointer Function %__frexp_result_vec4
%23 = OpConstantNull %__frexp_result_vec4
%20 = OpConstantComposite %__frexp_result_vec4_f32 %17 %19
%_ptr_Function___frexp_result_vec4_f32 = OpTypePointer Function %__frexp_result_vec4_f32
%23 = OpConstantNull %__frexp_result_vec4_f32
%24 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_34bbfb = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec4 Function %23
%res = OpVariable %_ptr_Function___frexp_result_vec4_f32 Function %23
OpStore %res %20
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_4b2200() {
frexp_result res = {0.5f, 1};
frexp_result_f32 res = {0.5f, 1};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_4b2200() {
frexp_result res = {0.5f, 1};
frexp_result_f32 res = {0.5f, 1};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_4b2200() {
frexp_result res = frexp_result(0.5f, 1);
frexp_result_f32 res = frexp_result_f32(0.5f, 1);
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_4b2200() {
frexp_result res = frexp_result(0.5f, 1);
frexp_result_f32 res = frexp_result_f32(0.5f, 1);
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_4b2200() {
frexp_result res = frexp_result(0.5f, 1);
frexp_result_f32 res = frexp_result_f32(0.5f, 1);
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_4b2200() {
frexp_result res = frexp_result{.fract=0.5f, .exp=1};
frexp_result_f32 res = frexp_result_f32{.fract=0.5f, .exp=1};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_4b2200 "frexp_4b2200"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -36,17 +36,17 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%float_0_5 = OpConstant %float 0.5
%int_1 = OpConstant %int 1
%17 = OpConstantComposite %__frexp_result %float_0_5 %int_1
%_ptr_Function___frexp_result = OpTypePointer Function %__frexp_result
%20 = OpConstantNull %__frexp_result
%17 = OpConstantComposite %__frexp_result_f32 %float_0_5 %int_1
%_ptr_Function___frexp_result_f32 = OpTypePointer Function %__frexp_result_f32
%20 = OpConstantNull %__frexp_result_f32
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_4b2200 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result Function %20
%res = OpVariable %_ptr_Function___frexp_result_f32 Function %20
OpStore %res %17
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
void frexp_6fb3ad() {
frexp_result_vec2 res = {(0.5f).xx, (1).xx};
frexp_result_vec2_f32 res = {(0.5f).xx, (1).xx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
void frexp_6fb3ad() {
frexp_result_vec2 res = {(0.5f).xx, (1).xx};
frexp_result_vec2_f32 res = {(0.5f).xx, (1).xx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void frexp_6fb3ad() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.5f), ivec2(1));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.5f), ivec2(1));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void frexp_6fb3ad() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.5f), ivec2(1));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.5f), ivec2(1));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void frexp_6fb3ad() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.5f), ivec2(1));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.5f), ivec2(1));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
void frexp_6fb3ad() {
frexp_result_vec2 res = frexp_result_vec2{.fract=float2(0.5f), .exp=int2(1)};
frexp_result_vec2_f32 res = frexp_result_vec2_f32{.fract=float2(0.5f), .exp=int2(1)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_6fb3ad "frexp_6fb3ad"
OpName %__frexp_result_vec2 "__frexp_result_vec2"
OpMemberName %__frexp_result_vec2 0 "fract"
OpMemberName %__frexp_result_vec2 1 "exp"
OpName %__frexp_result_vec2_f32 "__frexp_result_vec2_f32"
OpMemberName %__frexp_result_vec2_f32 0 "fract"
OpMemberName %__frexp_result_vec2_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result_vec2 0 Offset 0
OpMemberDecorate %__frexp_result_vec2 1 Offset 8
OpMemberDecorate %__frexp_result_vec2_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec2_f32 1 Offset 8
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -38,19 +38,19 @@
%v2float = OpTypeVector %float 2
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%__frexp_result_vec2 = OpTypeStruct %v2float %v2int
%__frexp_result_vec2_f32 = OpTypeStruct %v2float %v2int
%float_0_5 = OpConstant %float 0.5
%18 = OpConstantComposite %v2float %float_0_5 %float_0_5
%int_1 = OpConstant %int 1
%20 = OpConstantComposite %v2int %int_1 %int_1
%21 = OpConstantComposite %__frexp_result_vec2 %18 %20
%_ptr_Function___frexp_result_vec2 = OpTypePointer Function %__frexp_result_vec2
%24 = OpConstantNull %__frexp_result_vec2
%21 = OpConstantComposite %__frexp_result_vec2_f32 %18 %20
%_ptr_Function___frexp_result_vec2_f32 = OpTypePointer Function %__frexp_result_vec2_f32
%24 = OpConstantNull %__frexp_result_vec2_f32
%25 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_6fb3ad = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec2 Function %24
%res = OpVariable %_ptr_Function___frexp_result_vec2_f32 Function %24
OpStore %res %21
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
float4 fract;
int4 exp;
};
void frexp_77af93() {
frexp_result_vec4 res = {(0.5f).xxxx, (1).xxxx};
frexp_result_vec4_f32 res = {(0.5f).xxxx, (1).xxxx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
float4 fract;
int4 exp;
};
void frexp_77af93() {
frexp_result_vec4 res = {(0.5f).xxxx, (1).xxxx};
frexp_result_vec4_f32 res = {(0.5f).xxxx, (1).xxxx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
vec4 fract;
ivec4 exp;
};
void frexp_77af93() {
frexp_result_vec4 res = frexp_result_vec4(vec4(0.5f), ivec4(1));
frexp_result_vec4_f32 res = frexp_result_vec4_f32(vec4(0.5f), ivec4(1));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
vec4 fract;
ivec4 exp;
};
void frexp_77af93() {
frexp_result_vec4 res = frexp_result_vec4(vec4(0.5f), ivec4(1));
frexp_result_vec4_f32 res = frexp_result_vec4_f32(vec4(0.5f), ivec4(1));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
vec4 fract;
ivec4 exp;
};
void frexp_77af93() {
frexp_result_vec4 res = frexp_result_vec4(vec4(0.5f), ivec4(1));
frexp_result_vec4_f32 res = frexp_result_vec4_f32(vec4(0.5f), ivec4(1));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec4 {
struct frexp_result_vec4_f32 {
float4 fract;
int4 exp;
};
void frexp_77af93() {
frexp_result_vec4 res = frexp_result_vec4{.fract=float4(0.5f), .exp=int4(1)};
frexp_result_vec4_f32 res = frexp_result_vec4_f32{.fract=float4(0.5f), .exp=int4(1)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_77af93 "frexp_77af93"
OpName %__frexp_result_vec4 "__frexp_result_vec4"
OpMemberName %__frexp_result_vec4 0 "fract"
OpMemberName %__frexp_result_vec4 1 "exp"
OpName %__frexp_result_vec4_f32 "__frexp_result_vec4_f32"
OpMemberName %__frexp_result_vec4_f32 0 "fract"
OpMemberName %__frexp_result_vec4_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result_vec4 0 Offset 0
OpMemberDecorate %__frexp_result_vec4 1 Offset 16
OpMemberDecorate %__frexp_result_vec4_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec4_f32 1 Offset 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -37,19 +37,19 @@
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%__frexp_result_vec4 = OpTypeStruct %v4float %v4int
%__frexp_result_vec4_f32 = OpTypeStruct %v4float %v4int
%float_0_5 = OpConstant %float 0.5
%17 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_0_5
%int_1 = OpConstant %int 1
%19 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
%20 = OpConstantComposite %__frexp_result_vec4 %17 %19
%_ptr_Function___frexp_result_vec4 = OpTypePointer Function %__frexp_result_vec4
%23 = OpConstantNull %__frexp_result_vec4
%20 = OpConstantComposite %__frexp_result_vec4_f32 %17 %19
%_ptr_Function___frexp_result_vec4_f32 = OpTypePointer Function %__frexp_result_vec4_f32
%23 = OpConstantNull %__frexp_result_vec4_f32
%24 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_77af93 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec4 Function %23
%res = OpVariable %_ptr_Function___frexp_result_vec4_f32 Function %23
OpStore %res %20
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
void frexp_979800() {
frexp_result_vec3 res = {(0.5f).xxx, (1).xxx};
frexp_result_vec3_f32 res = {(0.5f).xxx, (1).xxx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
void frexp_979800() {
frexp_result_vec3 res = {(0.5f).xxx, (1).xxx};
frexp_result_vec3_f32 res = {(0.5f).xxx, (1).xxx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void frexp_979800() {
frexp_result_vec3 res = frexp_result_vec3(vec3(0.5f), ivec3(1));
frexp_result_vec3_f32 res = frexp_result_vec3_f32(vec3(0.5f), ivec3(1));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void frexp_979800() {
frexp_result_vec3 res = frexp_result_vec3(vec3(0.5f), ivec3(1));
frexp_result_vec3_f32 res = frexp_result_vec3_f32(vec3(0.5f), ivec3(1));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void frexp_979800() {
frexp_result_vec3 res = frexp_result_vec3(vec3(0.5f), ivec3(1));
frexp_result_vec3_f32 res = frexp_result_vec3_f32(vec3(0.5f), ivec3(1));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
void frexp_979800() {
frexp_result_vec3 res = frexp_result_vec3{.fract=float3(0.5f), .exp=int3(1)};
frexp_result_vec3_f32 res = frexp_result_vec3_f32{.fract=float3(0.5f), .exp=int3(1)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_979800 "frexp_979800"
OpName %__frexp_result_vec3 "__frexp_result_vec3"
OpMemberName %__frexp_result_vec3 0 "fract"
OpMemberName %__frexp_result_vec3 1 "exp"
OpName %__frexp_result_vec3_f32 "__frexp_result_vec3_f32"
OpMemberName %__frexp_result_vec3_f32 0 "fract"
OpMemberName %__frexp_result_vec3_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result_vec3 0 Offset 0
OpMemberDecorate %__frexp_result_vec3 1 Offset 16
OpMemberDecorate %__frexp_result_vec3_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec3_f32 1 Offset 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -38,19 +38,19 @@
%v3float = OpTypeVector %float 3
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%__frexp_result_vec3 = OpTypeStruct %v3float %v3int
%__frexp_result_vec3_f32 = OpTypeStruct %v3float %v3int
%float_0_5 = OpConstant %float 0.5
%18 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
%int_1 = OpConstant %int 1
%20 = OpConstantComposite %v3int %int_1 %int_1 %int_1
%21 = OpConstantComposite %__frexp_result_vec3 %18 %20
%_ptr_Function___frexp_result_vec3 = OpTypePointer Function %__frexp_result_vec3
%24 = OpConstantNull %__frexp_result_vec3
%21 = OpConstantComposite %__frexp_result_vec3_f32 %18 %20
%_ptr_Function___frexp_result_vec3_f32 = OpTypePointer Function %__frexp_result_vec3_f32
%24 = OpConstantNull %__frexp_result_vec3_f32
%25 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_979800 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec3 Function %24
%res = OpVariable %_ptr_Function___frexp_result_vec3_f32 Function %24
OpStore %res %21
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_bee870() {
frexp_result res = {0.5f, 1};
frexp_result_f32 res = {0.5f, 1};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_bee870() {
frexp_result res = {0.5f, 1};
frexp_result_f32 res = {0.5f, 1};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_bee870() {
frexp_result res = frexp_result(0.5f, 1);
frexp_result_f32 res = frexp_result_f32(0.5f, 1);
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_bee870() {
frexp_result res = frexp_result(0.5f, 1);
frexp_result_f32 res = frexp_result_f32(0.5f, 1);
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_bee870() {
frexp_result res = frexp_result(0.5f, 1);
frexp_result_f32 res = frexp_result_f32(0.5f, 1);
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result {
struct frexp_result_f32 {
float fract;
int exp;
};
void frexp_bee870() {
frexp_result res = frexp_result{.fract=0.5f, .exp=1};
frexp_result_f32 res = frexp_result_f32{.fract=0.5f, .exp=1};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_bee870 "frexp_bee870"
OpName %__frexp_result "__frexp_result"
OpMemberName %__frexp_result 0 "fract"
OpMemberName %__frexp_result 1 "exp"
OpName %__frexp_result_f32 "__frexp_result_f32"
OpMemberName %__frexp_result_f32 0 "fract"
OpMemberName %__frexp_result_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result 0 Offset 0
OpMemberDecorate %__frexp_result 1 Offset 4
OpMemberDecorate %__frexp_result_f32 0 Offset 0
OpMemberDecorate %__frexp_result_f32 1 Offset 4
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -36,17 +36,17 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%__frexp_result = OpTypeStruct %float %int
%__frexp_result_f32 = OpTypeStruct %float %int
%float_0_5 = OpConstant %float 0.5
%int_1 = OpConstant %int 1
%17 = OpConstantComposite %__frexp_result %float_0_5 %int_1
%_ptr_Function___frexp_result = OpTypePointer Function %__frexp_result
%20 = OpConstantNull %__frexp_result
%17 = OpConstantComposite %__frexp_result_f32 %float_0_5 %int_1
%_ptr_Function___frexp_result_f32 = OpTypePointer Function %__frexp_result_f32
%20 = OpConstantNull %__frexp_result_f32
%21 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_bee870 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result Function %20
%res = OpVariable %_ptr_Function___frexp_result_f32 Function %20
OpStore %res %17
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
void frexp_bf45ae() {
frexp_result_vec3 res = {(0.5f).xxx, (1).xxx};
frexp_result_vec3_f32 res = {(0.5f).xxx, (1).xxx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
void frexp_bf45ae() {
frexp_result_vec3 res = {(0.5f).xxx, (1).xxx};
frexp_result_vec3_f32 res = {(0.5f).xxx, (1).xxx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void frexp_bf45ae() {
frexp_result_vec3 res = frexp_result_vec3(vec3(0.5f), ivec3(1));
frexp_result_vec3_f32 res = frexp_result_vec3_f32(vec3(0.5f), ivec3(1));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void frexp_bf45ae() {
frexp_result_vec3 res = frexp_result_vec3(vec3(0.5f), ivec3(1));
frexp_result_vec3_f32 res = frexp_result_vec3_f32(vec3(0.5f), ivec3(1));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
vec3 fract;
ivec3 exp;
};
void frexp_bf45ae() {
frexp_result_vec3 res = frexp_result_vec3(vec3(0.5f), ivec3(1));
frexp_result_vec3_f32 res = frexp_result_vec3_f32(vec3(0.5f), ivec3(1));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec3 {
struct frexp_result_vec3_f32 {
float3 fract;
int3 exp;
};
void frexp_bf45ae() {
frexp_result_vec3 res = frexp_result_vec3{.fract=float3(0.5f), .exp=int3(1)};
frexp_result_vec3_f32 res = frexp_result_vec3_f32{.fract=float3(0.5f), .exp=int3(1)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_bf45ae "frexp_bf45ae"
OpName %__frexp_result_vec3 "__frexp_result_vec3"
OpMemberName %__frexp_result_vec3 0 "fract"
OpMemberName %__frexp_result_vec3 1 "exp"
OpName %__frexp_result_vec3_f32 "__frexp_result_vec3_f32"
OpMemberName %__frexp_result_vec3_f32 0 "fract"
OpMemberName %__frexp_result_vec3_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result_vec3 0 Offset 0
OpMemberDecorate %__frexp_result_vec3 1 Offset 16
OpMemberDecorate %__frexp_result_vec3_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec3_f32 1 Offset 16
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -38,19 +38,19 @@
%v3float = OpTypeVector %float 3
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%__frexp_result_vec3 = OpTypeStruct %v3float %v3int
%__frexp_result_vec3_f32 = OpTypeStruct %v3float %v3int
%float_0_5 = OpConstant %float 0.5
%18 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
%int_1 = OpConstant %int 1
%20 = OpConstantComposite %v3int %int_1 %int_1 %int_1
%21 = OpConstantComposite %__frexp_result_vec3 %18 %20
%_ptr_Function___frexp_result_vec3 = OpTypePointer Function %__frexp_result_vec3
%24 = OpConstantNull %__frexp_result_vec3
%21 = OpConstantComposite %__frexp_result_vec3_f32 %18 %20
%_ptr_Function___frexp_result_vec3_f32 = OpTypePointer Function %__frexp_result_vec3_f32
%24 = OpConstantNull %__frexp_result_vec3_f32
%25 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_bf45ae = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec3 Function %24
%res = OpVariable %_ptr_Function___frexp_result_vec3_f32 Function %24
OpStore %res %21
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
void frexp_eb2421() {
frexp_result_vec2 res = {(0.5f).xx, (1).xx};
frexp_result_vec2_f32 res = {(0.5f).xx, (1).xx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
void frexp_eb2421() {
frexp_result_vec2 res = {(0.5f).xx, (1).xx};
frexp_result_vec2_f32 res = {(0.5f).xx, (1).xx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void frexp_eb2421() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.5f), ivec2(1));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.5f), ivec2(1));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void frexp_eb2421() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.5f), ivec2(1));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.5f), ivec2(1));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
vec2 fract;
ivec2 exp;
};
void frexp_eb2421() {
frexp_result_vec2 res = frexp_result_vec2(vec2(0.5f), ivec2(1));
frexp_result_vec2_f32 res = frexp_result_vec2_f32(vec2(0.5f), ivec2(1));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct frexp_result_vec2 {
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
void frexp_eb2421() {
frexp_result_vec2 res = frexp_result_vec2{.fract=float2(0.5f), .exp=int2(1)};
frexp_result_vec2_f32 res = frexp_result_vec2_f32{.fract=float2(0.5f), .exp=int2(1)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %frexp_eb2421 "frexp_eb2421"
OpName %__frexp_result_vec2 "__frexp_result_vec2"
OpMemberName %__frexp_result_vec2 0 "fract"
OpMemberName %__frexp_result_vec2 1 "exp"
OpName %__frexp_result_vec2_f32 "__frexp_result_vec2_f32"
OpMemberName %__frexp_result_vec2_f32 0 "fract"
OpMemberName %__frexp_result_vec2_f32 1 "exp"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__frexp_result_vec2 0 Offset 0
OpMemberDecorate %__frexp_result_vec2 1 Offset 8
OpMemberDecorate %__frexp_result_vec2_f32 0 Offset 0
OpMemberDecorate %__frexp_result_vec2_f32 1 Offset 8
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -38,19 +38,19 @@
%v2float = OpTypeVector %float 2
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%__frexp_result_vec2 = OpTypeStruct %v2float %v2int
%__frexp_result_vec2_f32 = OpTypeStruct %v2float %v2int
%float_0_5 = OpConstant %float 0.5
%18 = OpConstantComposite %v2float %float_0_5 %float_0_5
%int_1 = OpConstant %int 1
%20 = OpConstantComposite %v2int %int_1 %int_1
%21 = OpConstantComposite %__frexp_result_vec2 %18 %20
%_ptr_Function___frexp_result_vec2 = OpTypePointer Function %__frexp_result_vec2
%24 = OpConstantNull %__frexp_result_vec2
%21 = OpConstantComposite %__frexp_result_vec2_f32 %18 %20
%_ptr_Function___frexp_result_vec2_f32 = OpTypePointer Function %__frexp_result_vec2_f32
%24 = OpConstantNull %__frexp_result_vec2_f32
%25 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%frexp_eb2421 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___frexp_result_vec2 Function %24
%res = OpVariable %_ptr_Function___frexp_result_vec2_f32 Function %24
OpStore %res %21
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct modf_result_vec2 {
struct modf_result_vec2_f32 {
float2 fract;
float2 whole;
};
void modf_2d50da() {
modf_result_vec2 res = {(-0.5f).xx, (-1.0f).xx};
modf_result_vec2_f32 res = {(-0.5f).xx, (-1.0f).xx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct modf_result_vec2 {
struct modf_result_vec2_f32 {
float2 fract;
float2 whole;
};
void modf_2d50da() {
modf_result_vec2 res = {(-0.5f).xx, (-1.0f).xx};
modf_result_vec2_f32 res = {(-0.5f).xx, (-1.0f).xx};
}
struct tint_symbol {

View File

@ -1,13 +1,13 @@
#version 310 es
struct modf_result_vec2 {
struct modf_result_vec2_f32 {
vec2 fract;
vec2 whole;
};
void modf_2d50da() {
modf_result_vec2 res = modf_result_vec2(vec2(-0.5f), vec2(-1.0f));
modf_result_vec2_f32 res = modf_result_vec2_f32(vec2(-0.5f), vec2(-1.0f));
}
vec4 vertex_main() {
@ -26,14 +26,14 @@ void main() {
#version 310 es
precision mediump float;
struct modf_result_vec2 {
struct modf_result_vec2_f32 {
vec2 fract;
vec2 whole;
};
void modf_2d50da() {
modf_result_vec2 res = modf_result_vec2(vec2(-0.5f), vec2(-1.0f));
modf_result_vec2_f32 res = modf_result_vec2_f32(vec2(-0.5f), vec2(-1.0f));
}
void fragment_main() {
@ -46,14 +46,14 @@ void main() {
}
#version 310 es
struct modf_result_vec2 {
struct modf_result_vec2_f32 {
vec2 fract;
vec2 whole;
};
void modf_2d50da() {
modf_result_vec2 res = modf_result_vec2(vec2(-0.5f), vec2(-1.0f));
modf_result_vec2_f32 res = modf_result_vec2_f32(vec2(-0.5f), vec2(-1.0f));
}
void compute_main() {

View File

@ -2,12 +2,12 @@
using namespace metal;
struct modf_result_vec2 {
struct modf_result_vec2_f32 {
float2 fract;
float2 whole;
};
void modf_2d50da() {
modf_result_vec2 res = modf_result_vec2{.fract=float2(-0.5f), .whole=float2(-1.0f)};
modf_result_vec2_f32 res = modf_result_vec2_f32{.fract=float2(-0.5f), .whole=float2(-1.0f)};
}
struct tint_symbol {

View File

@ -13,9 +13,9 @@
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %modf_2d50da "modf_2d50da"
OpName %__modf_result_vec2 "__modf_result_vec2"
OpMemberName %__modf_result_vec2 0 "fract"
OpMemberName %__modf_result_vec2 1 "whole"
OpName %__modf_result_vec2_f32 "__modf_result_vec2_f32"
OpMemberName %__modf_result_vec2_f32 0 "fract"
OpMemberName %__modf_result_vec2_f32 1 "whole"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
@ -23,8 +23,8 @@
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpMemberDecorate %__modf_result_vec2 0 Offset 0
OpMemberDecorate %__modf_result_vec2 1 Offset 8
OpMemberDecorate %__modf_result_vec2_f32 0 Offset 0
OpMemberDecorate %__modf_result_vec2_f32 1 Offset 8
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
@ -36,19 +36,19 @@
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%__modf_result_vec2 = OpTypeStruct %v2float %v2float
%__modf_result_vec2_f32 = OpTypeStruct %v2float %v2float
%float_n0_5 = OpConstant %float -0.5
%16 = OpConstantComposite %v2float %float_n0_5 %float_n0_5
%float_n1 = OpConstant %float -1
%18 = OpConstantComposite %v2float %float_n1 %float_n1
%19 = OpConstantComposite %__modf_result_vec2 %16 %18
%_ptr_Function___modf_result_vec2 = OpTypePointer Function %__modf_result_vec2
%22 = OpConstantNull %__modf_result_vec2
%19 = OpConstantComposite %__modf_result_vec2_f32 %16 %18
%_ptr_Function___modf_result_vec2_f32 = OpTypePointer Function %__modf_result_vec2_f32
%22 = OpConstantNull %__modf_result_vec2_f32
%23 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%modf_2d50da = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function___modf_result_vec2 Function %22
%res = OpVariable %_ptr_Function___modf_result_vec2_f32 Function %22
OpStore %res %19
OpReturn
OpFunctionEnd

View File

@ -1,9 +1,9 @@
struct modf_result_vec4 {
struct modf_result_vec4_f32 {
float4 fract;
float4 whole;
};
void modf_4bfced() {
modf_result_vec4 res = {(-0.5f).xxxx, (-1.0f).xxxx};
modf_result_vec4_f32 res = {(-0.5f).xxxx, (-1.0f).xxxx};
}
struct tint_symbol {

View File

@ -1,9 +1,9 @@
struct modf_result_vec4 {
struct modf_result_vec4_f32 {
float4 fract;
float4 whole;
};
void modf_4bfced() {
modf_result_vec4 res = {(-0.5f).xxxx, (-1.0f).xxxx};
modf_result_vec4_f32 res = {(-0.5f).xxxx, (-1.0f).xxxx};
}
struct tint_symbol {

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