Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
static float3 iv;
static float3 ov;

struct SPIRV_Cross_Input
{
float3 iv : TEXCOORD0;
};

struct SPIRV_Cross_Output
{
float3 ov : SV_Target0;
};

void frag_main()
{
#line 137 "test.frag"
#line 106 "test.frag"
bool _288 = iv.x < 0.0f;
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0f;
}
else
{
#line 109 "test.frag"
ov.x = 60.0f;
}
#line 114 "test.frag"
for (int _519 = 0; _519 < 4; _519++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0f;
}
else
{
#line 109 "test.frag"
ov.x = 60.0f;
}
#line 117 "test.frag"
if (iv.y < 0.0f)
{
#line 118 "test.frag"
ov.y = 70.0f;
}
else
{
#line 120 "test.frag"
ov.y = 80.0f;
}
}
#line 126 "test.frag"
for (int _523 = 0; _523 < 4; _523++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0f;
}
else
{
#line 109 "test.frag"
ov.x = 60.0f;
}
#line 114 "test.frag"
for (int _527 = 0; _527 < 4; _527++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0f;
}
else
{
#line 109 "test.frag"
ov.x = 60.0f;
}
#line 117 "test.frag"
if (iv.y < 0.0f)
{
#line 118 "test.frag"
ov.y = 70.0f;
}
else
{
#line 120 "test.frag"
ov.y = 80.0f;
}
}
#line 130 "test.frag"
if (iv.z < 0.0f)
{
#line 131 "test.frag"
ov.z = 100.0f;
}
else
{
#line 133 "test.frag"
ov.z = 120.0f;
}
}
#line 142 "test.frag"
}

SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
iv = stage_input.iv;
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.ov = ov;
return stage_output;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct main0_out
{
float3 ov [[color(0)]];
};

struct main0_in
{
float3 iv [[user(locn0)]];
};

fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
#line 137 "test.frag"
#line 106 "test.frag"
bool _288 = in.iv.x < 0.0;
if (_288)
{
#line 107 "test.frag"
out.ov.x = 50.0;
}
else
{
#line 109 "test.frag"
out.ov.x = 60.0;
}
#line 114 "test.frag"
for (int _519 = 0; _519 < 4; _519++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
out.ov.x = 50.0;
}
else
{
#line 109 "test.frag"
out.ov.x = 60.0;
}
#line 117 "test.frag"
if (in.iv.y < 0.0)
{
#line 118 "test.frag"
out.ov.y = 70.0;
}
else
{
#line 120 "test.frag"
out.ov.y = 80.0;
}
}
#line 126 "test.frag"
for (int _523 = 0; _523 < 4; _523++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
out.ov.x = 50.0;
}
else
{
#line 109 "test.frag"
out.ov.x = 60.0;
}
#line 114 "test.frag"
for (int _527 = 0; _527 < 4; _527++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
out.ov.x = 50.0;
}
else
{
#line 109 "test.frag"
out.ov.x = 60.0;
}
#line 117 "test.frag"
if (in.iv.y < 0.0)
{
#line 118 "test.frag"
out.ov.y = 70.0;
}
else
{
#line 120 "test.frag"
out.ov.y = 80.0;
}
}
#line 130 "test.frag"
if (in.iv.z < 0.0)
{
#line 131 "test.frag"
out.ov.z = 100.0;
}
else
{
#line 133 "test.frag"
out.ov.z = 120.0;
}
}
#line 142 "test.frag"
return out;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
#version 450
#extension GL_GOOGLE_cpp_style_line_directive : require

layout(location = 0) in vec3 iv;
layout(location = 0) out vec3 ov;

void main()
{
#line 137 "test.frag"
#line 106 "test.frag"
bool _288 = iv.x < 0.0;
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0;
}
else
{
#line 109 "test.frag"
ov.x = 60.0;
}
#line 114 "test.frag"
for (int _519 = 0; _519 < 4; _519++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0;
}
else
{
#line 109 "test.frag"
ov.x = 60.0;
}
#line 117 "test.frag"
if (iv.y < 0.0)
{
#line 118 "test.frag"
ov.y = 70.0;
}
else
{
#line 120 "test.frag"
ov.y = 80.0;
}
}
#line 126 "test.frag"
for (int _523 = 0; _523 < 4; _523++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0;
}
else
{
#line 109 "test.frag"
ov.x = 60.0;
}
#line 114 "test.frag"
for (int _527 = 0; _527 < 4; _527++)
{
#line 106 "test.frag"
if (_288)
{
#line 107 "test.frag"
ov.x = 50.0;
}
else
{
#line 109 "test.frag"
ov.x = 60.0;
}
#line 117 "test.frag"
if (iv.y < 0.0)
{
#line 118 "test.frag"
ov.y = 70.0;
}
else
{
#line 120 "test.frag"
ov.y = 80.0;
}
}
#line 130 "test.frag"
if (iv.z < 0.0)
{
#line 131 "test.frag"
ov.z = 100.0;
}
else
{
#line 133 "test.frag"
ov.z = 120.0;
}
}
#line 142 "test.frag"
}

Loading
Loading