tint/writer/hlsl: Inline constant expressions

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

Bug: tint:1504
Change-Id: I79ad567954de2d1cfea09dda255894e4e2aa678e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92081
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
Ben Clayton 2022-06-01 13:14:39 +00:00 committed by Dawn LUCI CQ
parent 8d98efaaa7
commit e9f8b09063
951 changed files with 1976 additions and 1865 deletions

View File

@ -33,10 +33,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"
@ -110,6 +110,18 @@ const char* image_format_to_rwtexture_type(ast::TexelFormat image_format) {
}
}
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 ? "asfloat(0x7f800000u)" : "asfloat(0xff800000u)");
} else if (std::isnan(value)) {
out << "asfloat(0x7fc00000u)";
} else {
out << FloatToString(value) << "f";
}
}
// Helper for writing " : register(RX, spaceY)", where R is the register, X is
// the binding point binding value, and Y is the binding point group value.
struct RegisterAndSpace {
@ -802,8 +814,7 @@ bool GeneratorImpl::EmitBinary(std::ostream& out, const ast::BinaryExpression* e
return true;
}
out << "(";
TINT_DEFER(out << ")");
ScopedParen sp(out);
if (!EmitExpression(out, expr->lhs)) {
return false;
@ -924,12 +935,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();
return Switch(
target, [&](const sem::Function* func) { return EmitFunctionCall(out, call, func); },
@ -2644,6 +2650,11 @@ bool GeneratorImpl::EmitDiscard(const ast::DiscardStatement*) {
}
bool GeneratorImpl::EmitExpression(std::ostream& out, const ast::Expression* expr) {
if (auto* sem = builder_.Sem().Get(expr)) {
if (auto constant = sem->ConstantValue()) {
return EmitConstant(out, constant);
}
}
return Switch(
expr,
[&](const ast::IndexAccessorExpression* a) { //
@ -3119,6 +3130,111 @@ 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 (constant.AllEqual(start, end)) {
{
ScopedParen sp(out);
bool ok = Switch(
vec_ty->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); } //
);
if (!ok) {
return false;
}
}
out << ".";
for (size_t i = start; i < end; i++) {
out << "x";
}
return true;
}
if (!EmitType(out, vec_ty, ast::StorageClass::kNone, ast::Access::kUndefined, "")) {
return false;
}
ScopedParen sp(out);
auto emit_els = [&](auto emit_el) {
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,
@ -3127,14 +3243,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 << (f32 >= 0 ? "asfloat(0x7f800000u)" : "asfloat(0xff800000u)");
} else if (std::isnan(f32)) {
out << "asfloat(0x7fc00000u)";
} else {
out << FloatToString(f32) << "f";
}
PrintF32(out, static_cast<float>(l->value));
return true;
},
[&](const ast::IntLiteralExpression* i) {

View File

@ -43,6 +43,7 @@
// Forward declarations
namespace tint::sem {
class Call;
class Constant;
class Builtin;
class TypeConstructor;
class TypeConversion;
@ -334,6 +335,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

@ -58,7 +58,7 @@ TEST_F(HlslGeneratorImplTest_Assign, Emit_Vector_Assign_ConstantIndex) {
float3 lhs = float3(0.0f, 0.0f, 0.0f);
float rhs = 0.0f;
const uint index = 0u;
lhs[index] = rhs;
lhs[0u] = rhs;
}
)");
}
@ -106,7 +106,7 @@ TEST_F(HlslGeneratorImplTest_Assign, Emit_Matrix_Assign_Vector_ConstantIndex) {
float4x2 lhs = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
float2 rhs = float2(0.0f, 0.0f);
const uint index = 0u;
lhs[index] = rhs;
lhs[0u] = rhs;
}
)");
}
@ -159,7 +159,7 @@ TEST_F(HlslGeneratorImplTest_Assign, Emit_Matrix_Assign_Scalar_ConstantIndex) {
float4x2 lhs = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
float rhs = 0.0f;
const uint index = 0u;
lhs[index][index] = rhs;
lhs[0u][0u] = rhs;
}
)");
}

View File

