tint/writer/glsl: Inline constant expressions

This is required to handle materialized values, and for constant
expressions.

Bug: tint:1504
Change-Id: Ie0177f148e08a0e1a3f4d7e06e283f121655804b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92080
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton 2022-06-01 01:11:59 +00:00 committed by Dawn LUCI CQ
parent 238716e833
commit 25b7e98d11
828 changed files with 2347 additions and 2250 deletions

View File

@ -32,10 +32,10 @@
#include "src/tint/sem/atomic.h"
#include "src/tint/sem/block_statement.h"
#include "src/tint/sem/call.h"
#include "src/tint/sem/constant.h"
#include "src/tint/sem/depth_multisampled_texture.h"
#include "src/tint/sem/depth_texture.h"
#include "src/tint/sem/function.h"
#include "src/tint/sem/materialize.h"
#include "src/tint/sem/member_accessor_expression.h"
#include "src/tint/sem/module.h"
#include "src/tint/sem/multisampled_texture.h"
@ -147,6 +147,18 @@ const char* convert_texel_format_to_glsl(const ast::TexelFormat format) {
return "unknown";
}
void PrintF32(std::ostream& out, float value) {
// Note: Currently inf and nan should not be constructable, but this is implemented for the day
// we support them.
if (std::isinf(value)) {
out << (value >= 0 ? "uintBitsToFloat(0x7f800000u)" : "uintBitsToFloat(0xff800000u)");
} else if (std::isnan(value)) {
out << "uintBitsToFloat(0x7fc00000u)";
} else {
out << FloatToString(value) << "f";
}
}
} // namespace
SanitizedResult::SanitizedResult() = default;
@ -691,12 +703,7 @@ bool GeneratorImpl::EmitBreak(const ast::BreakStatement*) {
}
bool GeneratorImpl::EmitCall(std::ostream& out, const ast::CallExpression* expr) {
auto* sem = builder_.Sem().Get(expr);
if (auto* m = sem->As<sem::Materialize>()) {
// TODO(crbug.com/tint/1504): Just emit the constant value.
sem = m->Expr();
}
auto* call = sem->As<sem::Call>();
auto* call = builder_.Sem().Get<sem::Call>(expr);
auto* target = call->Target();
if (target->Is<sem::Function>()) {
@ -1762,34 +1769,42 @@ bool GeneratorImpl::EmitDiscard(const ast::DiscardStatement*) {
}
bool GeneratorImpl::EmitExpression(std::ostream& out, const ast::Expression* expr) {
if (auto* a = expr->As<ast::IndexAccessorExpression>()) {
return EmitIndexAccessor(out, a);
if (auto* sem = builder_.Sem().Get(expr)) {
if (auto constant = sem->ConstantValue()) {
return EmitConstant(out, constant);
}
}
if (auto* b = expr->As<ast::BinaryExpression>()) {
return EmitBinary(out, b);
}
if (auto* b = expr->As<ast::BitcastExpression>()) {
return EmitBitcast(out, b);
}
if (auto* c = expr->As<ast::CallExpression>()) {
return EmitCall(out, c);
}
if (auto* i = expr->As<ast::IdentifierExpression>()) {
return EmitIdentifier(out, i);
}
if (auto* l = expr->As<ast::LiteralExpression>()) {
return EmitLiteral(out, l);
}
if (auto* m = expr->As<ast::MemberAccessorExpression>()) {
return EmitMemberAccessor(out, m);
}
if (auto* u = expr->As<ast::UnaryOpExpression>()) {
return EmitUnaryOp(out, u);
}
diagnostics_.add_error(diag::System::Writer,
"unknown expression type: " + std::string(expr->TypeInfo().name));
return false;
return Switch(
expr,
[&](const ast::IndexAccessorExpression* a) { //
return EmitIndexAccessor(out, a);
},
[&](const ast::BinaryExpression* b) { //
return EmitBinary(out, b);
},
[&](const ast::BitcastExpression* b) { //
return EmitBitcast(out, b);
},
[&](const ast::CallExpression* c) { //
return EmitCall(out, c);
},
[&](const ast::IdentifierExpression* i) { //
return EmitIdentifier(out, i);
},
[&](const ast::LiteralExpression* l) { //
return EmitLiteral(out, l);
},
[&](const ast::MemberAccessorExpression* m) { //
return EmitMemberAccessor(out, m);
},
[&](const ast::UnaryOpExpression* u) { //
return EmitUnaryOp(out, u);
},
[&](Default) { //
diagnostics_.add_error(diag::System::Writer, "unknown expression type: " +
std::string(expr->TypeInfo().name));
return false;
});
}
bool GeneratorImpl::EmitIdentifier(std::ostream& out, const ast::IdentifierExpression* expr) {
@ -2192,6 +2207,94 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) {
return true;
}
bool GeneratorImpl::EmitConstant(std::ostream& out, const sem::Constant& constant) {
auto emit_bool = [&](size_t element_idx) {
out << (constant.Element<AInt>(element_idx) ? "true" : "false");
return true;
};
auto emit_f32 = [&](size_t element_idx) {
PrintF32(out, static_cast<float>(constant.Element<AFloat>(element_idx)));
return true;
};
auto emit_i32 = [&](size_t element_idx) {
out << constant.Element<AInt>(element_idx).value;
return true;
};
auto emit_u32 = [&](size_t element_idx) {
out << constant.Element<AInt>(element_idx).value << "u";
return true;
};
auto emit_vector = [&](const sem::Vector* vec_ty, size_t start, size_t end) {
if (!EmitType(out, vec_ty, ast::StorageClass::kNone, ast::Access::kUndefined, "")) {
return false;
}
ScopedParen sp(out);
auto emit_els = [&](auto emit_el) {
if (constant.AllEqual(start, end)) {
return emit_el(start);
}
for (size_t i = start; i < end; i++) {
if (i > start) {
out << ", ";
}
if (!emit_el(i)) {
return false;
}
}
return true;
};
return Switch(
vec_ty->type(), //
[&](const sem::Bool*) { return emit_els(emit_bool); }, //
[&](const sem::F32*) { return emit_els(emit_f32); }, //
[&](const sem::I32*) { return emit_els(emit_i32); }, //
[&](const sem::U32*) { return emit_els(emit_u32); }, //
[&](Default) {
diagnostics_.add_error(diag::System::Writer,
"unhandled constant vector element type: " +
builder_.FriendlyName(vec_ty->type()));
return false;
});
};
auto emit_matrix = [&](const sem::Matrix* m) {
if (!EmitType(out, constant.Type(), ast::StorageClass::kNone, ast::Access::kUndefined,
"")) {
return false;
}
ScopedParen sp(out);
for (size_t column_idx = 0; column_idx < m->columns(); column_idx++) {
if (column_idx > 0) {
out << ", ";
}
size_t start = m->rows() * column_idx;
size_t end = m->rows() * (column_idx + 1);
if (!emit_vector(m->ColumnType(), start, end)) {
return false;
}
}
return true;
};
return Switch(
constant.Type(), //
[&](const sem::Bool*) { return emit_bool(0); }, //
[&](const sem::F32*) { return emit_f32(0); }, //
[&](const sem::I32*) { return emit_i32(0); }, //
[&](const sem::U32*) { return emit_u32(0); }, //
[&](const sem::Vector* v) { return emit_vector(v, 0, constant.ElementCount()); }, //
[&](const sem::Matrix* m) { return emit_matrix(m); }, //
[&](Default) {
diagnostics_.add_error(
diag::System::Writer,
"unhandled constant type: " + builder_.FriendlyName(constant.Type()));
return false;
});
}
bool GeneratorImpl::EmitLiteral(std::ostream& out, const ast::LiteralExpression* lit) {
return Switch(
lit,
@ -2200,15 +2303,7 @@ bool GeneratorImpl::EmitLiteral(std::ostream& out, const ast::LiteralExpression*
return true;
},
[&](const ast::FloatLiteralExpression* l) {
auto f32 = static_cast<float>(l->value);
if (std::isinf(f32)) {
out << (l->value >= 0 ? "uintBitsToFloat(0x7f800000u)"
: "uintBitsToFloat(0xff800000u)");
} else if (std::isnan(l->value)) {
out << "uintBitsToFloat(0x7fc00000u)";
} else {
out << FloatToString(f32) << "f";
}
PrintF32(out, static_cast<float>(l->value));
return true;
},
[&](const ast::IntLiteralExpression* l) {

View File

@ -42,6 +42,7 @@
// Forward declarations
namespace tint::sem {
class Call;
class Constant;
class Builtin;
class TypeConstructor;
class TypeConversion;
@ -338,6 +339,11 @@ class GeneratorImpl : public TextGenerator {
/// @param stmt the statement to emit
/// @returns true if the statement was successfully emitted
bool EmitIf(const ast::IfStatement* stmt);
/// Handles a constant value
/// @param out the output stream
/// @param constant the constant value to emit
/// @returns true if the constant value was successfully emitted
bool EmitConstant(std::ostream& out, const sem::Constant& constant);
/// Handles a literal
/// @param out the output stream
/// @param lit the literal to emit

View File

@ -134,9 +134,7 @@ TEST_F(GlslGeneratorImplTest_Binary, Multiply_VectorScalar) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(),
"(vec3(1.0f, 1.0f, 1.0f) * "
"1.0f)");
EXPECT_EQ(out.str(), "(vec3(1.0f) * 1.0f)");
}
TEST_F(GlslGeneratorImplTest_Binary, Multiply_ScalarVector) {
@ -151,9 +149,7 @@ TEST_F(GlslGeneratorImplTest_Binary, Multiply_ScalarVector) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(),
"(1.0f * vec3(1.0f, 1.0f, "
"1.0f))");
EXPECT_EQ(out.str(), "(1.0f * vec3(1.0f))");
}
TEST_F(GlslGeneratorImplTest_Binary, Multiply_MatrixScalar) {
@ -198,7 +194,7 @@ TEST_F(GlslGeneratorImplTest_Binary, Multiply_MatrixVector) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(), "(mat * vec3(1.0f, 1.0f, 1.0f))");
EXPECT_EQ(out.str(), "(mat * vec3(1.0f))");
}
TEST_F(GlslGeneratorImplTest_Binary, Multiply_VectorMatrix) {
@ -213,7 +209,7 @@ TEST_F(GlslGeneratorImplTest_Binary, Multiply_VectorMatrix) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(), "(vec3(1.0f, 1.0f, 1.0f) * mat)");
EXPECT_EQ(out.str(), "(vec3(1.0f) * mat)");
}
TEST_F(GlslGeneratorImplTest_Binary, Multiply_MatrixMatrix) {

View File

@ -334,7 +334,7 @@ modf_result_vec3 tint_modf(vec3 param_0) {
void test_function() {
tint_modf(vec3(0.0f, 0.0f, 0.0f));
tint_modf(vec3(0.0f));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@ -394,7 +394,7 @@ frexp_result_vec3 tint_frexp(vec3 param_0) {
void test_function() {
tint_frexp(vec3(0.0f, 0.0f, 0.0f));
tint_frexp(vec3(0.0f));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

View File

@ -193,7 +193,7 @@ ExpectedResult expected_texture_overload(ast::builtin::test::ValidTextureOverloa
case ValidTextureOverload::kSampleGrad2dF32:
return R"(textureGrad(tint_symbol_sampler, vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f));)";
case ValidTextureOverload::kSampleGrad2dOffsetF32:
return R"(textureGradOffset(tint_symbol_sampler, vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f), ivec2(7, 7));)";
return R"(textureGradOffset(tint_symbol_sampler, vec2(1.0f, 2.0f), vec2(3.0f, 4.0f), vec2(5.0f, 6.0f), ivec2(7));)";
case ValidTextureOverload::kSampleGrad2dArrayF32:
return R"(textureGrad(tint_symbol_sampler, vec3(1.0f, 2.0f, float(3)), vec2(4.0f, 5.0f), vec2(6.0f, 7.0f));)";
case ValidTextureOverload::kSampleGrad2dArrayOffsetF32:

View File

@ -29,7 +29,7 @@ TEST_F(GlslGeneratorImplTest_Cast, EmitExpression_Cast_Scalar) {
std::stringstream out;
ASSERT_TRUE(gen.EmitExpression(out, cast)) << gen.error();
EXPECT_EQ(out.str(), "float(1)");
EXPECT_EQ(out.str(), "1.0f");
}
TEST_F(GlslGeneratorImplTest_Cast, EmitExpression_Cast_Vector) {
@ -40,7 +40,7 @@ TEST_F(GlslGeneratorImplTest_Cast, EmitExpression_Cast_Vector) {
std::stringstream out;
ASSERT_TRUE(gen.EmitExpression(out, cast)) << gen.error();
EXPECT_EQ(out.str(), "vec3(ivec3(1, 2, 3))");
EXPECT_EQ(out.str(), "vec3(1.0f, 2.0f, 3.0f)");
}
} // namespace

View File

@ -67,7 +67,7 @@ TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Float) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("float(-0.000012f)"));
EXPECT_THAT(gen.result(), HasSubstr("-0.000012f"));
}
TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Bool) {
@ -76,7 +76,7 @@ TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Bool) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("bool(true)"));
EXPECT_THAT(gen.result(), HasSubstr("true"));
}
TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Int) {
@ -85,7 +85,7 @@ TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Int) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("int(-12345)"));
EXPECT_THAT(gen.result(), HasSubstr("-12345"));
}
TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Uint) {
@ -94,7 +94,7 @@ TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Uint) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("uint(12345u)"));
EXPECT_THAT(gen.result(), HasSubstr("12345u"));
}
TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec) {
@ -112,7 +112,7 @@ TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_Empty) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("vec3(0.0f, 0.0f, 0.0f)"));
EXPECT_THAT(gen.result(), HasSubstr("vec3(0.0f)"));
}
TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Float) {
@ -168,7 +168,7 @@ TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Mat_Empty) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)"));
EXPECT_THAT(gen.result(), HasSubstr("mat2x3(vec3(0.0f), vec3(0.0f)"));
}
TEST_F(GlslGeneratorImplTest_Constructor, EmitConstructor_Type_Array) {

View File

@ -222,7 +222,7 @@ struct Interface {
};
Interface vert_main() {
Interface tint_symbol = Interface(vec4(0.0f, 0.0f, 0.0f, 0.0f), 0.5f, 0.25f);
Interface tint_symbol = Interface(vec4(0.0f), 0.5f, 0.25f);
return tint_symbol;
}
@ -789,9 +789,9 @@ TEST_F(GlslGeneratorImplTest_Function, Emit_Attribute_EntryPoint_Compute_WithWor
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#version 310 es
const int width = int(2);
const int height = int(3);
const int depth = int(4);
const int width = 2;
const int height = 3;
const int depth = 4;
layout(local_size_x = 2, local_size_y = 3, local_size_z = 4) in;
void main() {
return;
@ -816,15 +816,15 @@ TEST_F(GlslGeneratorImplTest_Function,
EXPECT_EQ(gen.result(), R"(#version 310 es
#ifndef WGSL_SPEC_CONSTANT_7
#define WGSL_SPEC_CONSTANT_7 int(2)
#define WGSL_SPEC_CONSTANT_7 2
#endif
const int width = WGSL_SPEC_CONSTANT_7;
#ifndef WGSL_SPEC_CONSTANT_8
#define WGSL_SPEC_CONSTANT_8 int(3)
#define WGSL_SPEC_CONSTANT_8 3
#endif
const int height = WGSL_SPEC_CONSTANT_8;
#ifndef WGSL_SPEC_CONSTANT_9
#define WGSL_SPEC_CONSTANT_9 int(4)
#define WGSL_SPEC_CONSTANT_9 4
#endif
const int depth = WGSL_SPEC_CONSTANT_9;
layout(local_size_x = WGSL_SPEC_CONSTANT_7, local_size_y = WGSL_SPEC_CONSTANT_8, local_size_z = WGSL_SPEC_CONSTANT_9) in;

View File

@ -291,7 +291,7 @@ layout(binding = 0, std430) buffer Data_1 {
mat2x3 b;
} data;
void tint_symbol() {
data.b = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
data.b = mat2x3(vec3(0.0f), vec3(0.0f));
}
void main() {

View File

@ -98,7 +98,7 @@ TEST_F(GlslGeneratorImplTest_VariableDecl, Emit_VariableDeclStatement_Initialize
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error();
EXPECT_EQ(gen.result(), R"(vec3 a = vec3(0.0f, 0.0f, 0.0f);
EXPECT_EQ(gen.result(), R"(vec3 a = vec3(0.0f);
)");
}
@ -112,7 +112,7 @@ TEST_F(GlslGeneratorImplTest_VariableDecl, Emit_VariableDeclStatement_Initialize
ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error();
EXPECT_EQ(gen.result(),
R"(mat2x3 a = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
R"(mat2x3 a = mat2x3(vec3(0.0f), vec3(0.0f));
)");
}

View File

@ -2,7 +2,7 @@
void tint_symbol() {
mat3 m = mat3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f), vec3(7.0f, 8.0f, 9.0f));
vec3 v = m[1];
vec3 v = mat3(vec3(1.0f, 2.0f, 3.0f), vec3(4.0f, 5.0f, 6.0f), vec3(7.0f, 8.0f, 9.0f))[1];
float f = v[1];
}

View File

@ -2,9 +2,9 @@
void tint_symbol() {
vec3 v = vec3(1.0f, 2.0f, 3.0f);
float scalar = v.y;
vec2 swizzle2 = v.xz;
vec3 swizzle3 = v.xzy;
float scalar = vec3(1.0f, 2.0f, 3.0f).y;
vec2 swizzle2 = vec3(1.0f, 2.0f, 3.0f).xz;
vec3 swizzle3 = vec3(1.0f, 2.0f, 3.0f).xzy;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

View File

@ -1,7 +1,7 @@
#version 310 es
void main_1() {
mat3 m = mat3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
mat3 m = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
vec3 x_15 = m[1];
float x_16 = x_15.y;
return;

View File

@ -1,7 +1,7 @@
#version 310 es
void main_1() {
vec3 v = vec3(0.0f, 0.0f, 0.0f);
vec3 v = vec3(0.0f);
float x_14 = v.y;
vec3 x_16 = v;
vec2 x_17 = vec2(x_16.x, x_16.z);

View File

@ -4,7 +4,7 @@ void tint_symbol() {
int x = 42;
int empty[4] = int[4](0, 0, 0, 0);
int nonempty[4] = int[4](1, 2, 3, 4);
int nonempty_with_expr[4] = int[4](1, x, (x + 1), nonempty[3]);
int nonempty_with_expr[4] = int[4](1, 42, (42 + 1), nonempty[3]);
int nested_empty[2][3][4] = int[2][3][4](int[3][4](int[4](0, 0, 0, 0), int[4](0, 0, 0, 0), int[4](0, 0, 0, 0)), int[3][4](int[4](0, 0, 0, 0), int[4](0, 0, 0, 0), int[4](0, 0, 0, 0)));
int tint_symbol_1[4] = int[4](1, 2, 3, 4);
int tint_symbol_2[4] = int[4](5, 6, 7, 8);
@ -15,7 +15,7 @@ void tint_symbol() {
int tint_symbol_7[4] = int[4](21, 22, 23, 24);
int tint_symbol_8[3][4] = int[3][4](tint_symbol_5, tint_symbol_6, tint_symbol_7);
int nested_nonempty[2][3][4] = int[2][3][4](tint_symbol_4, tint_symbol_8);
int tint_symbol_9[4] = int[4](1, 2, x, (x + 1));
int tint_symbol_9[4] = int[4](1, 2, 42, (42 + 1));
int tint_symbol_10[4] = int[4](5, 6, nonempty[2], (nonempty[3] + 1));
int tint_symbol_11[3][4] = int[3][4](tint_symbol_9, tint_symbol_10, nonempty);
int nested_nonempty_with_expr[2][3][4] = int[2][3][4](tint_symbol_11, nested_nonempty[1]);
@ -23,7 +23,7 @@ void tint_symbol() {
int subexpr_empty = tint_symbol_12[1];
int tint_symbol_13[4] = int[4](1, 2, 3, 4);
int subexpr_nonempty = tint_symbol_13[2];
int tint_symbol_14[4] = int[4](1, x, (x + 1), nonempty[3]);
int tint_symbol_14[4] = int[4](1, 42, (42 + 1), nonempty[3]);
int subexpr_nonempty_with_expr = tint_symbol_14[2];
int tint_symbol_15[2][4] = int[2][4](int[4](0, 0, 0, 0), int[4](0, 0, 0, 0));
int subexpr_nested_empty[4] = tint_symbol_15[1];
@ -31,7 +31,7 @@ void tint_symbol() {
int tint_symbol_17[4] = int[4](5, 6, 7, 8);
int tint_symbol_18[2][4] = int[2][4](tint_symbol_16, tint_symbol_17);
int subexpr_nested_nonempty[4] = tint_symbol_18[1];
int tint_symbol_19[4] = int[4](1, x, (x + 1), nonempty[3]);
int tint_symbol_19[4] = int[4](1, 42, (42 + 1), nonempty[3]);
int tint_symbol_20[2][4] = int[2][4](tint_symbol_19, nested_nonempty[1][2]);
int subexpr_nested_nonempty_with_expr[4] = tint_symbol_20[1];
}

View File

@ -16,14 +16,14 @@ layout(binding = 0, std430) buffer S_1 {
Inner arr[];
} s;
void tint_symbol(uint idx) {
s.arr[idx].a = ivec3(0, 0, 0);
s.arr[idx].a = ivec3(0);
s.arr[idx].b = 0;
s.arr[idx].c = uvec3(0u, 0u, 0u);
s.arr[idx].c = uvec3(0u);
s.arr[idx].d = 0u;
s.arr[idx].e = vec3(0.0f, 0.0f, 0.0f);
s.arr[idx].e = vec3(0.0f);
s.arr[idx].f = 0.0f;
s.arr[idx].g = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
s.arr[idx].h = mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
s.arr[idx].g = mat2x3(vec3(0.0f), vec3(0.0f));
s.arr[idx].h = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
ivec4 tint_symbol_1[4] = ivec4[4](ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
s.arr[idx].i = tint_symbol_1;
}

View File

@ -30,14 +30,14 @@ layout(binding = 0, std430) buffer S_1 {
Inner j[4];
} s;
void tint_symbol() {
s.a = ivec3(0, 0, 0);
s.a = ivec3(0);
s.b = 0;
s.c = uvec3(0u, 0u, 0u);
s.c = uvec3(0u);
s.d = 0u;
s.e = vec3(0.0f, 0.0f, 0.0f);
s.e = vec3(0.0f);
s.f = 0.0f;
s.g = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
s.h = mat3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
s.g = mat2x3(vec3(0.0f), vec3(0.0f));
s.h = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
Inner tint_symbol_1 = Inner(0);
s.i = tint_symbol_1;
Inner tint_symbol_2[4] = Inner[4](Inner(0), Inner(0), Inner(0), Inner(0));

View File

@ -16,7 +16,7 @@ struct VertexInputs1 {
vec4 tint_symbol(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
uint foo = (inputs0.vertex_index + instance_index);
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -31,7 +31,7 @@ struct VertexOutputs {
VertexOutputs vs_main(uint VertexIndex) {
vec2 texcoord[3] = vec2[3](vec2(-0.5f, 0.0f), vec2(1.5f, 0.0f), vec2(0.5f, 2.0f));
VertexOutputs tint_symbol = VertexOutputs(vec2(0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol.position = vec4(((texcoord[VertexIndex] * 2.0f) - vec2(1.0f, 1.0f)), 0.0f, 1.0f);
tint_symbol.position = vec4(((texcoord[VertexIndex] * 2.0f) - vec2(1.0f)), 0.0f, 1.0f);
bool flipY = (uniforms.u_scale.y < 0.0f);
if (flipY) {
tint_symbol.texcoords = ((((texcoord[VertexIndex] * uniforms.u_scale) + uniforms.u_offset) * vec2(1.0f, -1.0f)) + vec2(0.0f, 1.0f));
@ -69,10 +69,10 @@ bool tint_discard = false;
uniform highp sampler2D myTexture_mySampler;
vec4 fs_main(vec2 texcoord) {
vec2 clampedTexcoord = clamp(texcoord, vec2(0.0f, 0.0f), vec2(1.0f, 1.0f));
vec2 clampedTexcoord = clamp(texcoord, vec2(0.0f), vec2(1.0f));
if (!(all(equal(clampedTexcoord, texcoord)))) {
tint_discard = true;
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
vec4 srcColor = texture(myTexture_mySampler, texcoord);
return srcColor;

View File

@ -78,24 +78,24 @@ void main_1() {
return;
}
vec4 x_34 = x_29.vEyePosition;
vec3 x_38 = vec3(0.0f, 0.0f, 0.0f);
viewDirectionW = normalize((vec3(x_34.x, x_34.y, x_34.z) - x_38));
baseColor = vec4(1.0f, 1.0f, 1.0f, 1.0f);
vec3 x_38 = vec3(0.0f);
viewDirectionW = normalize((vec3(x_34.x, x_34.y, x_34.z) - vec3(0.0f)));
baseColor = vec4(1.0f);
vec4 x_52 = x_49.vDiffuseColor;
diffuseColor = vec3(x_52.x, x_52.y, x_52.z);
float x_60 = x_49.vDiffuseColor.w;
alpha = x_60;
vec3 x_62 = vec3(0.0f, 0.0f, 0.0f);
vec3 x_64 = vec3(0.0f, 0.0f, 0.0f);
normalW = normalize(-(cross(dFdx(x_62), dFdy(x_64))));
uvOffset = vec2(0.0f, 0.0f);
vec4 x_74 = vec4(0.0f, 0.0f, 0.0f, 0.0f);
vec3 x_62 = vec3(0.0f);
vec3 x_64 = vec3(0.0f);
normalW = normalize(-(cross(dFdx(vec3(0.0f)), dFdy(vec3(0.0f)))));
uvOffset = vec2(0.0f);
vec4 x_74 = vec4(0.0f);
vec4 x_76 = baseColor;
vec3 x_78 = (vec3(x_76.x, x_76.y, x_76.z) * vec3(x_74.x, x_74.y, x_74.z));
vec3 x_78 = (vec3(x_76.x, x_76.y, x_76.z) * vec3(vec4(0.0f).x, vec4(0.0f).y, vec4(0.0f).z));
baseColor = vec4(x_78.x, x_78.y, x_78.z, baseColor.w);
baseAmbientColor = vec3(1.0f, 1.0f, 1.0f);
baseAmbientColor = vec3(1.0f);
glossiness = 0.0f;
diffuseBase = vec3(0.0f, 0.0f, 0.0f);
diffuseBase = vec3(0.0f);
shadow = 1.0f;
refractionColor = vec4(0.0f, 0.0f, 0.0f, 1.0f);
reflectionColor = vec4(0.0f, 0.0f, 0.0f, 1.0f);
@ -106,14 +106,14 @@ void main_1() {
vec3 x_99 = emissiveColor;
vec3 x_103 = x_49.vAmbientColor;
vec4 x_108 = baseColor;
finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), vec3(0.0f, 0.0f, 0.0f), vec3(1.0f, 1.0f, 1.0f)) * vec3(x_108.x, x_108.y, x_108.z));
finalSpecular = vec3(0.0f, 0.0f, 0.0f);
finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), vec3(0.0f), vec3(1.0f)) * vec3(x_108.x, x_108.y, x_108.z));
finalSpecular = vec3(0.0f);
vec4 x_118 = reflectionColor;
vec4 x_121 = refractionColor;
vec3 x_123 = ((((finalDiffuse * baseAmbientColor) + finalSpecular) + vec3(x_118.x, x_118.y, x_118.z)) + vec3(x_121.x, x_121.y, x_121.z));
color = vec4(x_123.x, x_123.y, x_123.z, alpha);
vec4 x_129 = color;
vec3 x_132 = max(vec3(x_129.x, x_129.y, x_129.z), vec3(0.0f, 0.0f, 0.0f));
vec3 x_132 = max(vec3(x_129.x, x_129.y, x_129.z), vec3(0.0f));
color = vec4(x_132.x, x_132.y, x_132.z, color.w);
float x_140 = x_137.visibility;
float x_142 = color.w;

View File

@ -81,10 +81,10 @@ void tint_symbol_2(uvec3 GlobalInvocationID) {
{
for(int y_1 = 0; (y_1 < 2); y_1 = (y_1 + 1)) {
{
for(int x_1 = 0; (x_1 < TILE_COUNT_X); x_1 = (x_1 + 1)) {
ivec2 tilePixel0Idx = ivec2((x_1 * TILE_SIZE), (y_1 * TILE_SIZE));
for(int x_1 = 0; (x_1 < 2); x_1 = (x_1 + 1)) {
ivec2 tilePixel0Idx = ivec2((x_1 * 16), (y_1 * 16));
vec2 floorCoord = (((2.0f * vec2(tilePixel0Idx)) / uniforms.fullScreenSize.xy) - vec2(1.0f));
vec2 ceilCoord = (((2.0f * vec2((tilePixel0Idx + ivec2(TILE_SIZE)))) / uniforms.fullScreenSize.xy) - vec2(1.0f));
vec2 ceilCoord = (((2.0f * vec2((tilePixel0Idx + ivec2(16)))) / uniforms.fullScreenSize.xy) - vec2(1.0f));
vec2 viewFloorCoord = vec2((((-(viewNear) * floorCoord.x) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * floorCoord.y) - (M[2][1] * viewNear)) / M[1][1]));
vec2 viewCeilCoord = vec2((((-(viewNear) * ceilCoord.x) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * ceilCoord.y) - (M[2][1] * viewNear)) / M[1][1]));
frustumPlanes[0] = vec4(1.0f, 0.0f, (-(viewFloorCoord.x) / viewNear), 0.0f);
@ -115,7 +115,7 @@ void tint_symbol_2(uvec3 GlobalInvocationID) {
}
}
if ((dp >= 0.0f)) {
uint tileId = uint((x_1 + (y_1 * TILE_COUNT_X)));
uint tileId = uint((x_1 + (y_1 * 2)));
bool tint_tmp = (tileId < 0u);
if (!tint_tmp) {
tint_tmp = (tileId >= config.numTiles);

View File

@ -36,20 +36,20 @@ bool test_int_S1_c0_b() {
ok = true;
x_41_phi = false;
if (true) {
x_40 = all(equal((ivec4(0, 0, 0, 0) / ivec4(x_27, x_27, x_27, x_27)), ivec4(0, 0, 0, 0)));
x_40 = all(equal((ivec4(0) / ivec4(x_27, x_27, x_27, x_27)), ivec4(0)));
x_41_phi = x_40;
}
bool x_41 = x_41_phi;
ok = x_41;
ivec4 x_44 = ivec4(x_27, x_27, x_27, x_27);
val = x_44;
ivec4 x_47 = (x_44 + ivec4(1, 1, 1, 1));
ivec4 x_47 = (x_44 + ivec4(1));
val = x_47;
ivec4 x_48 = (x_47 - ivec4(1, 1, 1, 1));
ivec4 x_48 = (x_47 - ivec4(1));
val = x_48;
ivec4 x_49 = (x_48 + ivec4(1, 1, 1, 1));
ivec4 x_49 = (x_48 + ivec4(1));
val = x_49;
ivec4 x_50 = (x_49 - ivec4(1, 1, 1, 1));
ivec4 x_50 = (x_49 - ivec4(1));
val = x_50;
x_55_phi = false;
if (x_41) {
@ -58,13 +58,13 @@ bool test_int_S1_c0_b() {
}
bool x_55 = x_55_phi;
ok = x_55;
ivec4 x_58 = (x_50 * ivec4(2, 2, 2, 2));
ivec4 x_58 = (x_50 * ivec4(2));
val = x_58;
ivec4 x_59 = (x_58 / ivec4(2, 2, 2, 2));
ivec4 x_59 = (x_58 / ivec4(2));
val = x_59;
ivec4 x_60 = (x_59 * ivec4(2, 2, 2, 2));
ivec4 x_60 = (x_59 * ivec4(2));
val = x_60;
ivec4 x_61 = (x_60 / ivec4(2, 2, 2, 2));
ivec4 x_61 = (x_60 / ivec4(2));
val = x_61;
x_66_phi = false;
if (x_55) {
@ -97,20 +97,20 @@ void main_1() {
x_9_ok = true;
x_87_phi = false;
if (true) {
x_86 = all(equal((vec4(0.0f, 0.0f, 0.0f, 0.0f) / vec4(x_77, x_77, x_77, x_77)), vec4(0.0f, 0.0f, 0.0f, 0.0f)));
x_86 = all(equal((vec4(0.0f) / vec4(x_77, x_77, x_77, x_77)), vec4(0.0f)));
x_87_phi = x_86;
}
bool x_87 = x_87_phi;
x_9_ok = x_87;
vec4 x_89 = vec4(x_77, x_77, x_77, x_77);
x_10_val = x_89;
vec4 x_92 = (x_89 + vec4(1.0f, 1.0f, 1.0f, 1.0f));
vec4 x_92 = (x_89 + vec4(1.0f));
x_10_val = x_92;
vec4 x_93 = (x_92 - vec4(1.0f, 1.0f, 1.0f, 1.0f));
vec4 x_93 = (x_92 - vec4(1.0f));
x_10_val = x_93;
vec4 x_94 = (x_93 + vec4(1.0f, 1.0f, 1.0f, 1.0f));
vec4 x_94 = (x_93 + vec4(1.0f));
x_10_val = x_94;
vec4 x_95 = (x_94 - vec4(1.0f, 1.0f, 1.0f, 1.0f));
vec4 x_95 = (x_94 - vec4(1.0f));
x_10_val = x_95;
x_100_phi = false;
if (x_87) {
@ -119,13 +119,13 @@ void main_1() {
}
bool x_100 = x_100_phi;
x_9_ok = x_100;
vec4 x_103 = (x_95 * vec4(2.0f, 2.0f, 2.0f, 2.0f));
vec4 x_103 = (x_95 * vec4(2.0f));
x_10_val = x_103;
vec4 x_104 = (x_103 / vec4(2.0f, 2.0f, 2.0f, 2.0f));
vec4 x_104 = (x_103 / vec4(2.0f));
x_10_val = x_104;
vec4 x_105 = (x_104 * vec4(2.0f, 2.0f, 2.0f, 2.0f));
vec4 x_105 = (x_104 * vec4(2.0f));
x_10_val = x_105;
vec4 x_106 = (x_105 / vec4(2.0f, 2.0f, 2.0f, 2.0f));
vec4 x_106 = (x_105 / vec4(2.0f));
x_10_val = x_106;
x_111_phi = false;
if (x_100) {

View File

@ -3,7 +3,7 @@
vec4 tint_symbol() {
vec3 light = vec3(1.200000048f, 1.0f, 2.0f);
vec3 negative_light = -(light);
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -21,7 +21,7 @@ vec4 tint_symbol(uint tint_symbol_1) {
mat2 x_23 = x_20.transform1;
mat2 x_28 = x_26.transform2;
uint x_46 = tint_symbol_1;
vec2 tint_symbol_2[3] = vec2[3](vec2(-1.0f, 1.0f), vec2(1.0f, 1.0f), vec2(-1.0f, -1.0f));
vec2 tint_symbol_2[3] = vec2[3](vec2(-1.0f, 1.0f), vec2(1.0f), vec2(-1.0f));
indexable = tint_symbol_2;
vec2 x_51 = indexable[x_46];
vec2 x_52 = (mat2((x_23[0u] + x_28[0u]), (x_23[1u] + x_28[1u])) * x_51);

View File

@ -4,11 +4,11 @@ layout(r32ui) uniform highp writeonly uimage2D Dst;
uniform highp usampler2D Src_1;
void main_1() {
uvec4 srcValue = uvec4(0u, 0u, 0u, 0u);
uvec4 x_18 = texelFetch(Src_1, ivec2(0, 0), 0);
uvec4 x_18 = texelFetch(Src_1, ivec2(0), 0);
srcValue = x_18;
uint x_22 = srcValue.x;
srcValue.x = (x_22 + uint(1));
imageStore(Dst, ivec2(0, 0), srcValue);
imageStore(Dst, ivec2(0), srcValue);
return;
}

View File

@ -4,11 +4,11 @@ layout(r32ui) uniform highp writeonly uimage2D Dst;
uniform highp usampler2D Src_1;
void tint_symbol() {
uvec4 srcValue = uvec4(0u, 0u, 0u, 0u);
uvec4 x_22 = texelFetch(Src_1, ivec2(0, 0), 0);
uvec4 x_22 = texelFetch(Src_1, ivec2(0), 0);
srcValue = x_22;
uint x_24 = srcValue.x;
uint x_25 = (x_24 + 1u);
imageStore(Dst, ivec2(0, 0), srcValue.xxxx);
imageStore(Dst, ivec2(0), srcValue.xxxx);
return;
}

View File

@ -48,9 +48,9 @@ void tint_symbol_1(uvec3 GlobalInvocationID) {
}
uint outputIndex = ((GlobalInvocationID.y * uint(size.x)) + GlobalInvocationID.x);
if (success) {
tint_symbol.result[outputIndex] = uint(1);
tint_symbol.result[outputIndex] = 1u;
} else {
tint_symbol.result[outputIndex] = uint(0);
tint_symbol.result[outputIndex] = 0u;
}
}

View File

@ -807,7 +807,7 @@ void main_1() {
int i_2 = 0;
vec2 uv = vec2(0.0f, 0.0f);
vec2 x_717 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_717;
i_2 = 0;
QuicksortObject x_721 = obj;
@ -824,10 +824,10 @@ void main_1() {
vec2 x_431 = vec2(vec3(1.0f, 2.0f, 3.0f).x, vec3(1.0f, 2.0f, 3.0f).x);
int x_158 = i_2;
vec2 x_723 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_723;
vec3 x_725 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_725;
vec2 x_432 = vec2(x_431.y, x_431.y);
QuicksortObject x_726 = obj;
@ -841,7 +841,7 @@ void main_1() {
QuicksortObject tint_symbol_44 = QuicksortObject(tint_symbol_43);
obj = tint_symbol_44;
obj = x_756;
vec2 x_446 = vec2(vec2(0.0f, 0.0f).x, vec2(0.0f, 0.0f).x);
vec2 x_446 = vec2(vec2(0.0f).x, vec2(0.0f).x);
int x_757 = i_2;
i_2 = 0;
i_2 = x_757;
@ -853,11 +853,11 @@ void main_1() {
obj = x_758;
vec4 x_184 = tint_symbol;
vec2 x_759 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_759;
vec2 x_447 = vec2(vec2(0.0f, 0.0f).y, vec2(0.0f, 0.0f).y);
vec2 x_447 = vec2(vec2(0.0f).y, vec2(0.0f).y);
vec2 x_760 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_760;
vec2 x_185 = vec2(x_184.x, x_184.y);
vec3 x_448 = vec3(x_185.y, x_446.y, x_446.y);
@ -867,7 +867,7 @@ void main_1() {
obj = tint_symbol_48;
obj = x_761;
vec2 x_762 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_762;
vec2 x_191 = x_188.resolution;
QuicksortObject x_763 = obj;
@ -877,7 +877,7 @@ void main_1() {
obj = x_763;
vec3 x_449 = vec3(x_184.y, vec3(1.0f, 2.0f, 3.0f).z, x_184.w);
vec3 x_764 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_764;
vec2 x_192 = (x_185 / x_191);
QuicksortObject x_765 = obj;
@ -887,15 +887,15 @@ void main_1() {
obj = x_765;
vec2 x_450 = vec2(x_447.x, x_185.y);
vec3 x_766 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
vec3 x_767 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_767;
color = x_766;
uv = x_192;
color = vec3(1.0f, 2.0f, 3.0f);
vec3 x_768 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_768;
vec3 x_451 = vec3(x_185.x, x_185.y, x_446.y);
QuicksortObject x_769 = obj;
@ -931,10 +931,10 @@ void main_1() {
vec3 x_453 = vec3(x_451.x, x_450.x, x_450.y);
color.x = (x_206 + float(x_201));
vec2 x_776 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_776;
vec2 x_777 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_777;
vec2 x_454 = vec2(x_184.y, x_184.y);
float x_210 = uv.x;
@ -954,7 +954,7 @@ void main_1() {
int x_781 = obj.numbers[0u];
obj.numbers[0u] = 0;
obj.numbers[0u] = x_781;
vec3 x_456 = vec3(vec2(0.0f, 0.0f).y, x_448.y, x_448.y);
vec3 x_456 = vec3(vec2(0.0f).y, x_448.y, x_448.y);
float x_782 = uv.x;
uv.x = 0.0f;
uv.x = x_782;
@ -966,14 +966,14 @@ void main_1() {
obj = x_783;
vec2 x_457 = vec2(x_454.x, x_454.x);
vec2 x_784 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_784;
QuicksortObject x_785 = obj;
int tint_symbol_63[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
QuicksortObject tint_symbol_64 = QuicksortObject(tint_symbol_63);
obj = tint_symbol_64;
obj = x_785;
vec2 x_458 = vec2(vec3(1.0f, 2.0f, 3.0f).z, vec2(0.0f, 0.0f).y);
vec2 x_458 = vec2(vec3(1.0f, 2.0f, 3.0f).z, vec2(0.0f).y);
int x_786 = i_2;
i_2 = 0;
i_2 = x_786;
@ -982,10 +982,10 @@ void main_1() {
color[0] = 0.0f;
color[0] = x_787;
vec3 x_788 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_788;
vec3 x_789 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_789;
vec3 x_459 = vec3(x_454.y, x_454.y, x_447.y);
float x_790 = color[0];
@ -1008,12 +1008,12 @@ void main_1() {
uv.x = x_794;
vec3 x_460 = vec3(x_453.z, x_453.y, x_453.y);
vec2 x_795 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_795;
float x_796 = uv.x;
uv.x = 0.0f;
uv.x = x_796;
vec2 x_461 = vec2(vec2(0.0f, 0.0f).y, vec2(0.0f, 0.0f).y);
vec2 x_461 = vec2(vec2(0.0f).y, vec2(0.0f).y);
float x_797 = uv.x;
uv.x = 0.0f;
uv.x = x_797;
@ -1057,7 +1057,7 @@ void main_1() {
int x_808 = i_2;
i_2 = 0;
i_2 = x_808;
vec2 x_466 = vec2(x_455.y, vec2(0.0f, 0.0f).y);
vec2 x_466 = vec2(x_455.y, vec2(0.0f).y);
int x_809 = i_2;
i_2 = 0;
i_2 = x_809;
@ -1075,7 +1075,7 @@ void main_1() {
uv.x = x_812;
float x_238 = uv[0];
vec3 x_813 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_813;
float x_814 = color.x;
color.x = 0.0f;
@ -1102,7 +1102,7 @@ void main_1() {
uv.x = x_819;
float x_249 = color.z;
vec3 x_820 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_820;
vec3 x_469 = vec3(x_467.x, x_191.y, x_467.y);
float x_821 = color.z;
@ -1111,13 +1111,13 @@ void main_1() {
int x_822 = obj.numbers[0u];
obj.numbers[0u] = 0;
obj.numbers[0u] = x_822;
vec2 x_470 = vec2(vec2(0.0f, 0.0f).x, vec2(0.0f, 0.0f).y);
vec2 x_470 = vec2(vec2(0.0f).x, vec2(0.0f).y);
float x_823 = color.z;
color.z = 0.0f;
color.z = x_823;
color.z = (x_249 + float(x_245));
vec2 x_824 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_824;
vec2 x_471 = vec2(x_470.y, x_470.y);
}
@ -1130,7 +1130,7 @@ void main_1() {
uv[0] = 0.0f;
uv[0] = x_826;
vec3 x_827 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_827;
vec3 x_473 = vec3(x_446.y, x_453.x, x_453.x);
int x_828 = obj.numbers[4];
@ -1153,7 +1153,7 @@ void main_1() {
color.x = x_832;
vec2 x_476 = vec2(x_451.z, x_460.y);
color.y = (x_257 + float(x_254));
vec3 x_477 = vec3(vec2(0.0f, 0.0f).x, x_472.x, vec2(0.0f, 0.0f).y);
vec3 x_477 = vec3(vec2(0.0f).x, x_472.x, vec2(0.0f).y);
float x_833 = uv.x;
uv.x = 0.0f;
uv.x = x_833;
@ -1168,21 +1168,21 @@ void main_1() {
int x_836 = i_2;
i_2 = 0;
i_2 = x_836;
vec3 x_479 = vec3(vec2(0.0f, 0.0f).y, x_454.y, vec2(0.0f, 0.0f).x);
vec3 x_479 = vec3(vec2(0.0f).y, x_454.y, vec2(0.0f).x);
int x_837 = obj.numbers[0u];
obj.numbers[0u] = 0;
obj.numbers[0u] = x_837;
float x_838 = color.y;
color.y = 0.0f;
color.y = x_838;
vec3 x_480 = vec3(x_446.x, x_446.x, vec2(0.0f, 0.0f).y);
vec3 x_480 = vec3(x_446.x, x_446.x, vec2(0.0f).y);
float x_839 = uv.x;
uv.x = 0.0f;
uv.x = x_839;
if ((x_261 > 0.25f)) {
vec2 x_481 = vec2(x_447.x, x_480.z);
vec3 x_840 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_840;
int x_267 = obj.numbers[5u];
float x_841 = color.x;
@ -1259,7 +1259,7 @@ void main_1() {
vec2 x_488 = vec2(x_473.z, x_473.y);
float x_283 = color.y;
vec2 x_860 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_860;
float x_861 = color.x;
color.x = 0.0f;
@ -1309,14 +1309,14 @@ void main_1() {
obj.numbers[4] = x_871;
if ((x_287 > 0.75f)) {
vec3 x_872 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_872;
float x_873 = color.x;
color.x = 0.0f;
color.x = x_873;
vec3 x_495 = vec3(x_192.y, x_192.x, x_192.y);
vec3 x_874 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_874;
int x_293 = obj.numbers[7];
float x_875 = uv.x;
@ -1369,7 +1369,7 @@ void main_1() {
i_2 = x_887;
vec2 x_502 = vec2(x_451.y, x_192.y);
vec2 x_888 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_888;
int x_301 = obj.numbers[8];
int x_889 = i_2;
@ -1382,7 +1382,7 @@ void main_1() {
float x_891 = color.y;
color.y = 0.0f;
color.y = x_891;
vec2 x_504 = vec2(x_453.y, vec2(0.0f, 0.0f).x);
vec2 x_504 = vec2(x_453.y, vec2(0.0f).x);
float x_892 = color.x;
color.x = 0.0f;
color.x = x_892;
@ -1407,7 +1407,7 @@ void main_1() {
color.y = x_897;
color.z = (x_304 + float(x_301));
vec2 x_898 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_898;
float x_899 = uv.x;
uv.x = 0.0f;
@ -1440,7 +1440,7 @@ void main_1() {
i_2 = x_906;
vec2 x_511 = vec2(x_485.z, x_485.y);
vec3 x_907 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_907;
float x_908 = uv.y;
uv.y = 0.0f;
@ -1476,16 +1476,16 @@ void main_1() {
color.x = 0.0f;
color.x = x_915;
vec3 x_916 = color;
color = vec3(0.0f, 0.0f, 0.0f);
color = vec3(0.0f);
color = x_916;
vec2 x_516 = vec2(x_452.x, x_452.x);
vec2 x_917 = uv;
uv = vec2(0.0f, 0.0f);
uv = vec2(0.0f);
uv = x_917;
float x_918 = uv.x;
uv.x = 0.0f;
uv.x = x_918;
vec3 x_517 = vec3(vec2(0.0f, 0.0f).x, vec2(0.0f, 0.0f).x, vec2(0.0f, 0.0f).y);
vec3 x_517 = vec3(vec2(0.0f).x, vec2(0.0f).x, vec2(0.0f).y);
color.x = (float(x_317) + x_320);
float x_919 = color.x;
color.x = 0.0f;

View File

@ -5,8 +5,8 @@ void unused_entry_point() {
return;
}
void f() {
mat4 m = mat4(vec4(1.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f));
vec4 v1 = m[0];
mat4 m = mat4(vec4(1.0f), vec4(1.0f), vec4(1.0f), vec4(1.0f));
vec4 v1 = mat4(vec4(1.0f), vec4(1.0f), vec4(1.0f), vec4(1.0f))[0];
float a = v1[0];
}

View File

@ -7,11 +7,11 @@ struct Output {
};
Output tint_symbol(uint VertexIndex, uint InstanceIndex) {
vec2 zv[4] = vec2[4](vec2(0.200000003f, 0.200000003f), vec2(0.300000012f, 0.300000012f), vec2(-0.100000001f, -0.100000001f), vec2(1.100000024f, 1.100000024f));
vec2 zv[4] = vec2[4](vec2(0.200000003f), vec2(0.300000012f), vec2(-0.100000001f), vec2(1.100000024f));
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);
vec4 colors[4] = vec4[4](vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f, 1.0f, 1.0f, 1.0f));
vec4 colors[4] = vec4[4](vec4(1.0f, 0.0f, 0.0f, 1.0f), vec4(0.0f, 1.0f, 0.0f, 1.0f), vec4(0.0f, 0.0f, 1.0f, 1.0f), vec4(1.0f));
tint_symbol_1.color = colors[InstanceIndex];
return tint_symbol_1;
}

View File

@ -8,6 +8,6 @@ void f() {
int i = 0;
int j = 0;
mat2 m = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f));
float f_1 = m[i][j];
float f_1 = mat2(vec2(1.0f, 2.0f), vec2(3.0f, 4.0f))[i][j];
}

View File

@ -6,7 +6,7 @@ layout(binding = 1, std430) buffer Result_1 {
} result;
uniform highp sampler2D tex_1;
void tint_symbol(uvec3 GlobalInvocationId) {
result.values[((GlobalInvocationId.y * width) + GlobalInvocationId.x)] = texelFetch(tex_1, ivec2(int(GlobalInvocationId.x), int(GlobalInvocationId.y)), 0).x;
result.values[((GlobalInvocationId.y * 128u) + GlobalInvocationId.x)] = texelFetch(tex_1, ivec2(int(GlobalInvocationId.x), int(GlobalInvocationId.y)), 0).x;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

View File

@ -46,7 +46,7 @@ void tint_symbol_1(uvec3 GlobalInvocationID) {
if ((tint_tmp)) {
bool tint_tmp_3 = success;
if (tint_tmp_3) {
tint_tmp_3 = all(equal(texelFetch(dst_1, ivec2(dstTexCoord), 0), nonCoveredColor));
tint_tmp_3 = all(equal(texelFetch(dst_1, ivec2(dstTexCoord), 0), vec4(0.0f, 1.0f, 0.0f, 1.0f)));
}
success = (tint_tmp_3);
} else {

View File

@ -71,32 +71,32 @@ void tint_symbol(uvec3 local_id, uvec3 global_id, uint local_invocation_index) {
}
}
barrier();
uint tileRow = (local_id.y * RowPerThread);
uint tileCol = (local_id.x * ColPerThread);
uint globalRow = (global_id.y * RowPerThread);
uint globalCol = (global_id.x * ColPerThread);
uint numTiles = (((uniforms.dimInner - 1u) / TileInner) + 1u);
uint tileRow = (local_id.y * 4u);
uint tileCol = (local_id.x * 4u);
uint globalRow = (global_id.y * 4u);
uint globalCol = (global_id.x * 4u);
uint numTiles = (((uniforms.dimInner - 1u) / 64u) + 1u);
float acc[16] = float[16](0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
float ACached = 0.0f;
float BCached[4] = float[4](0.0f, 0.0f, 0.0f, 0.0f);
{
for(uint index = 0u; (index < (RowPerThread * ColPerThread)); index = (index + 1u)) {
for(uint index = 0u; (index < (4u * 4u)); index = (index + 1u)) {
acc[index] = 0.0f;
}
}
uint ColPerThreadA = (TileInner / 16u);
uint ColPerThreadA = (64u / 16u);
uint tileColA = (local_id.x * ColPerThreadA);
uint RowPerThreadB = (TileInner / 16u);
uint RowPerThreadB = (64u / 16u);
uint tileRowB = (local_id.y * RowPerThreadB);
{
for(uint t = 0u; (t < numTiles); t = (t + 1u)) {
{
for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) {
for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) {
{
for(uint innerCol = 0u; (innerCol < ColPerThreadA); innerCol = (innerCol + 1u)) {
uint inputRow = (tileRow + innerRow);
uint inputCol = (tileColA + innerCol);
float tint_symbol_1 = mm_readA((globalRow + innerRow), ((t * TileInner) + inputCol));
float tint_symbol_1 = mm_readA((globalRow + innerRow), ((t * 64u) + inputCol));
mm_Asub[inputRow][inputCol] = tint_symbol_1;
}
}
@ -105,10 +105,10 @@ void tint_symbol(uvec3 local_id, uvec3 global_id, uint local_invocation_index) {
{
for(uint innerRow = 0u; (innerRow < RowPerThreadB); innerRow = (innerRow + 1u)) {
{
for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) {
for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) {
uint inputRow = (tileRowB + innerRow);
uint inputCol = (tileCol + innerCol);
float tint_symbol_2 = mm_readB(((t * TileInner) + inputRow), (globalCol + innerCol));
float tint_symbol_2 = mm_readB(((t * 64u) + inputRow), (globalCol + innerCol));
mm_Bsub[innerCol][inputCol] = tint_symbol_2;
}
}
@ -116,18 +116,18 @@ void tint_symbol(uvec3 local_id, uvec3 global_id, uint local_invocation_index) {
}
barrier();
{
for(uint k = 0u; (k < TileInner); k = (k + 1u)) {
for(uint k = 0u; (k < 64u); k = (k + 1u)) {
{
for(uint inner = 0u; (inner < ColPerThread); inner = (inner + 1u)) {
for(uint inner = 0u; (inner < 4u); inner = (inner + 1u)) {
BCached[inner] = mm_Bsub[k][(tileCol + inner)];
}
}
{
for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) {
for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) {
ACached = mm_Asub[(tileRow + innerRow)][k];
{
for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) {
uint index = ((innerRow * ColPerThread) + innerCol);
for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) {
uint index = ((innerRow * 4u) + innerCol);
acc[index] = (acc[index] + (ACached * BCached[innerCol]));
}
}
@ -139,10 +139,10 @@ void tint_symbol(uvec3 local_id, uvec3 global_id, uint local_invocation_index) {
}
}
{
for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) {
for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) {
{
for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) {
uint index = ((innerRow * ColPerThread) + innerCol);
for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) {
uint index = ((innerRow * 4u) + innerCol);
mm_write((globalRow + innerRow), (globalCol + innerCol), acc[index]);
}
}

View File

@ -28,7 +28,7 @@ void tint_symbol(uvec3 WorkGroupID, uvec3 LocalInvocationID, uint local_invocati
for(uint idx = local_invocation_index; (idx < 1024u); idx = (idx + 64u)) {
uint i_1 = (idx / 256u);
uint i_2 = (idx % 256u);
tile[i_1][i_2] = vec3(0.0f, 0.0f, 0.0f);
tile[i_1][i_2] = vec3(0.0f);
}
}
barrier();
@ -43,7 +43,7 @@ void tint_symbol(uvec3 WorkGroupID, uvec3 LocalInvocationID, uint local_invocati
if ((flip.value != 0u)) {
loadIndex = loadIndex.yx;
}
tile[r][((4u * LocalInvocationID.x) + c)] = textureLod(inputTex_samp, ((vec2(loadIndex) + vec2(0.25f, 0.25f)) / vec2(dims)), 0.0f).rgb;
tile[r][((4u * LocalInvocationID.x) + c)] = textureLod(inputTex_samp, ((vec2(loadIndex) + vec2(0.25f)) / vec2(dims)), 0.0f).rgb;
}
}
}
@ -67,7 +67,7 @@ void tint_symbol(uvec3 WorkGroupID, uvec3 LocalInvocationID, uint local_invocati
tint_tmp = all(lessThan(writeIndex, dims));
}
if ((tint_tmp)) {
vec3 acc = vec3(0.0f, 0.0f, 0.0f);
vec3 acc = vec3(0.0f);
{
for(uint f = 0u; (f < params.filterDim); f = (f + 1u)) {
uint i = ((center + f) - filterOffset);

View File

@ -40,7 +40,7 @@ bool coordsInBounds_vi2_vi2_(inout ivec2 coord, inout ivec2 shape) {
bool x_87 = false;
bool x_88_phi = false;
ivec2 x_76 = coord;
bool x_81 = all(greaterThanEqual(x_76, ivec2(0, 0)));
bool x_81 = all(greaterThanEqual(x_76, ivec2(0)));
x_88_phi = x_81;
if (x_81) {
ivec2 x_84 = coord;

View File

@ -67,7 +67,7 @@ mat4 getFrameData_f1_(inout float frameID) {
vec4 x_40 = texture(frameMapTexture_frameMapSampler, vec2(fX, 0.0f), 0.0f);
vec4 x_47 = texture(frameMapTexture_frameMapSampler, vec2(fX, 0.25f), 0.0f);
vec4 x_54 = texture(frameMapTexture_frameMapSampler, vec2(fX, 0.5f), 0.0f);
return mat4(vec4(x_40.x, x_40.y, x_40.z, x_40.w), vec4(x_47.x, x_47.y, x_47.z, x_47.w), vec4(x_54.x, x_54.y, x_54.z, x_54.w), vec4(vec4(0.0f, 0.0f, 0.0f, 0.0f).x, vec4(0.0f, 0.0f, 0.0f, 0.0f).y, vec4(0.0f, 0.0f, 0.0f, 0.0f).z, vec4(0.0f, 0.0f, 0.0f, 0.0f).w));
return mat4(vec4(x_40.x, x_40.y, x_40.z, x_40.w), vec4(x_47.x, x_47.y, x_47.z, x_47.w), vec4(x_54.x, x_54.y, x_54.z, x_54.w), vec4(vec4(0.0f).x, vec4(0.0f).y, vec4(0.0f).z, vec4(0.0f).w));
}
uniform highp sampler2D tileMapsTexture1_tileMapsSampler;
@ -93,17 +93,17 @@ void main_1() {
vec4 nc = vec4(0.0f, 0.0f, 0.0f, 0.0f);
float alpha = 0.0f;
vec3 mixed = vec3(0.0f, 0.0f, 0.0f);
color = vec4(0.0f, 0.0f, 0.0f, 0.0f);
color = vec4(0.0f);
tileUV = fract(tUV);
float x_91 = tileUV.y;
tileUV.y = (1.0f - x_91);
tileID = floor(tUV);
vec2 x_101 = x_20.spriteMapSize;
sheetUnits = (vec2(1.0f, 1.0f) / x_101);
sheetUnits = (vec2(1.0f) / x_101);
float x_106 = x_20.spriteCount;
spriteUnits = (1.0f / x_106);
vec2 x_111 = x_20.stageSize;
stageUnits = (vec2(1.0f, 1.0f) / x_111);
stageUnits = (vec2(1.0f) / x_111);
i = 0;
{
for(; (i < 2); i = (i + 1)) {
@ -111,14 +111,14 @@ void main_1() {
case 1: {
vec2 x_150 = tileID;
vec2 x_154 = x_20.stageSize;
vec4 x_156 = texture(tileMapsTexture1_tileMapsSampler, ((x_150 + vec2(0.5f, 0.5f)) / x_154), 0.0f);
vec4 x_156 = texture(tileMapsTexture1_tileMapsSampler, ((x_150 + vec2(0.5f)) / x_154), 0.0f);
frameID_1 = x_156.x;
break;
}
case 0: {
vec2 x_136 = tileID;
vec2 x_140 = x_20.stageSize;
vec4 x_142 = texture(tileMapsTexture0_tileMapsSampler, ((x_136 + vec2(0.5f, 0.5f)) / x_140), 0.0f);
vec4 x_142 = texture(tileMapsTexture0_tileMapsSampler, ((x_136 + vec2(0.5f)) / x_140), 0.0f);
frameID_1 = x_142.x;
break;
}

View File

@ -159,7 +159,7 @@ vec3 perturbNormal_mf33_vf3_f1_(inout mat3 cotangentFrame_1, inout vec3 textureS
vec3 x_119 = textureSample;
mat3 x_125 = cotangentFrame_1;
param = x_125;
param_1 = ((x_119 * 2.0f) - vec3(1.0f, 1.0f, 1.0f));
param_1 = ((x_119 * 2.0f) - vec3(1.0f));
float x_128 = scale_1;
param_2 = x_128;
vec3 x_129 = perturbNormalBase_mf33_vf3_f1_(param, param_1, param_2);
@ -250,7 +250,7 @@ void main_1() {
vec3 specularOutput = vec3(0.0f, 0.0f, 0.0f);
vec3 output3 = vec3(0.0f, 0.0f, 0.0f);
u_Float = 100.0f;
u_Color = vec3(0.5f, 0.5f, 0.5f);
u_Color = vec3(0.5f);
vec4 x_262 = texture(TextureSamplerTexture_TextureSamplerSampler, vMainuv);
tempTextureRead = x_262;
vec4 x_264 = tempTextureRead;
@ -259,8 +259,8 @@ void main_1() {
vec3 x_279 = x_269.u_cameraPosition;
vec4 x_282 = v_output1;
output5 = normalize((x_279 - vec3(x_282.x, x_282.y, x_282.z)));
output4 = vec4(0.0f, 0.0f, 0.0f, 0.0f);
uvOffset = vec2(0.0f, 0.0f);
output4 = vec4(0.0f);
uvOffset = vec2(0.0f);
float x_292 = x_269.u_bumpStrength;
normalScale = (1.0f / x_292);
if (tint_symbol) {
@ -292,8 +292,8 @@ void main_1() {
numSamples = (15.0f + (dot((invTBN * -(output5)), (invTBN * vec3(x_366.x, x_366.y, x_366.z))) * -11.0f));
stepSize = (1.0f / numSamples);
currRayHeight = 1.0f;
vCurrOffset = vec2(0.0f, 0.0f);
vLastOffset = vec2(0.0f, 0.0f);
vCurrOffset = vec2(0.0f);
vLastOffset = vec2(0.0f);
lastSampledHeight = 1.0f;
currSampledHeight = 1.0f;
i = 0;
@ -334,8 +334,8 @@ void main_1() {
viewDirectionW_1 = normalize((x_481 - vec3(x_482.x, x_482.y, x_482.z)));
shadow = 1.0f;
glossiness_1 = (1.0f * u_Float);
diffuseBase = vec3(0.0f, 0.0f, 0.0f);
specularBase = vec3(0.0f, 0.0f, 0.0f);
diffuseBase = vec3(0.0f);
specularBase = vec3(0.0f);
vec4 x_494 = output4;
normalW = vec3(x_494.x, x_494.y, x_494.z);
param_11 = viewDirectionW_1;

View File

@ -7,7 +7,7 @@ ivec3 tint_extract_bits(ivec3 v, uint offset, uint count) {
}
void f_1() {
ivec3 v = ivec3(0, 0, 0);
ivec3 v = ivec3(0);
uint offset_1 = 0u;
uint count = 0u;
ivec3 x_15 = tint_extract_bits(v, offset_1, count);

View File

@ -7,7 +7,7 @@ uvec3 tint_extract_bits(uvec3 v, uint offset, uint count) {
}
void f_1() {
uvec3 v = uvec3(0u, 0u, 0u);
uvec3 v = uvec3(0u);
uint offset_1 = 0u;
uint count = 0u;
uvec3 x_14 = tint_extract_bits(v, offset_1, count);

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_002533() {
vec4 res = abs(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = abs(vec4(0.0f));
}
vec4 vertex_main() {
abs_002533();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_002533() {
vec4 res = abs(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = abs(vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_002533() {
vec4 res = abs(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = abs(vec4(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_005174() {
vec3 res = abs(vec3(0.0f, 0.0f, 0.0f));
vec3 res = abs(vec3(0.0f));
}
vec4 vertex_main() {
abs_005174();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_005174() {
vec3 res = abs(vec3(0.0f, 0.0f, 0.0f));
vec3 res = abs(vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_005174() {
vec3 res = abs(vec3(0.0f, 0.0f, 0.0f));
vec3 res = abs(vec3(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_1ce782() {
uvec4 res = uvec4(0u, 0u, 0u, 0u);
uvec4 res = uvec4(0u);
}
vec4 vertex_main() {
abs_1ce782();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_1ce782() {
uvec4 res = uvec4(0u, 0u, 0u, 0u);
uvec4 res = uvec4(0u);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_1ce782() {
uvec4 res = uvec4(0u, 0u, 0u, 0u);
uvec4 res = uvec4(0u);
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_1e9d53() {
vec2 res = abs(vec2(0.0f, 0.0f));
vec2 res = abs(vec2(0.0f));
}
vec4 vertex_main() {
abs_1e9d53();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_1e9d53() {
vec2 res = abs(vec2(0.0f, 0.0f));
vec2 res = abs(vec2(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_1e9d53() {
vec2 res = abs(vec2(0.0f, 0.0f));
vec2 res = abs(vec2(0.0f));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void abs_467cd1() {
vec4 vertex_main() {
abs_467cd1();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -6,7 +6,7 @@ void abs_4ad288() {
vec4 vertex_main() {
abs_4ad288();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_5ad50a() {
ivec3 res = abs(ivec3(0, 0, 0));
ivec3 res = abs(ivec3(0));
}
vec4 vertex_main() {
abs_5ad50a();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_5ad50a() {
ivec3 res = abs(ivec3(0, 0, 0));
ivec3 res = abs(ivec3(0));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_5ad50a() {
ivec3 res = abs(ivec3(0, 0, 0));
ivec3 res = abs(ivec3(0));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_7326de() {
uvec3 res = uvec3(0u, 0u, 0u);
uvec3 res = uvec3(0u);
}
vec4 vertex_main() {
abs_7326de();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_7326de() {
uvec3 res = uvec3(0u, 0u, 0u);
uvec3 res = uvec3(0u);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_7326de() {
uvec3 res = uvec3(0u, 0u, 0u);
uvec3 res = uvec3(0u);
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_7f28e6() {
uvec2 res = uvec2(0u, 0u);
uvec2 res = uvec2(0u);
}
vec4 vertex_main() {
abs_7f28e6();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_7f28e6() {
uvec2 res = uvec2(0u, 0u);
uvec2 res = uvec2(0u);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_7f28e6() {
uvec2 res = uvec2(0u, 0u);
uvec2 res = uvec2(0u);
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_7faa9e() {
ivec2 res = abs(ivec2(0, 0));
ivec2 res = abs(ivec2(0));
}
vec4 vertex_main() {
abs_7faa9e();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_7faa9e() {
ivec2 res = abs(ivec2(0, 0));
ivec2 res = abs(ivec2(0));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_7faa9e() {
ivec2 res = abs(ivec2(0, 0));
ivec2 res = abs(ivec2(0));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void abs_9c80a6() {
ivec4 res = abs(ivec4(0, 0, 0, 0));
ivec4 res = abs(ivec4(0));
}
vec4 vertex_main() {
abs_9c80a6();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_9c80a6() {
ivec4 res = abs(ivec4(0, 0, 0, 0));
ivec4 res = abs(ivec4(0));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_9c80a6() {
ivec4 res = abs(ivec4(0, 0, 0, 0));
ivec4 res = abs(ivec4(0));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void abs_b96037() {
vec4 vertex_main() {
abs_b96037();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -6,7 +6,7 @@ void acos_489247() {
vec4 vertex_main() {
acos_489247();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void acos_8e2acf() {
vec4 res = acos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = acos(vec4(0.0f));
}
vec4 vertex_main() {
acos_8e2acf();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void acos_8e2acf() {
vec4 res = acos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = acos(vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void acos_8e2acf() {
vec4 res = acos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = acos(vec4(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void acos_a610c4() {
vec3 res = acos(vec3(0.0f, 0.0f, 0.0f));
vec3 res = acos(vec3(0.0f));
}
vec4 vertex_main() {
acos_a610c4();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void acos_a610c4() {
vec3 res = acos(vec3(0.0f, 0.0f, 0.0f));
vec3 res = acos(vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void acos_a610c4() {
vec3 res = acos(vec3(0.0f, 0.0f, 0.0f));
vec3 res = acos(vec3(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void acos_dfc915() {
vec2 res = acos(vec2(0.0f, 0.0f));
vec2 res = acos(vec2(0.0f));
}
vec4 vertex_main() {
acos_dfc915();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void acos_dfc915() {
vec2 res = acos(vec2(0.0f, 0.0f));
vec2 res = acos(vec2(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void acos_dfc915() {
vec2 res = acos(vec2(0.0f, 0.0f));
vec2 res = acos(vec2(0.0f));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void all_353d6a() {
vec4 vertex_main() {
all_353d6a();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void all_986c7b() {
bool res = all(bvec4(false, false, false, false));
bool res = all(bvec4(false));
}
vec4 vertex_main() {
all_986c7b();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void all_986c7b() {
bool res = all(bvec4(false, false, false, false));
bool res = all(bvec4(false));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void all_986c7b() {
bool res = all(bvec4(false, false, false, false));
bool res = all(bvec4(false));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void all_bd2dba() {
bool res = all(bvec3(false, false, false));
bool res = all(bvec3(false));
}
vec4 vertex_main() {
all_bd2dba();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void all_bd2dba() {
bool res = all(bvec3(false, false, false));
bool res = all(bvec3(false));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void all_bd2dba() {
bool res = all(bvec3(false, false, false));
bool res = all(bvec3(false));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void all_f46790() {
bool res = all(bvec2(false, false));
bool res = all(bvec2(false));
}
vec4 vertex_main() {
all_f46790();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void all_f46790() {
bool res = all(bvec2(false, false));
bool res = all(bvec2(false));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void all_f46790() {
bool res = all(bvec2(false, false));
bool res = all(bvec2(false));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void any_083428() {
bool res = any(bvec4(false, false, false, false));
bool res = any(bvec4(false));
}
vec4 vertex_main() {
any_083428();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void any_083428() {
bool res = any(bvec4(false, false, false, false));
bool res = any(bvec4(false));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void any_083428() {
bool res = any(bvec4(false, false, false, false));
bool res = any(bvec4(false));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void any_0e3e58() {
bool res = any(bvec2(false, false));
bool res = any(bvec2(false));
}
vec4 vertex_main() {
any_0e3e58();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void any_0e3e58() {
bool res = any(bvec2(false, false));
bool res = any(bvec2(false));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void any_0e3e58() {
bool res = any(bvec2(false, false));
bool res = any(bvec2(false));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void any_2ab91a() {
vec4 vertex_main() {
any_2ab91a();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void any_e755c1() {
bool res = any(bvec3(false, false, false));
bool res = any(bvec3(false));
}
vec4 vertex_main() {
any_e755c1();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void any_e755c1() {
bool res = any(bvec3(false, false, false));
bool res = any(bvec3(false));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void any_e755c1() {
bool res = any(bvec3(false, false, false));
bool res = any(bvec3(false));
}
void compute_main() {

View File

@ -9,7 +9,7 @@ void arrayLength_1588cd() {
vec4 vertex_main() {
arrayLength_1588cd();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -9,7 +9,7 @@ void arrayLength_61b1c7() {
vec4 vertex_main() {
arrayLength_61b1c7();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -9,7 +9,7 @@ void arrayLength_a0f5ca() {
vec4 vertex_main() {
arrayLength_a0f5ca();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -9,7 +9,7 @@ void arrayLength_cdd123() {
vec4 vertex_main() {
arrayLength_cdd123();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -9,7 +9,7 @@ void arrayLength_cfca0a() {
vec4 vertex_main() {
arrayLength_cfca0a();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -9,7 +9,7 @@ void arrayLength_eb510f() {
vec4 vertex_main() {
arrayLength_eb510f();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ void asin_c0c272() {
vec4 vertex_main() {
asin_c0c272();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -6,7 +6,7 @@ void atan_02979a() {
vec4 vertex_main() {
atan_02979a();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void atan_331e6d() {
vec3 res = atan(vec3(0.0f, 0.0f, 0.0f));
vec3 res = atan(vec3(0.0f));
}
vec4 vertex_main() {
atan_331e6d();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void atan_331e6d() {
vec3 res = atan(vec3(0.0f, 0.0f, 0.0f));
vec3 res = atan(vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void atan_331e6d() {
vec3 res = atan(vec3(0.0f, 0.0f, 0.0f));
vec3 res = atan(vec3(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void atan_a8b696() {
vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = atan(vec4(0.0f));
}
vec4 vertex_main() {
atan_a8b696();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void atan_a8b696() {
vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = atan(vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void atan_a8b696() {
vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = atan(vec4(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void atan_ad96e4() {
vec2 res = atan(vec2(0.0f, 0.0f));
vec2 res = atan(vec2(0.0f));
}
vec4 vertex_main() {
atan_ad96e4();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void atan_ad96e4() {
vec2 res = atan(vec2(0.0f, 0.0f));
vec2 res = atan(vec2(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void atan_ad96e4() {
vec2 res = atan(vec2(0.0f, 0.0f));
vec2 res = atan(vec2(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void atan2_57fb13() {
vec2 res = atan(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
vec2 res = atan(vec2(0.0f), vec2(0.0f));
}
vec4 vertex_main() {
atan2_57fb13();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void atan2_57fb13() {
vec2 res = atan(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
vec2 res = atan(vec2(0.0f), vec2(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void atan2_57fb13() {
vec2 res = atan(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
vec2 res = atan(vec2(0.0f), vec2(0.0f));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void atan2_96057c() {
vec4 vertex_main() {
atan2_96057c();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void atan2_a70d0d() {
vec3 res = atan(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
vec3 res = atan(vec3(0.0f), vec3(0.0f));
}
vec4 vertex_main() {
atan2_a70d0d();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void atan2_a70d0d() {
vec3 res = atan(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
vec3 res = atan(vec3(0.0f), vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void atan2_a70d0d() {
vec3 res = atan(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
vec3 res = atan(vec3(0.0f), vec3(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void atan2_ae713e() {
vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = atan(vec4(0.0f), vec4(0.0f));
}
vec4 vertex_main() {
atan2_ae713e();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void atan2_ae713e() {
vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = atan(vec4(0.0f), vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void atan2_ae713e() {
vec4 res = atan(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = atan(vec4(0.0f), vec4(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void ceil_34064b() {
vec3 res = ceil(vec3(0.0f, 0.0f, 0.0f));
vec3 res = ceil(vec3(0.0f));
}
vec4 vertex_main() {
ceil_34064b();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void ceil_34064b() {
vec3 res = ceil(vec3(0.0f, 0.0f, 0.0f));
vec3 res = ceil(vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void ceil_34064b() {
vec3 res = ceil(vec3(0.0f, 0.0f, 0.0f));
vec3 res = ceil(vec3(0.0f));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void ceil_678655() {
vec4 vertex_main() {
ceil_678655();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void ceil_96f597() {
vec2 res = ceil(vec2(0.0f, 0.0f));
vec2 res = ceil(vec2(0.0f));
}
vec4 vertex_main() {
ceil_96f597();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void ceil_96f597() {
vec2 res = ceil(vec2(0.0f, 0.0f));
vec2 res = ceil(vec2(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void ceil_96f597() {
vec2 res = ceil(vec2(0.0f, 0.0f));
vec2 res = ceil(vec2(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void ceil_b74c16() {
vec4 res = ceil(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = ceil(vec4(0.0f));
}
vec4 vertex_main() {
ceil_b74c16();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void ceil_b74c16() {
vec4 res = ceil(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = ceil(vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void ceil_b74c16() {
vec4 res = ceil(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = ceil(vec4(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_0acf8f() {
vec2 res = clamp(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
vec2 res = clamp(vec2(0.0f), vec2(0.0f), vec2(0.0f));
}
vec4 vertex_main() {
clamp_0acf8f();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_0acf8f() {
vec2 res = clamp(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
vec2 res = clamp(vec2(0.0f), vec2(0.0f), vec2(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_0acf8f() {
vec2 res = clamp(vec2(0.0f, 0.0f), vec2(0.0f, 0.0f), vec2(0.0f, 0.0f));
vec2 res = clamp(vec2(0.0f), vec2(0.0f), vec2(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_1a32e3() {
ivec4 res = clamp(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
ivec4 res = clamp(ivec4(0), ivec4(0), ivec4(0));
}
vec4 vertex_main() {
clamp_1a32e3();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_1a32e3() {
ivec4 res = clamp(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
ivec4 res = clamp(ivec4(0), ivec4(0), ivec4(0));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_1a32e3() {
ivec4 res = clamp(ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0), ivec4(0, 0, 0, 0));
ivec4 res = clamp(ivec4(0), ivec4(0), ivec4(0));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void clamp_2bd567() {
vec4 vertex_main() {
clamp_2bd567();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_2bde41() {
vec4 res = clamp(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = clamp(vec4(0.0f), vec4(0.0f), vec4(0.0f));
}
vec4 vertex_main() {
clamp_2bde41();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_2bde41() {
vec4 res = clamp(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = clamp(vec4(0.0f), vec4(0.0f), vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_2bde41() {
vec4 res = clamp(vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f), vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = clamp(vec4(0.0f), vec4(0.0f), vec4(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_548fc7() {
uvec3 res = clamp(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
uvec3 res = clamp(uvec3(0u), uvec3(0u), uvec3(0u));
}
vec4 vertex_main() {
clamp_548fc7();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_548fc7() {
uvec3 res = clamp(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
uvec3 res = clamp(uvec3(0u), uvec3(0u), uvec3(0u));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_548fc7() {
uvec3 res = clamp(uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u), uvec3(0u, 0u, 0u));
uvec3 res = clamp(uvec3(0u), uvec3(0u), uvec3(0u));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_5f0819() {
ivec3 res = clamp(ivec3(0, 0, 0), ivec3(0, 0, 0), ivec3(0, 0, 0));
ivec3 res = clamp(ivec3(0), ivec3(0), ivec3(0));
}
vec4 vertex_main() {
clamp_5f0819();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_5f0819() {
ivec3 res = clamp(ivec3(0, 0, 0), ivec3(0, 0, 0), ivec3(0, 0, 0));
ivec3 res = clamp(ivec3(0), ivec3(0), ivec3(0));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_5f0819() {
ivec3 res = clamp(ivec3(0, 0, 0), ivec3(0, 0, 0), ivec3(0, 0, 0));
ivec3 res = clamp(ivec3(0), ivec3(0), ivec3(0));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_6c1749() {
ivec2 res = clamp(ivec2(0, 0), ivec2(0, 0), ivec2(0, 0));
ivec2 res = clamp(ivec2(0), ivec2(0), ivec2(0));
}
vec4 vertex_main() {
clamp_6c1749();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_6c1749() {
ivec2 res = clamp(ivec2(0, 0), ivec2(0, 0), ivec2(0, 0));
ivec2 res = clamp(ivec2(0), ivec2(0), ivec2(0));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_6c1749() {
ivec2 res = clamp(ivec2(0, 0), ivec2(0, 0), ivec2(0, 0));
ivec2 res = clamp(ivec2(0), ivec2(0), ivec2(0));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_7706d7() {
uvec2 res = clamp(uvec2(0u, 0u), uvec2(0u, 0u), uvec2(0u, 0u));
uvec2 res = clamp(uvec2(0u), uvec2(0u), uvec2(0u));
}
vec4 vertex_main() {
clamp_7706d7();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_7706d7() {
uvec2 res = clamp(uvec2(0u, 0u), uvec2(0u, 0u), uvec2(0u, 0u));
uvec2 res = clamp(uvec2(0u), uvec2(0u), uvec2(0u));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_7706d7() {
uvec2 res = clamp(uvec2(0u, 0u), uvec2(0u, 0u), uvec2(0u, 0u));
uvec2 res = clamp(uvec2(0u), uvec2(0u), uvec2(0u));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_867397() {
vec3 res = clamp(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
vec3 res = clamp(vec3(0.0f), vec3(0.0f), vec3(0.0f));
}
vec4 vertex_main() {
clamp_867397();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_867397() {
vec3 res = clamp(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
vec3 res = clamp(vec3(0.0f), vec3(0.0f), vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_867397() {
vec3 res = clamp(vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 0.0f, 0.0f));
vec3 res = clamp(vec3(0.0f), vec3(0.0f), vec3(0.0f));
}
void compute_main() {

View File

@ -6,7 +6,7 @@ void clamp_a2de25() {
vec4 vertex_main() {
clamp_a2de25();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -6,7 +6,7 @@ void clamp_b07c65() {
vec4 vertex_main() {
clamp_b07c65();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void clamp_bd43ce() {
uvec4 res = clamp(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
uvec4 res = clamp(uvec4(0u), uvec4(0u), uvec4(0u));
}
vec4 vertex_main() {
clamp_bd43ce();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_bd43ce() {
uvec4 res = clamp(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
uvec4 res = clamp(uvec4(0u), uvec4(0u), uvec4(0u));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_bd43ce() {
uvec4 res = clamp(uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u), uvec4(0u, 0u, 0u, 0u));
uvec4 res = clamp(uvec4(0u), uvec4(0u), uvec4(0u));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void cos_16dc15() {
vec3 res = cos(vec3(0.0f, 0.0f, 0.0f));
vec3 res = cos(vec3(0.0f));
}
vec4 vertex_main() {
cos_16dc15();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void cos_16dc15() {
vec3 res = cos(vec3(0.0f, 0.0f, 0.0f));
vec3 res = cos(vec3(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void cos_16dc15() {
vec3 res = cos(vec3(0.0f, 0.0f, 0.0f));
vec3 res = cos(vec3(0.0f));
}
void compute_main() {

View File

@ -1,12 +1,12 @@
#version 310 es
void cos_29d66d() {
vec4 res = cos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = cos(vec4(0.0f));
}
vec4 vertex_main() {
cos_29d66d();
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
return vec4(0.0f);
}
void main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void cos_29d66d() {
vec4 res = cos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = cos(vec4(0.0f));
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void cos_29d66d() {
vec4 res = cos(vec4(0.0f, 0.0f, 0.0f, 0.0f));
vec4 res = cos(vec4(0.0f));
}
void compute_main() {

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