mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-12 15:10:30 +00:00
Roll GLSLang, SPIRV-Headers and SPIRV-Tools.
This Cl updates the various dependencies and the test file outputs.
This commit is contained in:
parent
6575e451f5
commit
c4f3d4ae29
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
GLSLANG_REV=f5ed7a69d5d64bd3ac802712c24995c6c12d23f8
|
||||
SPIRV_TOOLS_REV=bd2a9ea85210d3bb474bc5adb9ff4b0bb536b4fc
|
||||
SPIRV_HEADERS_REV=11d7637e7a43cd88cfd4e42c99581dcb682936aa
|
||||
GLSLANG_REV=3ee5f2f1d3316e228916788b300d786bb574d337
|
||||
SPIRV_TOOLS_REV=0b84727f21c21b817e4db37234b50e5481c3e519
|
||||
SPIRV_HEADERS_REV=979924c8bc839e4cb1b69d03d48398551f369ce7
|
||||
|
||||
if [ -z $PROTOCOL ]; then
|
||||
PROTOCOL=git
|
||||
|
@ -1,6 +1,6 @@
|
||||
cbuffer Block : register(b0)
|
||||
{
|
||||
column_major float2x3 _106_var[3][4] : packoffset(c0);
|
||||
column_major float2x3 _104_var[3][4] : packoffset(c0);
|
||||
};
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ struct SPIRV_Cross_Output
|
||||
void vert_main()
|
||||
{
|
||||
gl_Position = a_position;
|
||||
v_vtxResult = ((float(abs(_106_var[0][0][0].x - 2.0f) < 0.0500000007450580596923828125f) * float(abs(_106_var[0][0][0].y - 6.0f) < 0.0500000007450580596923828125f)) * float(abs(_106_var[0][0][0].z - (-6.0f)) < 0.0500000007450580596923828125f)) * ((float(abs(_106_var[0][0][1].x) < 0.0500000007450580596923828125f) * float(abs(_106_var[0][0][1].y - 5.0f) < 0.0500000007450580596923828125f)) * float(abs(_106_var[0][0][1].z - 5.0f) < 0.0500000007450580596923828125f));
|
||||
v_vtxResult = ((float(abs(_104_var[0][0][0].x - 2.0f) < 0.0500000007450580596923828125f) * float(abs(_104_var[0][0][0].y - 6.0f) < 0.0500000007450580596923828125f)) * float(abs(_104_var[0][0][0].z - (-6.0f)) < 0.0500000007450580596923828125f)) * ((float(abs(_104_var[0][0][1].x) < 0.0500000007450580596923828125f) * float(abs(_104_var[0][0][1].y - 5.0f) < 0.0500000007450580596923828125f)) * float(abs(_104_var[0][0][1].z - 5.0f) < 0.0500000007450580596923828125f));
|
||||
}
|
||||
|
||||
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
||||
|
@ -50,10 +50,10 @@ struct Foobar
|
||||
float b;
|
||||
};
|
||||
|
||||
constant spvUnsafeArray<float4, 3> _40 = spvUnsafeArray<float4, 3>({ float4(1.0), float4(2.0), float4(3.0) });
|
||||
constant spvUnsafeArray<float4, 2> _51 = spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) });
|
||||
constant spvUnsafeArray<float4, 2> _56 = spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) });
|
||||
constant spvUnsafeArray<spvUnsafeArray<float4, 2>, 2> _57 = spvUnsafeArray<spvUnsafeArray<float4, 2>, 2>({ spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) }), spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) }) });
|
||||
constant spvUnsafeArray<float4, 3> _37 = spvUnsafeArray<float4, 3>({ float4(1.0), float4(2.0), float4(3.0) });
|
||||
constant spvUnsafeArray<float4, 2> _49 = spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) });
|
||||
constant spvUnsafeArray<float4, 2> _54 = spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) });
|
||||
constant spvUnsafeArray<spvUnsafeArray<float4, 2>, 2> _55 = spvUnsafeArray<spvUnsafeArray<float4, 2>, 2>({ spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) }), spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) }) });
|
||||
|
||||
struct main0_out
|
||||
{
|
||||
@ -67,10 +67,10 @@ struct main0_in
|
||||
|
||||
fragment main0_out main0(main0_in in [[stage_in]])
|
||||
{
|
||||
spvUnsafeArray<Foobar, 2> _77 = spvUnsafeArray<Foobar, 2>({ Foobar{ 10.0, 40.0 }, Foobar{ 90.0, 70.0 } });
|
||||
spvUnsafeArray<Foobar, 2> _75 = spvUnsafeArray<Foobar, 2>({ Foobar{ 10.0, 40.0 }, Foobar{ 90.0, 70.0 } });
|
||||
|
||||
main0_out out = {};
|
||||
out.FragColor = ((_40[in.index] + _57[in.index][in.index + 1]) + float4(30.0)) + float4(_77[in.index].a + _77[in.index].b);
|
||||
out.FragColor = ((_37[in.index] + _55[in.index][in.index + 1]) + float4(30.0)) + float4(_75[in.index].a + _75[in.index].b);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
@ -29,16 +29,16 @@ struct main0_patchIn
|
||||
[[ patch(quad, 0) ]] vertex main0_out main0(main0_patchIn patchIn [[stage_in]], constant UBO& _31 [[buffer(0)]], texture2d<float> uHeightmapDisplacement [[texture(0)]], sampler uHeightmapDisplacementSmplr [[sampler(0)]], float2 gl_TessCoord [[position_in_patch]])
|
||||
{
|
||||
main0_out out = {};
|
||||
float2 _204 = patchIn.vOutPatchPosBase + (float3(gl_TessCoord, 0).xy * _31.uPatchSize);
|
||||
float2 _219 = mix(patchIn.vPatchLods.yx, patchIn.vPatchLods.zw, float2(float3(gl_TessCoord, 0).x));
|
||||
float _226 = mix(_219.x, _219.y, float3(gl_TessCoord, 0).y);
|
||||
float _228 = floor(_226);
|
||||
float2 _127 = _204 * _31.uInvHeightmapSize;
|
||||
float2 _143 = _31.uInvHeightmapSize * exp2(_228);
|
||||
out.vGradNormalTex = float4(_127 + (_31.uInvHeightmapSize * 0.5), _127 * _31.uScale.zw);
|
||||
float3 _260 = mix(uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_127 + (_143 * 0.5)), level(_228)).xyz, uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_127 + (_143 * 1.0)), level(_228 + 1.0)).xyz, float3(_226 - _228));
|
||||
float2 _173 = (_204 * _31.uScale.xy) + _260.yz;
|
||||
out.vWorld = float3(_173.x, _260.x, _173.y);
|
||||
float2 _202 = patchIn.vOutPatchPosBase + (float3(gl_TessCoord, 0).xy * _31.uPatchSize);
|
||||
float2 _216 = mix(patchIn.vPatchLods.yx, patchIn.vPatchLods.zw, float2(float3(gl_TessCoord, 0).x));
|
||||
float _223 = mix(_216.x, _216.y, float3(gl_TessCoord, 0).y);
|
||||
float _225 = floor(_223);
|
||||
float2 _125 = _202 * _31.uInvHeightmapSize;
|
||||
float2 _141 = _31.uInvHeightmapSize * exp2(_225);
|
||||
out.vGradNormalTex = float4(_125 + (_31.uInvHeightmapSize * 0.5), _125 * _31.uScale.zw);
|
||||
float3 _256 = mix(uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_125 + (_141 * 0.5)), level(_225)).xyz, uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_125 + (_141 * 1.0)), level(_225 + 1.0)).xyz, float3(_223 - _225));
|
||||
float2 _171 = (_202 * _31.uScale.xy) + _256.yz;
|
||||
out.vWorld = float3(_171.x, _256.x, _171.y);
|
||||
out.gl_Position = _31.uMVP * float4(out.vWorld, 1.0);
|
||||
return out;
|
||||
}
|
||||
|
@ -19,11 +19,11 @@ struct main0_in
|
||||
float4 a_position [[attribute(0)]];
|
||||
};
|
||||
|
||||
vertex main0_out main0(main0_in in [[stage_in]], constant Block& _106 [[buffer(0)]])
|
||||
vertex main0_out main0(main0_in in [[stage_in]], constant Block& _104 [[buffer(0)]])
|
||||
{
|
||||
main0_out out = {};
|
||||
out.gl_Position = in.a_position;
|
||||
out.v_vtxResult = ((float(abs(_106.var[0][0][0][0] - 2.0) < 0.0500000007450580596923828125) * float(abs(_106.var[0][0][1][0] - 6.0) < 0.0500000007450580596923828125)) * float(abs(_106.var[0][0][2][0] - (-6.0)) < 0.0500000007450580596923828125)) * ((float(abs(_106.var[0][0][0][1]) < 0.0500000007450580596923828125) * float(abs(_106.var[0][0][1][1] - 5.0) < 0.0500000007450580596923828125)) * float(abs(_106.var[0][0][2][1] - 5.0) < 0.0500000007450580596923828125));
|
||||
out.v_vtxResult = ((float(abs(_104.var[0][0][0][0] - 2.0) < 0.0500000007450580596923828125) * float(abs(_104.var[0][0][1][0] - 6.0) < 0.0500000007450580596923828125)) * float(abs(_104.var[0][0][2][0] - (-6.0)) < 0.0500000007450580596923828125)) * ((float(abs(_104.var[0][0][0][1]) < 0.0500000007450580596923828125) * float(abs(_104.var[0][0][1][1] - 5.0) < 0.0500000007450580596923828125)) * float(abs(_104.var[0][0][2][1] - 5.0) < 0.0500000007450580596923828125));
|
||||
return out;
|
||||
}
|
||||
|
||||
|
@ -8,15 +8,15 @@ struct Foobar
|
||||
float b;
|
||||
};
|
||||
|
||||
const vec4 _40[3] = vec4[](vec4(1.0), vec4(2.0), vec4(3.0));
|
||||
const vec4 _57[2][2] = vec4[][](vec4[](vec4(1.0), vec4(2.0)), vec4[](vec4(8.0), vec4(10.0)));
|
||||
const Foobar _77[2] = Foobar[](Foobar(10.0, 40.0), Foobar(90.0, 70.0));
|
||||
const vec4 _37[3] = vec4[](vec4(1.0), vec4(2.0), vec4(3.0));
|
||||
const vec4 _55[2][2] = vec4[][](vec4[](vec4(1.0), vec4(2.0)), vec4[](vec4(8.0), vec4(10.0)));
|
||||
const Foobar _75[2] = Foobar[](Foobar(10.0, 40.0), Foobar(90.0, 70.0));
|
||||
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
layout(location = 0) flat in mediump int index;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = ((_40[index] + _57[index][index + 1]) + vec4(30.0)) + vec4(_77[index].a + _77[index].b);
|
||||
FragColor = ((_37[index] + _55[index][index + 1]) + vec4(30.0)) + vec4(_75[index].a + _75[index].b);
|
||||
}
|
||||
|
||||
|
@ -21,16 +21,16 @@ layout(location = 0) out vec3 vWorld;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 _204 = vOutPatchPosBase + (gl_TessCoord.xy * _31.uPatchSize);
|
||||
vec2 _219 = mix(vPatchLods.yx, vPatchLods.zw, vec2(gl_TessCoord.x));
|
||||
float _226 = mix(_219.x, _219.y, gl_TessCoord.y);
|
||||
mediump float _228 = floor(_226);
|
||||
vec2 _127 = _204 * _31.uInvHeightmapSize;
|
||||
vec2 _143 = _31.uInvHeightmapSize * exp2(_228);
|
||||
vGradNormalTex = vec4(_127 + (_31.uInvHeightmapSize * 0.5), _127 * _31.uScale.zw);
|
||||
mediump vec3 _260 = mix(textureLod(uHeightmapDisplacement, _127 + (_143 * 0.5), _228).xyz, textureLod(uHeightmapDisplacement, _127 + (_143 * 1.0), _228 + 1.0).xyz, vec3(_226 - _228));
|
||||
vec2 _173 = (_204 * _31.uScale.xy) + _260.yz;
|
||||
vWorld = vec3(_173.x, _260.x, _173.y);
|
||||
vec2 _202 = vOutPatchPosBase + (gl_TessCoord.xy * _31.uPatchSize);
|
||||
vec2 _216 = mix(vPatchLods.yx, vPatchLods.zw, vec2(gl_TessCoord.x));
|
||||
float _223 = mix(_216.x, _216.y, gl_TessCoord.y);
|
||||
mediump float _225 = floor(_223);
|
||||
vec2 _125 = _202 * _31.uInvHeightmapSize;
|
||||
vec2 _141 = _31.uInvHeightmapSize * exp2(_225);
|
||||
vGradNormalTex = vec4(_125 + (_31.uInvHeightmapSize * 0.5), _125 * _31.uScale.zw);
|
||||
mediump vec3 _256 = mix(textureLod(uHeightmapDisplacement, _125 + (_141 * 0.5), _225).xyz, textureLod(uHeightmapDisplacement, _125 + (_141 * 1.0), _225 + 1.0).xyz, vec3(_223 - _225));
|
||||
vec2 _171 = (_202 * _31.uScale.xy) + _256.yz;
|
||||
vWorld = vec3(_171.x, _256.x, _171.y);
|
||||
gl_Position = _31.uMVP * vec4(vWorld, 1.0);
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
layout(binding = 0, std140) uniform Block
|
||||
{
|
||||
layout(row_major) mat2x3 var[3][4];
|
||||
} _106;
|
||||
} _104;
|
||||
|
||||
layout(location = 0) in vec4 a_position;
|
||||
layout(location = 0) out mediump float v_vtxResult;
|
||||
@ -11,6 +11,6 @@ layout(location = 0) out mediump float v_vtxResult;
|
||||
void main()
|
||||
{
|
||||
gl_Position = a_position;
|
||||
v_vtxResult = ((float(abs(_106.var[0][0][0].x - 2.0) < 0.0500000007450580596923828125) * float(abs(_106.var[0][0][0].y - 6.0) < 0.0500000007450580596923828125)) * float(abs(_106.var[0][0][0].z - (-6.0)) < 0.0500000007450580596923828125)) * ((float(abs(_106.var[0][0][1].x) < 0.0500000007450580596923828125) * float(abs(_106.var[0][0][1].y - 5.0) < 0.0500000007450580596923828125)) * float(abs(_106.var[0][0][1].z - 5.0) < 0.0500000007450580596923828125));
|
||||
v_vtxResult = ((float(abs(_104.var[0][0][0].x - 2.0) < 0.0500000007450580596923828125) * float(abs(_104.var[0][0][0].y - 6.0) < 0.0500000007450580596923828125)) * float(abs(_104.var[0][0][0].z - (-6.0)) < 0.0500000007450580596923828125)) * ((float(abs(_104.var[0][0][1].x) < 0.0500000007450580596923828125) * float(abs(_104.var[0][0][1].y - 5.0) < 0.0500000007450580596923828125)) * float(abs(_104.var[0][0][1].z - 5.0) < 0.0500000007450580596923828125));
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 _101 = (vTex + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler[1], 0)))) + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler[2], 1)));
|
||||
FragColor = ((((texture(SPIRV_Cross_CombineduTextureuSampler[2], _101) + texture(SPIRV_Cross_CombineduTextureuSampler[1], _101)) + texture(SPIRV_Cross_CombineduTextureuSampler[1], _101)) + texture(SPIRV_Cross_CombineduTextureArrayuSampler[3], vTex3)) + texture(SPIRV_Cross_CombineduTextureCubeuSampler[1], vTex3)) + texture(SPIRV_Cross_CombineduTexture3DuSampler[2], vTex3);
|
||||
vec2 _95 = (vTex + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler[1], 0)))) + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler[2], 1)));
|
||||
FragColor = ((((texture(SPIRV_Cross_CombineduTextureuSampler[2], _95) + texture(SPIRV_Cross_CombineduTextureuSampler[1], _95)) + texture(SPIRV_Cross_CombineduTextureuSampler[1], _95)) + texture(SPIRV_Cross_CombineduTextureArrayuSampler[3], vTex3)) + texture(SPIRV_Cross_CombineduTextureCubeuSampler[1], vTex3)) + texture(SPIRV_Cross_CombineduTexture3DuSampler[2], vTex3);
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 _101 = (vTex + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture[1], uSampler), 0)))) + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture[2], uSampler), 1)));
|
||||
FragColor = ((((texture(sampler2D(uTexture[2], uSampler), _101) + texture(sampler2D(uTexture[1], uSampler), _101)) + texture(sampler2D(uTexture[1], uSampler), _101)) + texture(sampler2DArray(uTextureArray[3], uSampler), vTex3)) + texture(samplerCube(uTextureCube[1], uSampler), vTex3)) + texture(sampler3D(uTexture3D[2], uSampler), vTex3);
|
||||
vec2 _95 = (vTex + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture[1], uSampler), 0)))) + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture[2], uSampler), 1)));
|
||||
FragColor = ((((texture(sampler2D(uTexture[2], uSampler), _95) + texture(sampler2D(uTexture[1], uSampler), _95)) + texture(sampler2D(uTexture[1], uSampler), _95)) + texture(sampler2DArray(uTextureArray[3], uSampler), vTex3)) + texture(samplerCube(uTextureCube[1], uSampler), vTex3)) + texture(sampler3D(uTexture3D[2], uSampler), vTex3);
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 _77 = (vTex + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler, 0)))) + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler, 1)));
|
||||
FragColor = (((texture(SPIRV_Cross_CombineduTextureuSampler, _77) + texture(SPIRV_Cross_CombineduTextureuSampler, _77)) + texture(SPIRV_Cross_CombineduTextureArrayuSampler, vTex3)) + texture(SPIRV_Cross_CombineduTextureCubeuSampler, vTex3)) + texture(SPIRV_Cross_CombineduTexture3DuSampler, vTex3);
|
||||
vec2 _73 = (vTex + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler, 0)))) + (vec2(1.0) / vec2(textureSize(SPIRV_Cross_CombineduTextureuSampler, 1)));
|
||||
FragColor = (((texture(SPIRV_Cross_CombineduTextureuSampler, _73) + texture(SPIRV_Cross_CombineduTextureuSampler, _73)) + texture(SPIRV_Cross_CombineduTextureArrayuSampler, vTex3)) + texture(SPIRV_Cross_CombineduTextureCubeuSampler, vTex3)) + texture(SPIRV_Cross_CombineduTexture3DuSampler, vTex3);
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 _77 = (vTex + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture, uSampler), 0)))) + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture, uSampler), 1)));
|
||||
FragColor = (((texture(sampler2D(uTexture, uSampler), _77) + texture(sampler2D(uTexture, uSampler), _77)) + texture(sampler2DArray(uTextureArray, uSampler), vTex3)) + texture(samplerCube(uTextureCube, uSampler), vTex3)) + texture(sampler3D(uTexture3D, uSampler), vTex3);
|
||||
vec2 _73 = (vTex + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture, uSampler), 0)))) + (vec2(1.0) / vec2(textureSize(sampler2D(uTexture, uSampler), 1)));
|
||||
FragColor = (((texture(sampler2D(uTexture, uSampler), _73) + texture(sampler2D(uTexture, uSampler), _73)) + texture(sampler2DArray(uTextureArray, uSampler), vTex3)) + texture(samplerCube(uTextureCube, uSampler), vTex3)) + texture(sampler3D(uTexture3D, uSampler), vTex3);
|
||||
}
|
||||
|
||||
|
@ -11,14 +11,12 @@ struct SPIRV_Cross_Output
|
||||
|
||||
float samp2(Texture2D<float4> t, SamplerComparisonState s)
|
||||
{
|
||||
float _37 = t.SampleCmp(s, 1.0f.xxx.xy, 1.0f.xxx.z);
|
||||
return _37;
|
||||
return t.SampleCmp(s, 1.0f.xxx.xy, 1.0f.xxx.z);
|
||||
}
|
||||
|
||||
float samp3(Texture2D<float4> t, SamplerState s)
|
||||
{
|
||||
float _52 = t.Sample(s, 1.0f.xx).x;
|
||||
return _52;
|
||||
return t.Sample(s, 1.0f.xx).x;
|
||||
}
|
||||
|
||||
float samp(Texture2D<float4> t, SamplerComparisonState s, SamplerState s1)
|
||||
|
@ -1,6 +1,6 @@
|
||||
cbuffer Block : register(b0)
|
||||
{
|
||||
column_major float2x3 _106_var[3][4] : packoffset(c0);
|
||||
column_major float2x3 _104_var[3][4] : packoffset(c0);
|
||||
};
|
||||
|
||||
|
||||
@ -21,8 +21,7 @@ struct SPIRV_Cross_Output
|
||||
|
||||
float compare_float(float a, float b)
|
||||
{
|
||||
float _37 = float(abs(a - b) < 0.0500000007450580596923828125f);
|
||||
return _37;
|
||||
return float(abs(a - b) < 0.0500000007450580596923828125f);
|
||||
}
|
||||
|
||||
float compare_vec3(float3 a, float3 b)
|
||||
@ -49,7 +48,7 @@ void vert_main()
|
||||
{
|
||||
gl_Position = a_position;
|
||||
float result = 1.0f;
|
||||
float2x3 param = _106_var[0][0];
|
||||
float2x3 param = _104_var[0][0];
|
||||
float2x3 param_1 = float2x3(float3(2.0f, 6.0f, -6.0f), float3(0.0f, 5.0f, 5.0f));
|
||||
result *= compare_mat2x3(param, param_1);
|
||||
v_vtxResult = result;
|
||||
|
@ -50,11 +50,11 @@ struct Foobar
|
||||
float b;
|
||||
};
|
||||
|
||||
constant spvUnsafeArray<float4, 3> _40 = spvUnsafeArray<float4, 3>({ float4(1.0), float4(2.0), float4(3.0) });
|
||||
constant spvUnsafeArray<float4, 2> _51 = spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) });
|
||||
constant spvUnsafeArray<float4, 2> _56 = spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) });
|
||||
constant spvUnsafeArray<spvUnsafeArray<float4, 2>, 2> _57 = spvUnsafeArray<spvUnsafeArray<float4, 2>, 2>({ spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) }), spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) }) });
|
||||
constant spvUnsafeArray<Foobar, 2> _77 = spvUnsafeArray<Foobar, 2>({ Foobar{ 10.0, 40.0 }, Foobar{ 90.0, 70.0 } });
|
||||
constant spvUnsafeArray<float4, 3> _37 = spvUnsafeArray<float4, 3>({ float4(1.0), float4(2.0), float4(3.0) });
|
||||
constant spvUnsafeArray<float4, 2> _49 = spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) });
|
||||
constant spvUnsafeArray<float4, 2> _54 = spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) });
|
||||
constant spvUnsafeArray<spvUnsafeArray<float4, 2>, 2> _55 = spvUnsafeArray<spvUnsafeArray<float4, 2>, 2>({ spvUnsafeArray<float4, 2>({ float4(1.0), float4(2.0) }), spvUnsafeArray<float4, 2>({ float4(8.0), float4(10.0) }) });
|
||||
constant spvUnsafeArray<Foobar, 2> _75 = spvUnsafeArray<Foobar, 2>({ Foobar{ 10.0, 40.0 }, Foobar{ 90.0, 70.0 } });
|
||||
|
||||
struct main0_out
|
||||
{
|
||||
@ -69,16 +69,15 @@ struct main0_in
|
||||
static inline __attribute__((always_inline))
|
||||
float4 resolve(thread const Foobar& f)
|
||||
{
|
||||
float4 _25 = float4(f.a + f.b);
|
||||
return _25;
|
||||
return float4(f.a + f.b);
|
||||
}
|
||||
|
||||
fragment main0_out main0(main0_in in [[stage_in]])
|
||||
{
|
||||
main0_out out = {};
|
||||
Foobar param = Foobar{ 10.0, 20.0 };
|
||||
Foobar param_1 = _77[in.index];
|
||||
out.FragColor = ((_40[in.index] + _57[in.index][in.index + 1]) + resolve(param)) + resolve(param_1);
|
||||
Foobar param_1 = _75[in.index];
|
||||
out.FragColor = ((_37[in.index] + _55[in.index][in.index + 1]) + resolve(param)) + resolve(param_1);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
@ -13,8 +13,7 @@ struct main0_out
|
||||
static inline __attribute__((always_inline))
|
||||
float4 samp(thread const texture2d<float> t, thread const sampler s)
|
||||
{
|
||||
float4 _26 = t.sample(s, float2(0.5));
|
||||
return _26;
|
||||
return t.sample(s, float2(0.5));
|
||||
}
|
||||
|
||||
fragment main0_out main0(texture2d<float> uDepth [[texture(0)]], sampler uSampler [[sampler(0)]])
|
||||
|
@ -41,8 +41,7 @@ float2 lod_factor(thread const float2& tess_coord, thread float4& vPatchLods)
|
||||
float level = mix(x.x, x.y, tess_coord.y);
|
||||
float floor_level = floor(level);
|
||||
float fract_level = level - floor_level;
|
||||
float2 _74 = float2(floor_level, fract_level);
|
||||
return _74;
|
||||
return float2(floor_level, fract_level);
|
||||
}
|
||||
|
||||
static inline __attribute__((always_inline))
|
||||
|
@ -24,8 +24,7 @@ struct main0_in
|
||||
static inline __attribute__((always_inline))
|
||||
float compare_float(thread const float& a, thread const float& b)
|
||||
{
|
||||
float _37 = float(abs(a - b) < 0.0500000007450580596923828125);
|
||||
return _37;
|
||||
return float(abs(a - b) < 0.0500000007450580596923828125);
|
||||
}
|
||||
|
||||
static inline __attribute__((always_inline))
|
||||
@ -50,12 +49,12 @@ float compare_mat2x3(thread const float2x3& a, thread const float2x3& b)
|
||||
return compare_vec3(param, param_1) * compare_vec3(param_2, param_3);
|
||||
}
|
||||
|
||||
vertex main0_out main0(main0_in in [[stage_in]], constant Block& _106 [[buffer(0)]])
|
||||
vertex main0_out main0(main0_in in [[stage_in]], constant Block& _104 [[buffer(0)]])
|
||||
{
|
||||
main0_out out = {};
|
||||
out.gl_Position = in.a_position;
|
||||
float result = 1.0;
|
||||
float2x3 param = transpose(float3x2(_106.var[0][0][0].xy, _106.var[0][0][1].xy, _106.var[0][0][2].xy));
|
||||
float2x3 param = transpose(float3x2(_104.var[0][0][0].xy, _104.var[0][0][1].xy, _104.var[0][0][2].xy));
|
||||
float2x3 param_1 = float2x3(float3(2.0, 6.0, -6.0), float3(0.0, 5.0, 5.0));
|
||||
result *= compare_mat2x3(param, param_1);
|
||||
out.v_vtxResult = result;
|
||||
|
@ -6,7 +6,7 @@
|
||||
}
|
||||
],
|
||||
"types" : {
|
||||
"_91" : {
|
||||
"_89" : {
|
||||
"name" : "gl_PerVertex",
|
||||
"members" : [
|
||||
{
|
||||
@ -19,7 +19,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"_104" : {
|
||||
"_102" : {
|
||||
"name" : "Block",
|
||||
"members" : [
|
||||
{
|
||||
@ -57,7 +57,7 @@
|
||||
],
|
||||
"ubos" : [
|
||||
{
|
||||
"type" : "_104",
|
||||
"type" : "_102",
|
||||
"name" : "Block",
|
||||
"block_size" : 576,
|
||||
"set" : 0,
|
||||
|
@ -8,23 +8,22 @@ struct Foobar
|
||||
float b;
|
||||
};
|
||||
|
||||
const vec4 _40[3] = vec4[](vec4(1.0), vec4(2.0), vec4(3.0));
|
||||
const vec4 _57[2][2] = vec4[][](vec4[](vec4(1.0), vec4(2.0)), vec4[](vec4(8.0), vec4(10.0)));
|
||||
const Foobar _77[2] = Foobar[](Foobar(10.0, 40.0), Foobar(90.0, 70.0));
|
||||
const vec4 _37[3] = vec4[](vec4(1.0), vec4(2.0), vec4(3.0));
|
||||
const vec4 _55[2][2] = vec4[][](vec4[](vec4(1.0), vec4(2.0)), vec4[](vec4(8.0), vec4(10.0)));
|
||||
const Foobar _75[2] = Foobar[](Foobar(10.0, 40.0), Foobar(90.0, 70.0));
|
||||
|
||||
layout(location = 0) out vec4 FragColor;
|
||||
layout(location = 0) flat in mediump int index;
|
||||
|
||||
vec4 resolve(Foobar f)
|
||||
{
|
||||
vec4 _25 = vec4(f.a + f.b);
|
||||
return _25;
|
||||
return vec4(f.a + f.b);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
Foobar param = Foobar(10.0, 20.0);
|
||||
Foobar param_1 = _77[index];
|
||||
FragColor = ((_40[index] + _57[index][index + 1]) + resolve(param)) + resolve(param_1);
|
||||
Foobar param_1 = _75[index];
|
||||
FragColor = ((_37[index] + _55[index][index + 1]) + resolve(param)) + resolve(param_1);
|
||||
}
|
||||
|
||||
|
@ -30,8 +30,7 @@ mediump vec2 lod_factor(vec2 tess_coord)
|
||||
mediump float level = mix(x.x, x.y, tess_coord.y);
|
||||
mediump float floor_level = floor(level);
|
||||
mediump float fract_level = level - floor_level;
|
||||
mediump vec2 _74 = vec2(floor_level, fract_level);
|
||||
return _74;
|
||||
return vec2(floor_level, fract_level);
|
||||
}
|
||||
|
||||
mediump vec3 sample_height_displacement(vec2 uv, vec2 off, mediump vec2 lod)
|
||||
|
@ -3,15 +3,14 @@
|
||||
layout(binding = 0, std140) uniform Block
|
||||
{
|
||||
layout(row_major) mat2x3 var[3][4];
|
||||
} _106;
|
||||
} _104;
|
||||
|
||||
layout(location = 0) in vec4 a_position;
|
||||
layout(location = 0) out mediump float v_vtxResult;
|
||||
|
||||
mediump float compare_float(float a, float b)
|
||||
{
|
||||
mediump float _37 = float(abs(a - b) < 0.0500000007450580596923828125);
|
||||
return _37;
|
||||
return float(abs(a - b) < 0.0500000007450580596923828125);
|
||||
}
|
||||
|
||||
mediump float compare_vec3(vec3 a, vec3 b)
|
||||
@ -38,7 +37,7 @@ void main()
|
||||
{
|
||||
gl_Position = a_position;
|
||||
mediump float result = 1.0;
|
||||
mat2x3 param = _106.var[0][0];
|
||||
mat2x3 param = _104.var[0][0];
|
||||
mat2x3 param_1 = mat2x3(vec3(2.0, 6.0, -6.0), vec3(0.0, 5.0, 5.0));
|
||||
result *= compare_mat2x3(param, param_1);
|
||||
v_vtxResult = result;
|
||||
|
@ -9,14 +9,12 @@ layout(location = 0) out float FragColor;
|
||||
|
||||
float samp2(mediump sampler2DShadow SPIRV_Cross_Combinedts)
|
||||
{
|
||||
float _37 = texture(SPIRV_Cross_Combinedts, vec3(vec3(1.0).xy, vec3(1.0).z));
|
||||
return _37;
|
||||
return texture(SPIRV_Cross_Combinedts, vec3(vec3(1.0).xy, vec3(1.0).z));
|
||||
}
|
||||
|
||||
float samp3(mediump sampler2D SPIRV_Cross_Combinedts)
|
||||
{
|
||||
float _52 = texture(SPIRV_Cross_Combinedts, vec2(1.0)).x;
|
||||
return _52;
|
||||
return texture(SPIRV_Cross_Combinedts, vec2(1.0)).x;
|
||||
}
|
||||
|
||||
float samp(mediump sampler2DShadow SPIRV_Cross_Combinedts, mediump sampler2D SPIRV_Cross_Combinedts1)
|
||||
|
@ -10,14 +10,12 @@ layout(location = 0) out float FragColor;
|
||||
|
||||
float samp2(mediump texture2D t, mediump samplerShadow s)
|
||||
{
|
||||
float _37 = texture(sampler2DShadow(t, s), vec3(vec3(1.0).xy, vec3(1.0).z));
|
||||
return _37;
|
||||
return texture(sampler2DShadow(t, s), vec3(vec3(1.0).xy, vec3(1.0).z));
|
||||
}
|
||||
|
||||
float samp3(mediump texture2D t, mediump sampler s)
|
||||
{
|
||||
float _52 = texture(sampler2D(t, s), vec2(1.0)).x;
|
||||
return _52;
|
||||
return texture(sampler2D(t, s), vec2(1.0)).x;
|
||||
}
|
||||
|
||||
float samp(mediump texture2D t, mediump samplerShadow s, mediump sampler s1)
|
||||
|
@ -12,8 +12,7 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
vec4 sample_dual(mediump sampler2D SPIRV_Cross_Combinedtexsamp)
|
||||
{
|
||||
vec4 _38 = texture(SPIRV_Cross_Combinedtexsamp, vTex);
|
||||
return _38;
|
||||
return texture(SPIRV_Cross_Combinedtexsamp, vTex);
|
||||
}
|
||||
|
||||
vec4 sample_duals()
|
||||
|
@ -12,8 +12,7 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
vec4 sample_dual(mediump sampler samp, mediump texture2D tex)
|
||||
{
|
||||
vec4 _38 = texture(sampler2D(tex, samp), vTex);
|
||||
return _38;
|
||||
return texture(sampler2D(tex, samp), vTex);
|
||||
}
|
||||
|
||||
vec4 sample_duals()
|
||||
|
@ -13,20 +13,17 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
vec4 sample_func(vec2 uv, mediump sampler2D SPIRV_Cross_CombineduTexturesamp[4])
|
||||
{
|
||||
vec4 _46 = texture(SPIRV_Cross_CombineduTexturesamp[2], uv);
|
||||
return _46;
|
||||
return texture(SPIRV_Cross_CombineduTexturesamp[2], uv);
|
||||
}
|
||||
|
||||
vec4 sample_func_dual(vec2 uv, mediump sampler2D SPIRV_Cross_Combinedtexsamp)
|
||||
{
|
||||
vec4 _55 = texture(SPIRV_Cross_Combinedtexsamp, uv);
|
||||
return _55;
|
||||
return texture(SPIRV_Cross_Combinedtexsamp, uv);
|
||||
}
|
||||
|
||||
vec4 sample_func_dual_array(vec2 uv, mediump sampler2D SPIRV_Cross_Combinedtexsamp[4])
|
||||
{
|
||||
vec4 _66 = texture(SPIRV_Cross_Combinedtexsamp[1], uv);
|
||||
return _66;
|
||||
return texture(SPIRV_Cross_Combinedtexsamp[1], uv);
|
||||
}
|
||||
|
||||
void main()
|
||||
|
@ -14,20 +14,17 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
vec4 sample_func(mediump sampler samp, vec2 uv)
|
||||
{
|
||||
vec4 _46 = texture(sampler2D(uTexture[2], samp), uv);
|
||||
return _46;
|
||||
return texture(sampler2D(uTexture[2], samp), uv);
|
||||
}
|
||||
|
||||
vec4 sample_func_dual(mediump sampler samp, mediump texture2D tex, vec2 uv)
|
||||
{
|
||||
vec4 _55 = texture(sampler2D(tex, samp), uv);
|
||||
return _55;
|
||||
return texture(sampler2D(tex, samp), uv);
|
||||
}
|
||||
|
||||
vec4 sample_func_dual_array(mediump sampler samp, mediump texture2D tex[4], vec2 uv)
|
||||
{
|
||||
vec4 _66 = texture(sampler2D(tex[1], samp), uv);
|
||||
return _66;
|
||||
return texture(sampler2D(tex[1], samp), uv);
|
||||
}
|
||||
|
||||
void main()
|
||||
|
@ -13,14 +13,12 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
vec4 sample_func(vec2 uv, mediump sampler2D SPIRV_Cross_CombineduTexturesamp)
|
||||
{
|
||||
vec4 _33 = texture(SPIRV_Cross_CombineduTexturesamp, uv);
|
||||
return _33;
|
||||
return texture(SPIRV_Cross_CombineduTexturesamp, uv);
|
||||
}
|
||||
|
||||
vec4 sample_func_dual(vec2 uv, mediump sampler2D SPIRV_Cross_Combinedtexsamp)
|
||||
{
|
||||
vec4 _42 = texture(SPIRV_Cross_Combinedtexsamp, uv);
|
||||
return _42;
|
||||
return texture(SPIRV_Cross_Combinedtexsamp, uv);
|
||||
}
|
||||
|
||||
void main()
|
||||
|
@ -14,14 +14,12 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
vec4 sample_func(mediump sampler samp, vec2 uv)
|
||||
{
|
||||
vec4 _33 = texture(sampler2D(uTexture, samp), uv);
|
||||
return _33;
|
||||
return texture(sampler2D(uTexture, samp), uv);
|
||||
}
|
||||
|
||||
vec4 sample_func_dual(mediump sampler samp, mediump texture2D tex, vec2 uv)
|
||||
{
|
||||
vec4 _42 = texture(sampler2D(tex, samp), uv);
|
||||
return _42;
|
||||
return texture(sampler2D(tex, samp), uv);
|
||||
}
|
||||
|
||||
void main()
|
||||
|
Loading…
Reference in New Issue
Block a user