@ -152,9 +152,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_VectorScalar) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(),
"(float3(1.0f, 1.0f, 1.0f) * "
"1.0f)");
EXPECT_EQ(out.str(), "((1.0f).xxx * 1.0f)");
}
TEST_F(HlslGeneratorImplTest_Binary, Multiply_ScalarVector) {
@ -169,9 +167,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_ScalarVector) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(),
"(1.0f * float3(1.0f, 1.0f, "
"1.0f))");
EXPECT_EQ(out.str(), "(1.0f * (1.0f).xxx)");
}
TEST_F(HlslGeneratorImplTest_Binary, Multiply_MatrixScalar) {
@ -216,7 +212,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_MatrixVector) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(), "mul(float3(1.0f, 1.0f, 1.0f), mat)");
EXPECT_EQ(out.str(), "mul((1.0f).xxx, mat)");
}
TEST_F(HlslGeneratorImplTest_Binary, Multiply_VectorMatrix) {
@ -231,7 +227,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_VectorMatrix) {
std::stringstream out;
EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error();
EXPECT_EQ(out.str(), "mul(mat, float3(1.0f, 1.0f, 1.0f))");
EXPECT_EQ(out.str(), "mul(mat, (1.0f).xxx)");
}
TEST_F(HlslGeneratorImplTest_Binary, Multiply_MatrixMatrix) {
@ -576,7 +572,7 @@ TEST_P(HlslGeneratorDivModTest, DivOrModByLiteralZero_vec_by_vec_i32) {
ASSERT_TRUE(gen.Generate());
EXPECT_EQ(gen.result(), R"(void fn() {
int4 a = int4(100, 100, 100, 100);
int4 a = (100).xxxx;
const int4 r = (a )" + Token() +
R"( int4(50, 1, 25, 1));
}
@ -594,7 +590,7 @@ TEST_P(HlslGeneratorDivModTest, DivOrModByLiteralZero_vec_by_scalar_i32) {
ASSERT_TRUE(gen.Generate());
EXPECT_EQ(gen.result(), R"(void fn() {
int4 a = int4(100, 100, 100, 100);
int4 a = (100).xxxx;
const int4 r = (a )" + Token() +
R"( 1);
}
@ -755,7 +751,7 @@ TEST_P(HlslGeneratorDivModTest, DivOrModByExpression_vec_by_vec_i32) {
}
int3 zero() {
return int3(0, 0, 0);
return (0).xxx;
}
void fn() {

View File

@ -324,7 +324,7 @@ modf_result_vec3 tint_modf(float3 param_0) {
[numthreads(1, 1, 1)]
void test_function() {
tint_modf(float3(0.0f, 0.0f, 0.0f));
tint_modf((0.0f).xxx);
return;
}
)");
@ -376,7 +376,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) {
[numthreads(1, 1, 1)]
void test_function() {
tint_frexp(float3(0.0f, 0.0f, 0.0f));
tint_frexp((0.0f).xxx);
return;
}
)");

View File

@ -285,7 +285,7 @@ ExpectedResult expected_texture_overload(ast::builtin::test::ValidTextureOverloa
case ValidTextureOverload::kSampleGrad2dF32:
return R"(tint_symbol.SampleGrad(tint_symbol_1, float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f));)";
case ValidTextureOverload::kSampleGrad2dOffsetF32:
return R"(tint_symbol.SampleGrad(tint_symbol_1, float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f), int2(7, 7));)";
return R"(tint_symbol.SampleGrad(tint_symbol_1, float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f), (7).xx);)";
case ValidTextureOverload::kSampleGrad2dArrayF32:
return R"(tint_symbol.SampleGrad(tint_symbol_1, float3(1.0f, 2.0f, float(3)), float2(4.0f, 5.0f), float2(6.0f, 7.0f));)";
case ValidTextureOverload::kSampleGrad2dArrayOffsetF32:

View File

@ -29,7 +29,7 @@ TEST_F(HlslGeneratorImplTest_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(HlslGeneratorImplTest_Cast, EmitExpression_Cast_Vector) {
@ -40,7 +40,7 @@ TEST_F(HlslGeneratorImplTest_Cast, EmitExpression_Cast_Vector) {
std::stringstream out;
ASSERT_TRUE(gen.EmitExpression(out, cast)) << gen.error();
EXPECT_EQ(out.str(), "float3(int3(1, 2, 3))");
EXPECT_EQ(out.str(), "float3(1.0f, 2.0f, 3.0f)");
}
} // namespace

View File

@ -67,7 +67,7 @@ TEST_F(HlslGeneratorImplTest_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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Bool) {
@ -76,7 +76,7 @@ TEST_F(HlslGeneratorImplTest_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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Int) {
@ -85,7 +85,7 @@ TEST_F(HlslGeneratorImplTest_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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Uint) {
@ -94,7 +94,7 @@ TEST_F(HlslGeneratorImplTest_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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec) {
@ -112,7 +112,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_Empty) {
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("float3(0.0f, 0.0f, 0.0f)"));
EXPECT_THAT(gen.result(), HasSubstr("0.0f).xxx"));
}
TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Float_Literal) {
@ -121,7 +121,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("float3((2.0f).xxx)"));
EXPECT_THAT(gen.result(), HasSubstr("2.0f).xxx"));
}
TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Float_Var) {
@ -142,7 +142,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("bool3((true).xxx)"));
EXPECT_THAT(gen.result(), HasSubstr("(true).xxx"));
}
TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Bool_Var) {
@ -163,7 +163,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("int3((2).xxx)"));
EXPECT_THAT(gen.result(), HasSubstr("2).xxx"));
}
TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_UInt) {
@ -172,7 +172,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("uint3((2u).xxx)"));
EXPECT_THAT(gen.result(), HasSubstr("2u).xxx"));
}
TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Mat) {
@ -193,7 +193,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Mat_Empty) {
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_THAT(gen.result(), HasSubstr("float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)"));
EXPECT_THAT(gen.result(), HasSubstr("float2x3 tint_symbol = float2x3((0.0f).xxx, (0.0f).xxx)"));
}
TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Array) {

View File

@ -219,7 +219,7 @@ struct tint_symbol {
};
Interface vert_main_inner() {
const Interface tint_symbol_3 = {float4(0.0f, 0.0f, 0.0f, 0.0f), 0.5f, 0.25f};
const Interface tint_symbol_3 = {(0.0f).xxxx, 0.5f, 0.25f};
return tint_symbol_3;
}
@ -689,9 +689,9 @@ TEST_F(HlslGeneratorImplTest_Function, Emit_Attribute_EntryPoint_Compute_WithWor
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(static const int width = int(2);
static const int height = int(3);
static const int depth = int(4);
EXPECT_EQ(gen.result(), R"(static const int width = 2;
static const int height = 3;
static const int depth = 4;
[numthreads(2, 3, 4)]
void main() {
@ -715,15 +715,15 @@ TEST_F(HlslGeneratorImplTest_Function,
ASSERT_TRUE(gen.Generate()) << gen.error();
EXPECT_EQ(gen.result(), R"(#ifndef WGSL_SPEC_CONSTANT_7
#define WGSL_SPEC_CONSTANT_7 int(2)
#define WGSL_SPEC_CONSTANT_7 2
#endif
static 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
static 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
static const int depth = WGSL_SPEC_CONSTANT_9;

View File

@ -337,7 +337,7 @@ void tint_symbol(RWByteAddressBuffer buffer, uint offset, float2x3 value) {
}
void main() {
tint_symbol(data, 16u, float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol(data, 16u, float2x3((0.0f).xxx, (0.0f).xxx));
return;
}
)";

View File

@ -97,7 +97,7 @@ TEST_F(HlslGeneratorImplTest_VariableDecl, Emit_VariableDeclStatement_Initialize
GeneratorImpl& gen = Build();
ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error();
EXPECT_EQ(gen.result(), R"(float3 a = float3(0.0f, 0.0f, 0.0f);
EXPECT_EQ(gen.result(), R"(float3 a = (0.0f).xxx;
)");
}
@ -111,7 +111,7 @@ TEST_F(HlslGeneratorImplTest_VariableDecl, Emit_VariableDeclStatement_Initialize
ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error();
EXPECT_EQ(gen.result(),
R"(float2x3 a = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
R"(float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx);
)");
}

View File

@ -1,7 +1,7 @@
[numthreads(1, 1, 1)]
void main() {
const float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f));
const float3 v = m[1];
const float3 v = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[1];
const float f = v[1];
return;
}

View File

@ -1,8 +1,8 @@
[numthreads(1, 1, 1)]
void main() {
const float3 v = float3(1.0f, 2.0f, 3.0f);
const float scalar = v.y;
const float2 swizzle2 = v.xz;
const float3 swizzle3 = v.xzy;
const float scalar = float3(1.0f, 2.0f, 3.0f).y;
const float2 swizzle2 = float3(1.0f, 2.0f, 3.0f).xz;
const float3 swizzle3 = float3(1.0f, 2.0f, 3.0f).xzy;
return;
}

View File

@ -1,5 +1,5 @@
void main_1() {
float3x3 m = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx);
const float3 x_15 = m[1];
const float x_16 = x_15.y;
return;

View File

@ -1,5 +1,5 @@
void main_1() {
float3 v = float3(0.0f, 0.0f, 0.0f);
float3 v = (0.0f).xxx;
const float x_14 = v.y;
const float3 x_16 = v;
const float2 x_17 = float2(x_16.x, x_16.z);

View File

@ -51,7 +51,7 @@ tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) {
void foo(int4 src_param[4]) {
int4 src_function[4] = (int4[4])0;
int4 tint_symbol[4] = (int4[4])0;
const int4 tint_symbol_8[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)};
const int4 tint_symbol_8[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx};
tint_symbol = tint_symbol_8;
tint_symbol = src_param;
tint_symbol = ret_arr();

View File

@ -52,7 +52,7 @@ tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) {
void foo(int4 src_param[4]) {
int4 src_function[4] = (int4[4])0;
const int4 tint_symbol_8[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)};
const int4 tint_symbol_8[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx};
tint_symbol = tint_symbol_8;
tint_symbol = src_param;
tint_symbol = ret_arr();

View File

@ -88,7 +88,7 @@ void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, int value[4][3][2])
void foo(int4 src_param[4]) {
int4 src_function[4] = (int4[4])0;
const int4 tint_symbol_15[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)};
const int4 tint_symbol_15[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx};
tint_symbol_3(tint_symbol, 0u, tint_symbol_15);
tint_symbol_3(tint_symbol, 0u, src_param);
const int4 tint_symbol_1[4] = ret_arr();

View File

@ -52,7 +52,7 @@ tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) {
void foo(int4 src_param[4]) {
int4 src_function[4] = (int4[4])0;
const int4 tint_symbol_8[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)};
const int4 tint_symbol_8[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx};
tint_symbol = tint_symbol_8;
tint_symbol = src_param;
tint_symbol = ret_arr();

View File

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

View File

@ -25,14 +25,14 @@ void tint_symbol_11(RWByteAddressBuffer buffer, uint offset, int4 value[4]) {
}
void main_inner(uint idx) {
s.Store3((176u * idx), asuint(int3(0, 0, 0)));
s.Store3((176u * idx), asuint((0).xxx));
s.Store(((176u * idx) + 12u), asuint(0));
s.Store3(((176u * idx) + 16u), asuint(uint3(0u, 0u, 0u)));
s.Store3(((176u * idx) + 16u), asuint((0u).xxx));
s.Store(((176u * idx) + 28u), asuint(0u));
s.Store3(((176u * idx) + 32u), asuint(float3(0.0f, 0.0f, 0.0f)));
s.Store3(((176u * idx) + 32u), asuint((0.0f).xxx));
s.Store(((176u * idx) + 44u), asuint(0.0f));
tint_symbol_8(s, ((176u * idx) + 48u), float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol_9(s, ((176u * idx) + 80u), float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol_8(s, ((176u * idx) + 48u), float2x3((0.0f).xxx, (0.0f).xxx));
tint_symbol_9(s, ((176u * idx) + 80u), float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx));
const int4 tint_symbol_13[4] = (int4[4])0;
tint_symbol_11(s, ((176u * idx) + 112u), tint_symbol_13);
}

View File

@ -30,14 +30,14 @@ void tint_symbol_10(RWByteAddressBuffer buffer, uint offset, Inner value[4]) {
[numthreads(1, 1, 1)]
void main() {
s.Store3(0u, asuint(int3(0, 0, 0)));
s.Store3(0u, asuint((0).xxx));
s.Store(12u, asuint(0));
s.Store3(16u, asuint(uint3(0u, 0u, 0u)));
s.Store3(16u, asuint((0u).xxx));
s.Store(28u, asuint(0u));
s.Store3(32u, asuint(float3(0.0f, 0.0f, 0.0f)));
s.Store3(32u, asuint((0.0f).xxx));
s.Store(44u, asuint(0.0f));
tint_symbol_6(s, 48u, float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol_7(s, 80u, float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
tint_symbol_6(s, 48u, float2x3((0.0f).xxx, (0.0f).xxx));
tint_symbol_7(s, 80u, float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx));
const Inner tint_symbol_11 = (Inner)0;
tint_symbol_9(s, 104u, tint_symbol_11);
const Inner tint_symbol_12[4] = (Inner[4])0;

View File

@ -16,6 +16,6 @@ S tint_symbol_4(ByteAddressBuffer buffer, uint offset) {
[numthreads(1, 1, 1)]
void main() {
tint_symbol_2(tint_symbol_1, (4u * uint(0)), tint_symbol_4(tint_symbol, (4u * uint(0))));
tint_symbol_2(tint_symbol_1, (4u * 0u), tint_symbol_4(tint_symbol, (4u * 0u)));
return;
}

View File

@ -20,7 +20,7 @@ struct tint_symbol_2 {
float4 main_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) {
const uint foo = (inputs0.vertex_index + instance_index);
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol_2 main(tint_symbol_1 tint_symbol) {

View File

@ -60,10 +60,10 @@ int tint_atomicLoad_1(RWByteAddressBuffer buffer, uint offset) {
void doIgnore() {
uint g43 = uniforms[0].x;
uint kj6 = dbg.Load(20u);
uint b53 = tint_atomicLoad(counters, (4u * uint(0)));
uint rwg = indices.Load((4u * uint(0)));
float rb5 = asfloat(positions.Load((4u * uint(0))));
int g55 = tint_atomicLoad_1(LUT, (4u * uint(0)));
uint b53 = tint_atomicLoad(counters, (4u * 0u));
uint rwg = indices.Load((4u * 0u));
float rb5 = asfloat(positions.Load((4u * 0u)));
int g55 = tint_atomicLoad_1(LUT, (4u * 0u));
}
struct tint_symbol_1 {

View File

@ -29,7 +29,7 @@ struct tint_symbol_2 {
VertexOutputs vs_main_inner(uint VertexIndex) {
float2 texcoord[3] = {float2(-0.5f, 0.0f), float2(1.5f, 0.0f), float2(0.5f, 2.0f)};
VertexOutputs output = (VertexOutputs)0;
output.position = float4(((texcoord[VertexIndex] * 2.0f) - float2(1.0f, 1.0f)), 0.0f, 1.0f);
output.position = float4(((texcoord[VertexIndex] * 2.0f) - (1.0f).xx), 0.0f, 1.0f);
bool flipY = (asfloat(uniforms[0].y) < 0.0f);
if (flipY) {
output.texcoords = ((((texcoord[VertexIndex] * asfloat(uniforms[0].xy)) + asfloat(uniforms[0].zw)) * float2(1.0f, -1.0f)) + float2(0.0f, 1.0f));
@ -60,10 +60,10 @@ struct tint_symbol_5 {
static bool tint_discard = false;
float4 fs_main_inner(float2 texcoord) {
float2 clampedTexcoord = clamp(texcoord, float2(0.0f, 0.0f), float2(1.0f, 1.0f));
float2 clampedTexcoord = clamp(texcoord, (0.0f).xx, (1.0f).xx);
if (!(all((clampedTexcoord == texcoord)))) {
tint_discard = true;
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
float4 srcColor = myTexture.Sample(mySampler, texcoord);
return srcColor;

View File

@ -49,7 +49,7 @@ float4 main_inner(float2 vUV) {
const float sampleDepth = depthTexture.Sample(tint_symbol, offset.xy).r;
i = (i + 1);
}
return float4((1.0f).xxxx);
return (1.0f).xxxx;
}
tint_symbol_3 main(tint_symbol_2 tint_symbol_1) {

View File

@ -28,7 +28,7 @@ Particle tint_symbol_2(ByteAddressBuffer buffer, uint offset) {
[numthreads(1, 1, 1)]
void main() {
Particle particle = tint_symbol_2(particles, (176u * uint(0)));
Particle particle = tint_symbol_2(particles, (176u * 0u));
{
float3 tint_symbol_1[8] = particle.position;
tint_symbol_1[sim[0].x] = particle.position[sim[0].x];

View File

@ -12,6 +12,6 @@ cbuffer cbuffer_uniforms : register(b4, space1) {
[numthreads(1, 1, 1)]
void main() {
float2x4 m1 = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
set_vector_float2x4(m1, uniforms[0].x, float4((1.0f).xxxx));
set_vector_float2x4(m1, uniforms[0].x, (1.0f).xxxx);
return;
}

View File

@ -12,6 +12,6 @@ static float2x4 m1 = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
[numthreads(1, 1, 1)]
void main() {
set_vector_float2x4(m1, uniforms[0].x, float4((1.0f).xxxx));
set_vector_float2x4(m1, uniforms[0].x, (1.0f).xxxx);
return;
}

View File

@ -23,7 +23,7 @@ void main_1() {
const float4 x_21 = q;
p = float3(x_21.x, x_21.y, x_21.z);
const float x_27 = p.x;
const uint scalar_offset_4 = ((208u + (16u * uint(0)))) / 4;
const uint scalar_offset_4 = ((208u + (16u * 0u))) / 4;
const float x_41 = asfloat(x_14[scalar_offset_4 / 4][scalar_offset_4 % 4]);
const float x_45 = position.y;
const float x_49 = asfloat(x_14[4].x);

View File

@ -57,10 +57,10 @@ int tint_atomicLoad_1(RWByteAddressBuffer buffer, uint offset) {
void doIgnore() {
uint g42 = uniforms[0].x;
uint kj6 = dbg.Load(20u);
uint b53 = tint_atomicLoad(counters, (4u * uint(0)));
uint rwg = indices.Load((4u * uint(0)));
float rb5 = asfloat(positions.Load((4u * uint(0))));
int g55 = tint_atomicLoad_1(LUT, (4u * uint(0)));
uint b53 = tint_atomicLoad(counters, (4u * 0u));
uint rwg = indices.Load((4u * 0u));
float rb5 = asfloat(positions.Load((4u * 0u)));
int g55 = tint_atomicLoad_1(LUT, (4u * 0u));
}
struct tint_symbol_1 {

View File

@ -50,24 +50,24 @@ void main_1() {
return;
}
const float4 x_34 = asfloat(x_29[0]);
const float3 x_38 = float3(0.0f, 0.0f, 0.0f);
viewDirectionW = normalize((float3(x_34.x, x_34.y, x_34.z) - x_38));
baseColor = float4(1.0f, 1.0f, 1.0f, 1.0f);
const float3 x_38 = (0.0f).xxx;
viewDirectionW = normalize((float3(x_34.x, x_34.y, x_34.z) - (0.0f).xxx));
baseColor = (1.0f).xxxx;
const float4 x_52 = asfloat(x_49[0]);
diffuseColor = float3(x_52.x, x_52.y, x_52.z);
const float x_60 = asfloat(x_49[0].w);
alpha = x_60;
const float3 x_62 = float3(0.0f, 0.0f, 0.0f);
const float3 x_64 = float3(0.0f, 0.0f, 0.0f);
normalW = normalize(-(cross(ddx(x_62), ddy(x_64))));
uvOffset = float2(0.0f, 0.0f);
const float4 x_74 = float4(0.0f, 0.0f, 0.0f, 0.0f);
const float3 x_62 = (0.0f).xxx;
const float3 x_64 = (0.0f).xxx;
normalW = normalize(-(cross(ddx((0.0f).xxx), ddy((0.0f).xxx))));
uvOffset = (0.0f).xx;
const float4 x_74 = (0.0f).xxxx;
const float4 x_76 = baseColor;
const float3 x_78 = (float3(x_76.x, x_76.y, x_76.z) * float3(x_74.x, x_74.y, x_74.z));
const float3 x_78 = (float3(x_76.x, x_76.y, x_76.z) * float3((0.0f).xxxx.x, (0.0f).xxxx.y, (0.0f).xxxx.z));
baseColor = float4(x_78.x, x_78.y, x_78.z, baseColor.w);
baseAmbientColor = float3(1.0f, 1.0f, 1.0f);
baseAmbientColor = (1.0f).xxx;
glossiness = 0.0f;
diffuseBase = float3(0.0f, 0.0f, 0.0f);
diffuseBase = (0.0f).xxx;
shadow = 1.0f;
refractionColor = float4(0.0f, 0.0f, 0.0f, 1.0f);
reflectionColor = float4(0.0f, 0.0f, 0.0f, 1.0f);
@ -78,14 +78,14 @@ void main_1() {
const float3 x_99 = emissiveColor;
const float3 x_103 = asfloat(x_49[1].xyz);
const float4 x_108 = baseColor;
finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), float3(0.0f, 0.0f, 0.0f), float3(1.0f, 1.0f, 1.0f)) * float3(x_108.x, x_108.y, x_108.z));
finalSpecular = float3(0.0f, 0.0f, 0.0f);
finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), (0.0f).xxx, (1.0f).xxx) * float3(x_108.x, x_108.y, x_108.z));
finalSpecular = (0.0f).xxx;
const float4 x_118 = reflectionColor;
const float4 x_121 = refractionColor;
const float3 x_123 = ((((finalDiffuse * baseAmbientColor) + finalSpecular) + float3(x_118.x, x_118.y, x_118.z)) + float3(x_121.x, x_121.y, x_121.z));
color = float4(x_123.x, x_123.y, x_123.z, alpha);
const float4 x_129 = color;
const float3 x_132 = max(float3(x_129.x, x_129.y, x_129.z), float3(0.0f, 0.0f, 0.0f));
const float3 x_132 = max(float3(x_129.x, x_129.y, x_129.z), (0.0f).xxx);
color = float4(x_132.x, x_132.y, x_132.z, color.w);
const float x_140 = asfloat(x_137[0].x);
const float x_142 = color.w;

View File

@ -55,10 +55,10 @@ void main_inner(uint3 GlobalInvocationID) {
{
[loop] for(int y_1 = 0; (y_1 < 2); y_1 = (y_1 + 1)) {
{
[loop] for(int x_1 = 0; (x_1 < TILE_COUNT_X); x_1 = (x_1 + 1)) {
int2 tilePixel0Idx = int2((x_1 * TILE_SIZE), (y_1 * TILE_SIZE));
float2 floorCoord = (((2.0f * float2(tilePixel0Idx)) / asfloat(uniforms[10]).xy) - float2((1.0f).xx));
float2 ceilCoord = (((2.0f * float2((tilePixel0Idx + int2((TILE_SIZE).xx)))) / asfloat(uniforms[10]).xy) - float2((1.0f).xx));
[loop] for(int x_1 = 0; (x_1 < 2); x_1 = (x_1 + 1)) {
int2 tilePixel0Idx = int2((x_1 * 16), (y_1 * 16));
float2 floorCoord = (((2.0f * float2(tilePixel0Idx)) / asfloat(uniforms[10]).xy) - (1.0f).xx);
float2 ceilCoord = (((2.0f * float2((tilePixel0Idx + (16).xx))) / asfloat(uniforms[10]).xy) - (1.0f).xx);
float2 viewFloorCoord = float2((((-(viewNear) * floorCoord.x) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * floorCoord.y) - (M[2][1] * viewNear)) / M[1][1]));
float2 viewCeilCoord = float2((((-(viewNear) * ceilCoord.x) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * ceilCoord.y) - (M[2][1] * viewNear)) / M[1][1]));
frustumPlanes[0] = float4(1.0f, 0.0f, (-(viewFloorCoord.x) / viewNear), 0.0f);
@ -89,7 +89,7 @@ void main_inner(uint3 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[0].y);

View File

@ -1,7 +1,7 @@
ByteAddressBuffer data : register(t1, space0);
int foo() {
return asint(data.Load((4u * uint(0))));
return asint(data.Load((4u * 0u)));
}
[numthreads(16, 16, 1)]

View File

@ -25,20 +25,20 @@ bool test_int_S1_c0_b() {
ok = true;
x_41_phi = false;
if (true) {
x_40 = all(((int4(0, 0, 0, 0) / value_or_one_if_zero_int4(int4(x_27, x_27, x_27, x_27))) == int4(0, 0, 0, 0)));
x_40 = all((((0).xxxx / value_or_one_if_zero_int4(int4(x_27, x_27, x_27, x_27))) == (0).xxxx));
x_41_phi = x_40;
}
const bool x_41 = x_41_phi;
ok = x_41;
const int4 x_44 = int4(x_27, x_27, x_27, x_27);
val = x_44;
const int4 x_47 = (x_44 + int4(1, 1, 1, 1));
const int4 x_47 = (x_44 + (1).xxxx);
val = x_47;
const int4 x_48 = (x_47 - int4(1, 1, 1, 1));
const int4 x_48 = (x_47 - (1).xxxx);
val = x_48;
const int4 x_49 = (x_48 + int4(1, 1, 1, 1));
const int4 x_49 = (x_48 + (1).xxxx);
val = x_49;
const int4 x_50 = (x_49 - int4(1, 1, 1, 1));
const int4 x_50 = (x_49 - (1).xxxx);
val = x_50;
x_55_phi = false;
if (x_41) {
@ -47,13 +47,13 @@ bool test_int_S1_c0_b() {
}
const bool x_55 = x_55_phi;
ok = x_55;
const int4 x_58 = (x_50 * int4(2, 2, 2, 2));
const int4 x_58 = (x_50 * (2).xxxx);
val = x_58;
const int4 x_59 = (x_58 / int4(2, 2, 2, 2));
const int4 x_59 = (x_58 / (2).xxxx);
val = x_59;
const int4 x_60 = (x_59 * int4(2, 2, 2, 2));
const int4 x_60 = (x_59 * (2).xxxx);
val = x_60;
const int4 x_61 = (x_60 / int4(2, 2, 2, 2));
const int4 x_61 = (x_60 / (2).xxxx);
val = x_61;
x_66_phi = false;
if (x_55) {
@ -86,20 +86,20 @@ void main_1() {
x_9_ok = true;
x_87_phi = false;
if (true) {
x_86 = all(((float4(0.0f, 0.0f, 0.0f, 0.0f) / float4(x_77, x_77, x_77, x_77)) == float4(0.0f, 0.0f, 0.0f, 0.0f)));
x_86 = all((((0.0f).xxxx / float4(x_77, x_77, x_77, x_77)) == (0.0f).xxxx));
x_87_phi = x_86;
}
const bool x_87 = x_87_phi;
x_9_ok = x_87;
const float4 x_89 = float4(x_77, x_77, x_77, x_77);
x_10_val = x_89;
const float4 x_92 = (x_89 + float4(1.0f, 1.0f, 1.0f, 1.0f));
const float4 x_92 = (x_89 + (1.0f).xxxx);
x_10_val = x_92;
const float4 x_93 = (x_92 - float4(1.0f, 1.0f, 1.0f, 1.0f));
const float4 x_93 = (x_92 - (1.0f).xxxx);
x_10_val = x_93;
const float4 x_94 = (x_93 + float4(1.0f, 1.0f, 1.0f, 1.0f));
const float4 x_94 = (x_93 + (1.0f).xxxx);
x_10_val = x_94;
const float4 x_95 = (x_94 - float4(1.0f, 1.0f, 1.0f, 1.0f));
const float4 x_95 = (x_94 - (1.0f).xxxx);
x_10_val = x_95;
x_100_phi = false;
if (x_87) {
@ -108,13 +108,13 @@ void main_1() {
}
const bool x_100 = x_100_phi;
x_9_ok = x_100;
const float4 x_103 = (x_95 * float4(2.0f, 2.0f, 2.0f, 2.0f));
const float4 x_103 = (x_95 * (2.0f).xxxx);
x_10_val = x_103;
const float4 x_104 = (x_103 / float4(2.0f, 2.0f, 2.0f, 2.0f));
const float4 x_104 = (x_103 / (2.0f).xxxx);
x_10_val = x_104;
const float4 x_105 = (x_104 * float4(2.0f, 2.0f, 2.0f, 2.0f));
const float4 x_105 = (x_104 * (2.0f).xxxx);
x_10_val = x_105;
const float4 x_106 = (x_105 / float4(2.0f, 2.0f, 2.0f, 2.0f));
const float4 x_106 = (x_105 / (2.0f).xxxx);
x_10_val = x_106;
x_111_phi = false;
if (x_100) {

View File

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

View File

@ -33,7 +33,7 @@ float4 main_inner(uint gl_VertexIndex) {
const float2x2 x_23 = tint_symbol_3(x_20, 0u);
const float2x2 x_28 = tint_symbol_5(x_26, 0u);
const uint x_46 = gl_VertexIndex;
const float2 tint_symbol_7[3] = {float2(-1.0f, 1.0f), float2(1.0f, 1.0f), float2(-1.0f, -1.0f)};
const float2 tint_symbol_7[3] = {float2(-1.0f, 1.0f), (1.0f).xx, (-1.0f).xx};
indexable = tint_symbol_7;
const float2 x_51 = indexable[x_46];
const float2 x_52 = mul(x_51, float2x2((x_23[0u] + x_28[0u]), (x_23[1u] + x_28[1u])));

View File

@ -7,7 +7,7 @@ void main_1() {
srcValue = x_18;
const uint x_22 = srcValue.x;
srcValue.x = (x_22 + asuint(1));
Dst[int2(0, 0)] = srcValue;
Dst[(0).xx] = srcValue;
return;
}

View File

@ -8,6 +8,6 @@ void main() {
srcValue = x_22;
const uint x_24 = srcValue.x;
const uint x_25 = (x_24 + 1u);
Dst[int2(0, 0)] = srcValue.xxxx;
Dst[(0).xx] = srcValue.xxxx;
return;
}

View File

@ -44,9 +44,9 @@ void main_inner(uint3 GlobalInvocationID) {
}
uint outputIndex = ((GlobalInvocationID.y * uint(size.x)) + GlobalInvocationID.x);
if (success) {
output.Store((4u * outputIndex), asuint(uint(1)));
output.Store((4u * outputIndex), asuint(1u));
} else {
output.Store((4u * outputIndex), asuint(uint(0)));
output.Store((4u * outputIndex), asuint(0u));
}
}

View File

@ -895,7 +895,7 @@ void main_1() {
int i_2 = 0;
float2 uv = float2(0.0f, 0.0f);
const float2 x_717 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_717;
i_2 = 0;
const QuicksortObject x_721 = obj;
@ -912,10 +912,10 @@ void main_1() {
const float2 x_431 = float2(float3(1.0f, 2.0f, 3.0f).x, float3(1.0f, 2.0f, 3.0f).x);
const int x_158 = i_2;
const float2 x_723 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_723;
const float3 x_725 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_725;
const float2 x_432 = float2(x_431.y, x_431.y);
const QuicksortObject x_726 = obj;
@ -929,7 +929,7 @@ void main_1() {
const QuicksortObject tint_symbol_93 = {tint_symbol_92};
obj = tint_symbol_93;
obj = x_756;
const float2 x_446 = float2(float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).x);
const float2 x_446 = float2((0.0f).xx.x, (0.0f).xx.x);
const int x_757 = i_2;
i_2 = 0;
i_2 = x_757;
@ -941,11 +941,11 @@ void main_1() {
obj = x_758;
const float4 x_184 = gl_FragCoord;
const float2 x_759 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_759;
const float2 x_447 = float2(float2(0.0f, 0.0f).y, float2(0.0f, 0.0f).y);
const float2 x_447 = float2((0.0f).xx.y, (0.0f).xx.y);
const float2 x_760 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_760;
const float2 x_185 = float2(x_184.x, x_184.y);
const float3 x_448 = float3(x_185.y, x_446.y, x_446.y);
@ -955,7 +955,7 @@ void main_1() {
obj = tint_symbol_97;
obj = x_761;
const float2 x_762 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_762;
const float2 x_191 = asfloat(x_188[0].xy);
const QuicksortObject x_763 = obj;
@ -965,7 +965,7 @@ void main_1() {
obj = x_763;
const float3 x_449 = float3(x_184.y, float3(1.0f, 2.0f, 3.0f).z, x_184.w);
const float3 x_764 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_764;
const float2 x_192 = (x_185 / x_191);
const QuicksortObject x_765 = obj;
@ -975,15 +975,15 @@ void main_1() {
obj = x_765;
const float2 x_450 = float2(x_447.x, x_185.y);
const float3 x_766 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
const float3 x_767 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_767;
color = x_766;
uv = x_192;
color = float3(1.0f, 2.0f, 3.0f);
const float3 x_768 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_768;
const float3 x_451 = float3(x_185.x, x_185.y, x_446.y);
const QuicksortObject x_769 = obj;
@ -1019,10 +1019,10 @@ void main_1() {
const float3 x_453 = float3(x_451.x, x_450.x, x_450.y);
color.x = (x_206 + float(x_201));
const float2 x_776 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_776;
const float2 x_777 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_777;
const float2 x_454 = float2(x_184.y, x_184.y);
const float x_210 = uv.x;
@ -1042,7 +1042,7 @@ void main_1() {
const int x_781 = obj.numbers[0u];
obj.numbers[0u] = 0;
obj.numbers[0u] = x_781;
const float3 x_456 = float3(float2(0.0f, 0.0f).y, x_448.y, x_448.y);
const float3 x_456 = float3((0.0f).xx.y, x_448.y, x_448.y);
const float x_782 = uv.x;
uv.x = 0.0f;
uv.x = x_782;
@ -1054,14 +1054,14 @@ void main_1() {
obj = x_783;
const float2 x_457 = float2(x_454.x, x_454.x);
const float2 x_784 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_784;
const QuicksortObject x_785 = obj;
const int tint_symbol_112[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
const QuicksortObject tint_symbol_113 = {tint_symbol_112};
obj = tint_symbol_113;
obj = x_785;
const float2 x_458 = float2(float3(1.0f, 2.0f, 3.0f).z, float2(0.0f, 0.0f).y);
const float2 x_458 = float2(float3(1.0f, 2.0f, 3.0f).z, (0.0f).xx.y);
const int x_786 = i_2;
i_2 = 0;
i_2 = x_786;
@ -1070,10 +1070,10 @@ void main_1() {
color[0] = 0.0f;
color[0] = x_787;
const float3 x_788 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_788;
const float3 x_789 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_789;
const float3 x_459 = float3(x_454.y, x_454.y, x_447.y);
const float x_790 = color[0];
@ -1096,12 +1096,12 @@ void main_1() {
uv.x = x_794;
const float3 x_460 = float3(x_453.z, x_453.y, x_453.y);
const float2 x_795 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_795;
const float x_796 = uv.x;
uv.x = 0.0f;
uv.x = x_796;
const float2 x_461 = float2(float2(0.0f, 0.0f).y, float2(0.0f, 0.0f).y);
const float2 x_461 = float2((0.0f).xx.y, (0.0f).xx.y);
const float x_797 = uv.x;
uv.x = 0.0f;
uv.x = x_797;
@ -1145,7 +1145,7 @@ void main_1() {
const int x_808 = i_2;
i_2 = 0;
i_2 = x_808;
const float2 x_466 = float2(x_455.y, float2(0.0f, 0.0f).y);
const float2 x_466 = float2(x_455.y, (0.0f).xx.y);
const int x_809 = i_2;
i_2 = 0;
i_2 = x_809;
@ -1163,7 +1163,7 @@ void main_1() {
uv.x = x_812;
const float x_238 = uv[0];
const float3 x_813 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_813;
const float x_814 = color.x;
color.x = 0.0f;
@ -1190,7 +1190,7 @@ void main_1() {
uv.x = x_819;
const float x_249 = color.z;
const float3 x_820 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_820;
const float3 x_469 = float3(x_467.x, x_191.y, x_467.y);
const float x_821 = color.z;
@ -1199,13 +1199,13 @@ void main_1() {
const int x_822 = obj.numbers[0u];
obj.numbers[0u] = 0;
obj.numbers[0u] = x_822;
const float2 x_470 = float2(float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).y);
const float2 x_470 = float2((0.0f).xx.x, (0.0f).xx.y);
const float x_823 = color.z;
color.z = 0.0f;
color.z = x_823;
color.z = (x_249 + float(x_245));
const float2 x_824 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_824;
const float2 x_471 = float2(x_470.y, x_470.y);
}
@ -1218,7 +1218,7 @@ void main_1() {
uv[0] = 0.0f;
uv[0] = x_826;
const float3 x_827 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_827;
const float3 x_473 = float3(x_446.y, x_453.x, x_453.x);
const int x_828 = obj.numbers[4];
@ -1241,7 +1241,7 @@ void main_1() {
color.x = x_832;
const float2 x_476 = float2(x_451.z, x_460.y);
color.y = (x_257 + float(x_254));
const float3 x_477 = float3(float2(0.0f, 0.0f).x, x_472.x, float2(0.0f, 0.0f).y);
const float3 x_477 = float3((0.0f).xx.x, x_472.x, (0.0f).xx.y);
const float x_833 = uv.x;
uv.x = 0.0f;
uv.x = x_833;
@ -1256,21 +1256,21 @@ void main_1() {
const int x_836 = i_2;
i_2 = 0;
i_2 = x_836;
const float3 x_479 = float3(float2(0.0f, 0.0f).y, x_454.y, float2(0.0f, 0.0f).x);
const float3 x_479 = float3((0.0f).xx.y, x_454.y, (0.0f).xx.x);
const int x_837 = obj.numbers[0u];
obj.numbers[0u] = 0;
obj.numbers[0u] = x_837;
const float x_838 = color.y;
color.y = 0.0f;
color.y = x_838;
const float3 x_480 = float3(x_446.x, x_446.x, float2(0.0f, 0.0f).y);
const float3 x_480 = float3(x_446.x, x_446.x, (0.0f).xx.y);
const float x_839 = uv.x;
uv.x = 0.0f;
uv.x = x_839;
if ((x_261 > 0.25f)) {
const float2 x_481 = float2(x_447.x, x_480.z);
const float3 x_840 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_840;
const int x_267 = obj.numbers[5u];
const float x_841 = color.x;
@ -1347,7 +1347,7 @@ void main_1() {
const float2 x_488 = float2(x_473.z, x_473.y);
const float x_283 = color.y;
const float2 x_860 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_860;
const float x_861 = color.x;
color.x = 0.0f;
@ -1397,14 +1397,14 @@ void main_1() {
obj.numbers[4] = x_871;
if ((x_287 > 0.75f)) {
const float3 x_872 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_872;
const float x_873 = color.x;
color.x = 0.0f;
color.x = x_873;
const float3 x_495 = float3(x_192.y, x_192.x, x_192.y);
const float3 x_874 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_874;
const int x_293 = obj.numbers[7];
const float x_875 = uv.x;
@ -1457,7 +1457,7 @@ void main_1() {
i_2 = x_887;
const float2 x_502 = float2(x_451.y, x_192.y);
const float2 x_888 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_888;
const int x_301 = obj.numbers[8];
const int x_889 = i_2;
@ -1470,7 +1470,7 @@ void main_1() {
const float x_891 = color.y;
color.y = 0.0f;
color.y = x_891;
const float2 x_504 = float2(x_453.y, float2(0.0f, 0.0f).x);
const float2 x_504 = float2(x_453.y, (0.0f).xx.x);
const float x_892 = color.x;
color.x = 0.0f;
color.x = x_892;
@ -1495,7 +1495,7 @@ void main_1() {
color.y = x_897;
color.z = (x_304 + float(x_301));
const float2 x_898 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_898;
const float x_899 = uv.x;
uv.x = 0.0f;
@ -1528,7 +1528,7 @@ void main_1() {
i_2 = x_906;
const float2 x_511 = float2(x_485.z, x_485.y);
const float3 x_907 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_907;
const float x_908 = uv.y;
uv.y = 0.0f;
@ -1564,16 +1564,16 @@ void main_1() {
color.x = 0.0f;
color.x = x_915;
const float3 x_916 = color;
color = float3(0.0f, 0.0f, 0.0f);
color = (0.0f).xxx;
color = x_916;
const float2 x_516 = float2(x_452.x, x_452.x);
const float2 x_917 = uv;
uv = float2(0.0f, 0.0f);
uv = (0.0f).xx;
uv = x_917;
const float x_918 = uv.x;
uv.x = 0.0f;
uv.x = x_918;
const float3 x_517 = float3(float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).y);
const float3 x_517 = float3((0.0f).xx.x, (0.0f).xx.x, (0.0f).xx.y);
color.x = (float(x_317) + x_320);
const float x_919 = color.x;
color.x = 0.0f;

View File

@ -4,7 +4,7 @@ void unused_entry_point() {
}
void f() {
const float4x4 m = float4x4(float4(1.0f, 1.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f));
const float4 v1 = m[0];
const float4x4 m = float4x4((1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx);
const float4 v1 = float4x4((1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx)[0];
const float a = v1[0];
}

View File

@ -12,11 +12,11 @@ struct tint_symbol_2 {
};
Output main_inner(uint VertexIndex, uint InstanceIndex) {
const float2 zv[4] = {float2(0.200000003f, 0.200000003f), float2(0.300000012f, 0.300000012f), float2(-0.100000001f, -0.100000001f), float2(1.100000024f, 1.100000024f)};
const float2 zv[4] = {(0.200000003f).xx, (0.300000012f).xx, (-0.100000001f).xx, (1.100000024f).xx};
const float z = zv[InstanceIndex].x;
Output output = (Output)0;
output.Position = float4(0.5f, 0.5f, z, 1.0f);
const float4 colors[4] = {float4(1.0f, 0.0f, 0.0f, 1.0f), float4(0.0f, 1.0f, 0.0f, 1.0f), float4(0.0f, 0.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f)};
const float4 colors[4] = {float4(1.0f, 0.0f, 0.0f, 1.0f), float4(0.0f, 1.0f, 0.0f, 1.0f), float4(0.0f, 0.0f, 1.0f, 1.0f), (1.0f).xxxx};
output.color = colors[InstanceIndex];
return output;
}

View File

@ -7,5 +7,5 @@ void f() {
int i = 0;
int j = 0;
const float2x2 m = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f));
const float f_1 = m[i][j];
const float f_1 = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f))[i][j];
}

View File

@ -7,7 +7,7 @@ struct tint_symbol_1 {
};
void main_inner(uint3 GlobalInvocationId) {
result.Store((4u * ((GlobalInvocationId.y * width) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0)).x));
result.Store((4u * ((GlobalInvocationId.y * 128u) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0)).x));
}
[numthreads(1, 1, 1)]

View File

@ -38,7 +38,7 @@ void main_inner(uint3 GlobalInvocationID) {
if ((tint_tmp_2)) {
bool tint_tmp_5 = success;
if (tint_tmp_5) {
tint_tmp_5 = all((tint_symbol.Load(int3(int2(dstTexCoord), 0)) == nonCoveredColor));
tint_tmp_5 = all((tint_symbol.Load(int3(int2(dstTexCoord), 0)) == float4(0.0f, 1.0f, 0.0f, 1.0f)));
}
success = (tint_tmp_5);
} else {

View File

@ -64,32 +64,32 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) {
}
}
GroupMemoryBarrierWithGroupSync();
const uint tileRow = (local_id.y * RowPerThread);
const uint tileCol = (local_id.x * ColPerThread);
const uint globalRow = (global_id.y * RowPerThread);
const uint globalCol = (global_id.x * ColPerThread);
const uint numTiles = (((uniforms[0].y - 1u) / TileInner) + 1u);
const uint tileRow = (local_id.y * 4u);
const uint tileCol = (local_id.x * 4u);
const uint globalRow = (global_id.y * 4u);
const uint globalCol = (global_id.x * 4u);
const uint numTiles = (((uniforms[0].y - 1u) / 64u) + 1u);
float acc[16] = (float[16])0;
float ACached = 0.0f;
float BCached[4] = (float[4])0;
{
[loop] for(uint index = 0u; (index < (RowPerThread * ColPerThread)); index = (index + 1u)) {
[loop] for(uint index = 0u; (index < (4u * 4u)); index = (index + 1u)) {
acc[index] = 0.0f;
}
}
const uint ColPerThreadA = (TileInner / 16u);
const uint ColPerThreadA = (64u / 16u);
const uint tileColA = (local_id.x * ColPerThreadA);
const uint RowPerThreadB = (TileInner / 16u);
const uint RowPerThreadB = (64u / 16u);
const uint tileRowB = (local_id.y * RowPerThreadB);
{
[loop] for(uint t = 0u; (t < numTiles); t = (t + 1u)) {
{
[loop] for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) {
[loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) {
{
[loop] for(uint innerCol = 0u; (innerCol < ColPerThreadA); innerCol = (innerCol + 1u)) {
const uint inputRow = (tileRow + innerRow);
const uint inputCol = (tileColA + innerCol);
const float tint_symbol_2 = mm_readA((globalRow + innerRow), ((t * TileInner) + inputCol));
const float tint_symbol_2 = mm_readA((globalRow + innerRow), ((t * 64u) + inputCol));
mm_Asub[inputRow][inputCol] = tint_symbol_2;
}
}
@ -98,10 +98,10 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) {
{
[loop] for(uint innerRow = 0u; (innerRow < RowPerThreadB); innerRow = (innerRow + 1u)) {
{
[loop] for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) {
[loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) {
const uint inputRow = (tileRowB + innerRow);
const uint inputCol = (tileCol + innerCol);
const float tint_symbol_3 = mm_readB(((t * TileInner) + inputRow), (globalCol + innerCol));
const float tint_symbol_3 = mm_readB(((t * 64u) + inputRow), (globalCol + innerCol));
mm_Bsub[innerCol][inputCol] = tint_symbol_3;
}
}
@ -109,18 +109,18 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) {
}
GroupMemoryBarrierWithGroupSync();
{
[loop] for(uint k = 0u; (k < TileInner); k = (k + 1u)) {
[loop] for(uint k = 0u; (k < 64u); k = (k + 1u)) {
{
[loop] for(uint inner = 0u; (inner < ColPerThread); inner = (inner + 1u)) {
[loop] for(uint inner = 0u; (inner < 4u); inner = (inner + 1u)) {
BCached[inner] = mm_Bsub[k][(tileCol + inner)];
}
}
{
[loop] for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) {
[loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) {
ACached = mm_Asub[(tileRow + innerRow)][k];
{
[loop] for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) {
const uint index = ((innerRow * ColPerThread) + innerCol);
[loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) {
const uint index = ((innerRow * 4u) + innerCol);
acc[index] = (acc[index] + (ACached * BCached[innerCol]));
}
}
@ -132,10 +132,10 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) {
}
}
{
[loop] for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) {
[loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) {
{
[loop] for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) {
const uint index = ((innerRow * ColPerThread) + innerCol);
[loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) {
const uint index = ((innerRow * 4u) + innerCol);
mm_write((globalRow + innerRow), (globalCol + innerCol), acc[index]);
}
}

View File

@ -199,7 +199,7 @@ void main1() {
if ((x_e52.x == 2.0f)) {
{
const float3 x_e59 = a_Normal1;
const Mat4x2_ x_e64 = tint_symbol_8(global1, (32u * uint(0)));
const Mat4x2_ x_e64 = tint_symbol_8(global1, (32u * 0u));
const float2 x_e68 = Mul2(x_e64, float4(a_Normal1, 1.0f));
v_TexCoord = x_e68.xy;
return;
@ -207,7 +207,7 @@ void main1() {
} else {
{
const float2 x_e73 = a_UV1;
const Mat4x2_ x_e79 = tint_symbol_8(global1, (32u * uint(0)));
const Mat4x2_ x_e79 = tint_symbol_8(global1, (32u * 0u));
const float2 x_e84 = Mul2(x_e79, float4(a_UV1, 1.0f, 1.0f));
v_TexCoord = x_e84.xy;
return;

View File

@ -21,7 +21,7 @@ void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocatio
[loop] for(uint idx = local_invocation_index; (idx < 1024u); idx = (idx + 64u)) {
const uint i_1 = (idx / 256u);
const uint i_2 = (idx % 256u);
tile[i_1][i_2] = float3(0.0f, 0.0f, 0.0f);
tile[i_1][i_2] = (0.0f).xxx;
}
}
GroupMemoryBarrierWithGroupSync();
@ -38,7 +38,7 @@ void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocatio
if ((flip[0].x != 0u)) {
loadIndex = loadIndex.yx;
}
tile[r][((4u * LocalInvocationID.x) + c)] = inputTex.SampleLevel(samp, ((float2(loadIndex) + float2(0.25f, 0.25f)) / float2(dims)), 0.0f).rgb;
tile[r][((4u * LocalInvocationID.x) + c)] = inputTex.SampleLevel(samp, ((float2(loadIndex) + (0.25f).xx) / float2(dims)), 0.0f).rgb;
}
}
}
@ -62,7 +62,7 @@ void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocatio
tint_tmp_1 = all((writeIndex < dims));
}
if ((tint_tmp_1)) {
float3 acc = float3(0.0f, 0.0f, 0.0f);
float3 acc = (0.0f).xxx;
{
[loop] for(uint f = 0u; (f < params[0].x); f = (f + 1u)) {
uint i = ((center + f) - filterOffset);

View File

@ -20,7 +20,7 @@ bool coordsInBounds_vi2_vi2_(inout int2 coord, inout int2 shape) {
bool x_87 = false;
bool x_88_phi = false;
const int2 x_76 = coord;
const bool x_81 = all((x_76 >= int2(0, 0)));
const bool x_81 = all((x_76 >= (0).xx));
x_88_phi = x_81;
if (x_81) {
const int2 x_84 = coord;

View File

@ -39,7 +39,7 @@ float4x4 getFrameData_f1_(inout float frameID) {
const float4 x_40 = frameMapTexture.SampleBias(frameMapSampler, float2(fX, 0.0f), 0.0f);
const float4 x_47 = frameMapTexture.SampleBias(frameMapSampler, float2(fX, 0.25f), 0.0f);
const float4 x_54 = frameMapTexture.SampleBias(frameMapSampler, float2(fX, 0.5f), 0.0f);
return float4x4(float4(x_40.x, x_40.y, x_40.z, x_40.w), float4(x_47.x, x_47.y, x_47.z, x_47.w), float4(x_54.x, x_54.y, x_54.z, x_54.w), float4(float4(0.0f, 0.0f, 0.0f, 0.0f).x, float4(0.0f, 0.0f, 0.0f, 0.0f).y, float4(0.0f, 0.0f, 0.0f, 0.0f).z, float4(0.0f, 0.0f, 0.0f, 0.0f).w));
return float4x4(float4(x_40.x, x_40.y, x_40.z, x_40.w), float4(x_47.x, x_47.y, x_47.z, x_47.w), float4(x_54.x, x_54.y, x_54.z, x_54.w), float4((0.0f).xxxx.x, (0.0f).xxxx.y, (0.0f).xxxx.z, (0.0f).xxxx.w));
}
void main_1() {
@ -61,17 +61,17 @@ void main_1() {
float4 nc = float4(0.0f, 0.0f, 0.0f, 0.0f);
float alpha = 0.0f;
float3 mixed = float3(0.0f, 0.0f, 0.0f);
color = float4(0.0f, 0.0f, 0.0f, 0.0f);
color = (0.0f).xxxx;
tileUV = frac(tUV);
const float x_91 = tileUV.y;
tileUV.y = (1.0f - x_91);
tileID = floor(tUV);
const float2 x_101 = asfloat(x_20[6].xy);
sheetUnits = (float2(1.0f, 1.0f) / x_101);
sheetUnits = ((1.0f).xx / x_101);
const float x_106 = asfloat(x_20[6].w);
spriteUnits = (1.0f / x_106);
const float2 x_111 = asfloat(x_20[5].zw);
stageUnits = (float2(1.0f, 1.0f) / x_111);
stageUnits = ((1.0f).xx / x_111);
i = 0;
{
[loop] for(; (i < 2); i = (i + 1)) {
@ -79,14 +79,14 @@ void main_1() {
case 1: {
const float2 x_150 = tileID;
const float2 x_154 = asfloat(x_20[5].zw);
const float4 x_156 = tileMapsTexture1.SampleBias(tileMapsSampler, ((x_150 + float2(0.5f, 0.5f)) / x_154), 0.0f);
const float4 x_156 = tileMapsTexture1.SampleBias(tileMapsSampler, ((x_150 + (0.5f).xx) / x_154), 0.0f);
frameID_1 = x_156.x;
break;
}
case 0: {
const float2 x_136 = tileID;
const float2 x_140 = asfloat(x_20[5].zw);
const float4 x_142 = tileMapsTexture0.SampleBias(tileMapsSampler, ((x_136 + float2(0.5f, 0.5f)) / x_140), 0.0f);
const float4 x_142 = tileMapsTexture0.SampleBias(tileMapsSampler, ((x_136 + (0.5f).xx) / x_140), 0.0f);
frameID_1 = x_142.x;
break;
}

View File

@ -120,7 +120,7 @@ float3 perturbNormal_mf33_vf3_f1_(inout float3x3 cotangentFrame_1, inout float3
const float3 x_119 = textureSample;
const float3x3 x_125 = cotangentFrame_1;
param = x_125;
param_1 = ((x_119 * 2.0f) - float3(1.0f, 1.0f, 1.0f));
param_1 = ((x_119 * 2.0f) - (1.0f).xxx);
const float x_128 = scale_1;
param_2 = x_128;
const float3 x_129 = perturbNormalBase_mf33_vf3_f1_(param, param_1, param_2);
@ -208,7 +208,7 @@ void main_1() {
float3 specularOutput = float3(0.0f, 0.0f, 0.0f);
float3 output3 = float3(0.0f, 0.0f, 0.0f);
u_Float = 100.0f;
u_Color = float3(0.5f, 0.5f, 0.5f);
u_Color = (0.5f).xxx;
const float4 x_262 = TextureSamplerTexture.Sample(TextureSamplerSampler, vMainuv);
tempTextureRead = x_262;
const float4 x_264 = tempTextureRead;
@ -217,8 +217,8 @@ void main_1() {
const float3 x_279 = asfloat(x_269[9].xyz);
const float4 x_282 = v_output1;
output5 = normalize((x_279 - float3(x_282.x, x_282.y, x_282.z)));
output4 = float4(0.0f, 0.0f, 0.0f, 0.0f);
uvOffset = float2(0.0f, 0.0f);
output4 = (0.0f).xxxx;
uvOffset = (0.0f).xx;
const float x_292 = asfloat(x_269[8].x);
normalScale = (1.0f / x_292);
if (gl_FrontFacing) {
@ -250,8 +250,8 @@ void main_1() {
numSamples = (15.0f + (dot(mul(-(output5), invTBN), mul(float3(x_366.x, x_366.y, x_366.z), invTBN)) * -11.0f));
stepSize = (1.0f / numSamples);
currRayHeight = 1.0f;
vCurrOffset = float2(0.0f, 0.0f);
vLastOffset = float2(0.0f, 0.0f);
vCurrOffset = (0.0f).xx;
vLastOffset = (0.0f).xx;
lastSampledHeight = 1.0f;
currSampledHeight = 1.0f;
i = 0;
@ -292,8 +292,8 @@ void main_1() {
viewDirectionW_1 = normalize((x_481 - float3(x_482.x, x_482.y, x_482.z)));
shadow = 1.0f;
glossiness_1 = (1.0f * u_Float);
diffuseBase = float3(0.0f, 0.0f, 0.0f);
specularBase = float3(0.0f, 0.0f, 0.0f);
diffuseBase = (0.0f).xxx;
specularBase = (0.0f).xxx;
const float4 x_494 = output4;
normalW = float3(x_494.x, x_494.y, x_494.z);
param_11 = viewDirectionW_1;

View File

@ -3,7 +3,7 @@ void set_float3(inout float3 vec, int idx, float val) {
}
float3 Bad(uint index, float3 rd) {
float3 normal = float3((0.0f).xxx);
float3 normal = (0.0f).xxx;
set_float3(normal, index, -(sign(rd[index])));
return normalize(normal);
}

View File

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

View File

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

View File

@ -1,5 +1,5 @@
void abs_002533() {
float4 res = abs(float4(0.0f, 0.0f, 0.0f, 0.0f));
float4 res = abs((0.0f).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_002533();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_005174() {
float3 res = abs(float3(0.0f, 0.0f, 0.0f));
float3 res = abs((0.0f).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_005174();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_1ce782() {
uint4 res = abs(uint4(0u, 0u, 0u, 0u));
uint4 res = abs((0u).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_1ce782();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_1e9d53() {
float2 res = abs(float2(0.0f, 0.0f));
float2 res = abs((0.0f).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_1e9d53();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_467cd1();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_4ad288();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_5ad50a() {
int3 res = abs(int3(0, 0, 0));
int3 res = abs((0).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_5ad50a();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_7326de() {
uint3 res = abs(uint3(0u, 0u, 0u));
uint3 res = abs((0u).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_7326de();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_7f28e6() {
uint2 res = abs(uint2(0u, 0u));
uint2 res = abs((0u).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_7f28e6();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_7faa9e() {
int2 res = abs(int2(0, 0));
int2 res = abs((0).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_7faa9e();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void abs_9c80a6() {
int4 res = abs(int4(0, 0, 0, 0));
int4 res = abs((0).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_9c80a6();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
abs_b96037();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
acos_489247();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void acos_8e2acf() {
float4 res = acos(float4(0.0f, 0.0f, 0.0f, 0.0f));
float4 res = acos((0.0f).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
acos_8e2acf();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void acos_a610c4() {
float3 res = acos(float3(0.0f, 0.0f, 0.0f));
float3 res = acos((0.0f).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
acos_a610c4();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void acos_dfc915() {
float2 res = acos(float2(0.0f, 0.0f));
float2 res = acos((0.0f).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
acos_dfc915();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
all_353d6a();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void all_986c7b() {
bool res = all(bool4(false, false, false, false));
bool res = all((false).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
all_986c7b();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void all_bd2dba() {
bool res = all(bool3(false, false, false));
bool res = all((false).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
all_bd2dba();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void all_f46790() {
bool res = all(bool2(false, false));
bool res = all((false).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
all_f46790();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void any_083428() {
bool res = any(bool4(false, false, false, false));
bool res = any((false).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
any_083428();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void any_0e3e58() {
bool res = any(bool2(false, false));
bool res = any((false).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
any_0e3e58();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
any_2ab91a();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void any_e755c1() {
bool res = any(bool3(false, false, false));
bool res = any((false).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
any_e755c1();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -13,7 +13,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
arrayLength_1588cd();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -13,7 +13,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
arrayLength_61b1c7();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -13,7 +13,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
arrayLength_a0f5ca();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -13,7 +13,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
arrayLength_cdd123();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -13,7 +13,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
arrayLength_cfca0a();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -13,7 +13,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
arrayLength_eb510f();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void asin_064953() {
float4 res = asin(float4(0.0f, 0.0f, 0.0f, 0.0f));
float4 res = asin((0.0f).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
asin_064953();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void asin_7b6a44() {
float2 res = asin(float2(0.0f, 0.0f));
float2 res = asin((0.0f).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
asin_7b6a44();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void asin_8cd9c9() {
float3 res = asin(float3(0.0f, 0.0f, 0.0f));
float3 res = asin((0.0f).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
asin_8cd9c9();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
asin_c0c272();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan_02979a();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void atan_331e6d() {
float3 res = atan(float3(0.0f, 0.0f, 0.0f));
float3 res = atan((0.0f).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan_331e6d();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void atan_a8b696() {
float4 res = atan(float4(0.0f, 0.0f, 0.0f, 0.0f));
float4 res = atan((0.0f).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan_a8b696();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void atan_ad96e4() {
float2 res = atan(float2(0.0f, 0.0f));
float2 res = atan((0.0f).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan_ad96e4();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void atan2_57fb13() {
float2 res = atan2(float2(0.0f, 0.0f), float2(0.0f, 0.0f));
float2 res = atan2((0.0f).xx, (0.0f).xx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan2_57fb13();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan2_96057c();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void atan2_a70d0d() {
float3 res = atan2(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f));
float3 res = atan2((0.0f).xxx, (0.0f).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan2_a70d0d();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void atan2_ae713e() {
float4 res = atan2(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f));
float4 res = atan2((0.0f).xxxx, (0.0f).xxxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
atan2_ae713e();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -1,5 +1,5 @@
void ceil_34064b() {
float3 res = ceil(float3(0.0f, 0.0f, 0.0f));
float3 res = ceil((0.0f).xxx);
}
struct tint_symbol {
@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
ceil_34064b();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

View File

@ -8,7 +8,7 @@ struct tint_symbol {
float4 vertex_main_inner() {
ceil_678655();
return float4(0.0f, 0.0f, 0.0f, 0.0f);
return (0.0f).xxxx;
}
tint_symbol vertex_main() {

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