writer/msl: Rework string printing

Add `out` parameters to expression and type generators.

Use the new helper classes in TextGenerator.
Cleans up bad formatting.

Prepares the writer generating 'pre' statements, required for atomics.

If-else statements are generated slightly differently. This is done so that 'pre' statements for the else conditions are scoped correctly. This is identical to the HLSL writer.

Bug tint:892

Change-Id: I4c6e96c90673ba30898b3682bf3198497d63a2d4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56067
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-06-28 15:30:57 +00:00
committed by Tint LUCI CQ
parent a5715e3320
commit f24b37e122
319 changed files with 1126 additions and 1081 deletions

View File

@@ -39,8 +39,8 @@ vertex tint_symbol_1 vs_main(uint VertexIndex [[vertex_id]], constant Uniforms&
fragment tint_symbol_4 fs_main(texture2d<float, access::sample> tint_symbol_7 [[texture(2)]], sampler tint_symbol_8 [[sampler(1)]], tint_symbol_3 tint_symbol_2 [[stage_in]]) {
float2 const texcoord = tint_symbol_2.texcoord;
float2 clampedTexcoord = clamp(texcoord, float2(0.0f, 0.0f), float2(1.0f, 1.0f));
if (!( all((clampedTexcoord == texcoord)))) {
float2 clampedTexcoord = clamp(texcoord, float2(0.0f, 0.0f), float2(1.0f, 1.0f));
if (!(all((clampedTexcoord == texcoord)))) {
discard_fragment();
}
float4 srcColor = tint_symbol_7.sample(tint_symbol_8, texcoord);

View File

@@ -1451,7 +1451,7 @@ void main_1(constant buf0& x_188, thread QuicksortObject* const tint_symbol_86,
int const x_909 = (*(tint_symbol_86)).numbers.arr[4];
(*(tint_symbol_86)).numbers.arr[4] = 0;
(*(tint_symbol_86)).numbers.arr[4] = x_909;
if (( fabs((x_308 - x_310)) < 0.25f)) {
if ((fabs((x_308 - x_310)) < 0.25f)) {
float const x_910 = uv.x;
uv.x = 0.0f;
uv.x = x_910;
@@ -1505,7 +1505,7 @@ void main_1(constant buf0& x_188, thread QuicksortObject* const tint_symbol_86,
uv[0] = 0.0f;
uv[0] = x_922;
float3 const x_519 = float3(x_447.x, x_446.x, x_446.y);
float3 const x_326 = normalize(x_325);
float3 const x_326 = normalize(x_325);
float const x_923 = uv.x;
uv.x = 0.0f;
uv.x = x_923;

View File

@@ -13,7 +13,7 @@ struct OutputBuf {
};
bool aboutEqual(float value, float expect) {
return ( fabs((value - expect)) < 0.001f);
return (fabs((value - expect)) < 0.001f);
}
kernel void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture(0)]], texture2d<float, access::sample> tint_symbol_3 [[texture(1)]], uint3 GlobalInvocationID [[thread_position_in_grid]], constant Uniforms& uniforms [[buffer(3)]], device OutputBuf& output [[buffer(2)]]) {
@@ -23,7 +23,7 @@ kernel void tint_symbol(texture2d<float, access::sample> tint_symbol_2 [[texture
float4 const nonCoveredColor = float4(0.0f, 1.0f, 0.0f, 1.0f);
bool success = true;
if (((((dstTexCoord.x < uniforms.dstCopyOrigin.x) || (dstTexCoord.y < uniforms.dstCopyOrigin.y)) || (dstTexCoord.x >= (uniforms.dstCopyOrigin.x + uniforms.copySize.x))) || (dstTexCoord.y >= (uniforms.dstCopyOrigin.y + uniforms.copySize.y)))) {
success = (success && all((tint_symbol_3.read(uint2(int2(dstTexCoord)), 0) == nonCoveredColor)));
success = (success && all((tint_symbol_3.read(uint2(int2(dstTexCoord)), 0) == nonCoveredColor)));
} else {
uint2 srcTexCoord = ((dstTexCoord - uniforms.dstCopyOrigin) + uniforms.srcCopyOrigin);
if ((uniforms.dstTextureFlipY == 1u)) {

View File

@@ -59,7 +59,7 @@ kernel void tint_symbol(uint3 local_id [[thread_position_in_threadgroup]], uint3
tint_array_wrapper const tint_symbol_3 = {.arr={}};
tint_symbol_5 = tint_symbol_3;
}
threadgroup_barrier(mem_flags::mem_threadgroup);
threadgroup_barrier(mem_flags::mem_threadgroup);
uint const tileRow = (local_id.y * RowPerThread);
uint const tileCol = (local_id.x * ColPerThread);
uint const globalRow = (global_id.y * RowPerThread);
@@ -140,7 +140,7 @@ kernel void tint_symbol(uint3 local_id [[thread_position_in_threadgroup]], uint3
}
}
}
threadgroup_barrier(mem_flags::mem_threadgroup);
threadgroup_barrier(mem_flags::mem_threadgroup);
{
uint k = 0u;
while (true) {
@@ -189,7 +189,7 @@ kernel void tint_symbol(uint3 local_id [[thread_position_in_threadgroup]], uint3
}
}
}
threadgroup_barrier(mem_flags::mem_threadgroup);
threadgroup_barrier(mem_flags::mem_threadgroup);
{
t = (t + 1u);
}

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_002533() {
float4 res = fabs(float4());
float4 res = fabs(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_005174() {
float3 res = fabs(float3());
float3 res = fabs(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_1ce782() {
uint4 res = abs(uint4());
uint4 res = abs(uint4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_1e9d53() {
float2 res = fabs(float2());
float2 res = fabs(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_467cd1() {
uint res = abs(1u);
uint res = abs(1u);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_4ad288() {
int res = abs(1);
int res = abs(1);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_5ad50a() {
int3 res = abs(int3());
int3 res = abs(int3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_7326de() {
uint3 res = abs(uint3());
uint3 res = abs(uint3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_7f28e6() {
uint2 res = abs(uint2());
uint2 res = abs(uint2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_7faa9e() {
int2 res = abs(int2());
int2 res = abs(int2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_9c80a6() {
int4 res = abs(int4());
int4 res = abs(int4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void abs_b96037() {
float res = fabs(1.0f);
float res = fabs(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void acos_489247() {
float res = acos(1.0f);
float res = acos(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void acos_8e2acf() {
float4 res = acos(float4());
float4 res = acos(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void acos_a610c4() {
float3 res = acos(float3());
float3 res = acos(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void acos_dfc915() {
float2 res = acos(float2());
float2 res = acos(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void all_986c7b() {
bool res = all(bool4());
bool res = all(bool4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void all_bd2dba() {
bool res = all(bool3());
bool res = all(bool3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void all_f46790() {
bool res = all(bool2());
bool res = all(bool2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void any_083428() {
bool res = any(bool4());
bool res = any(bool4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void any_0e3e58() {
bool res = any(bool2());
bool res = any(bool2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void any_e755c1() {
bool res = any(bool3());
bool res = any(bool3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void asin_064953() {
float4 res = asin(float4());
float4 res = asin(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void asin_7b6a44() {
float2 res = asin(float2());
float2 res = asin(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void asin_8cd9c9() {
float3 res = asin(float3());
float3 res = asin(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void asin_c0c272() {
float res = asin(1.0f);
float res = asin(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan_02979a() {
float res = atan(1.0f);
float res = atan(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan_331e6d() {
float3 res = atan(float3());
float3 res = atan(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan_a8b696() {
float4 res = atan(float4());
float4 res = atan(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan_ad96e4() {
float2 res = atan(float2());
float2 res = atan(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan2_57fb13() {
float2 res = atan2(float2(), float2());
float2 res = atan2(float2(), float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan2_96057c() {
float res = atan2(1.0f, 1.0f);
float res = atan2(1.0f, 1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan2_a70d0d() {
float3 res = atan2(float3(), float3());
float3 res = atan2(float3(), float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void atan2_ae713e() {
float4 res = atan2(float4(), float4());
float4 res = atan2(float4(), float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void ceil_34064b() {
float3 res = ceil(float3());
float3 res = ceil(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void ceil_678655() {
float res = ceil(1.0f);
float res = ceil(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void ceil_96f597() {
float2 res = ceil(float2());
float2 res = ceil(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void ceil_b74c16() {
float4 res = ceil(float4());
float4 res = ceil(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_0acf8f() {
float2 res = clamp(float2(), float2(), float2());
float2 res = clamp(float2(), float2(), float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_1a32e3() {
int4 res = clamp(int4(), int4(), int4());
int4 res = clamp(int4(), int4(), int4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_2bd567() {
float res = clamp(1.0f, 1.0f, 1.0f);
float res = clamp(1.0f, 1.0f, 1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_2bde41() {
float4 res = clamp(float4(), float4(), float4());
float4 res = clamp(float4(), float4(), float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_548fc7() {
uint3 res = clamp(uint3(), uint3(), uint3());
uint3 res = clamp(uint3(), uint3(), uint3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_5f0819() {
int3 res = clamp(int3(), int3(), int3());
int3 res = clamp(int3(), int3(), int3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_6c1749() {
int2 res = clamp(int2(), int2(), int2());
int2 res = clamp(int2(), int2(), int2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_7706d7() {
uint2 res = clamp(uint2(), uint2(), uint2());
uint2 res = clamp(uint2(), uint2(), uint2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_867397() {
float3 res = clamp(float3(), float3(), float3());
float3 res = clamp(float3(), float3(), float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_a2de25() {
uint res = clamp(1u, 1u, 1u);
uint res = clamp(1u, 1u, 1u);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_b07c65() {
int res = clamp(1, 1, 1);
int res = clamp(1, 1, 1);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void clamp_bd43ce() {
uint4 res = clamp(uint4(), uint4(), uint4());
uint4 res = clamp(uint4(), uint4(), uint4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cos_16dc15() {
float3 res = cos(float3());
float3 res = cos(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cos_29d66d() {
float4 res = cos(float4());
float4 res = cos(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cos_c3b486() {
float2 res = cos(float2());
float2 res = cos(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cos_c5c28e() {
float res = cos(1.0f);
float res = cos(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cosh_377652() {
float3 res = cosh(float3());
float3 res = cosh(float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cosh_c13756() {
float2 res = cosh(float2());
float2 res = cosh(float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cosh_da92dd() {
float res = cosh(1.0f);
float res = cosh(1.0f);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cosh_e0c1de() {
float4 res = cosh(float4());
float4 res = cosh(float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_0d0e46() {
uint4 res = popcount(uint4());
uint4 res = popcount(uint4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_0f7980() {
int4 res = popcount(int4());
int4 res = popcount(int4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_65d2ae() {
int3 res = popcount(int3());
int3 res = popcount(int3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_690cfc() {
uint3 res = popcount(uint3());
uint3 res = popcount(uint3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_94fd81() {
uint2 res = popcount(uint2());
uint2 res = popcount(uint2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_ae44f9() {
uint res = popcount(1u);
uint res = popcount(1u);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_af90e2() {
int2 res = popcount(int2());
int2 res = popcount(int2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void countOneBits_fd88b2() {
int res = popcount(1);
int res = popcount(1);
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void cross_041cb0() {
float3 res = cross(float3(), float3());
float3 res = cross(float3(), float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void determinant_2b62ba() {
float res = determinant(float3x3());
float res = determinant(float3x3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void determinant_a0a87c() {
float res = determinant(float4x4());
float res = determinant(float4x4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void determinant_e19305() {
float res = determinant(float2x2());
float res = determinant(float2x2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void distance_0657d4() {
float res = distance(float3(), float3());
float res = distance(float3(), float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void distance_9646ea() {
float res = distance(float4(), float4());
float res = distance(float4(), float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void distance_aa4055() {
float res = distance(float2(), float2());
float res = distance(float2(), float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void dot_0c577b() {
float res = dot(float4(), float4());
float res = dot(float4(), float4());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void dot_883f0e() {
float res = dot(float2(), float2());
float res = dot(float2(), float2());
}
vertex tint_symbol vertex_main() {

View File

@@ -6,7 +6,7 @@ struct tint_symbol {
};
void dot_ba4246() {
float res = dot(float3(), float3());
float res = dot(float3(), float3());
}
vertex tint_symbol vertex_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdx_0763f7() {
float3 res = dfdx(float3());
float3 res = dfdx(float3());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdx_99edb1() {
float2 res = dfdx(float2());
float2 res = dfdx(float2());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdx_c487fa() {
float4 res = dfdx(float4());
float4 res = dfdx(float4());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdx_e263de() {
float res = dfdx(1.0f);
float res = dfdx(1.0f);
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxCoarse_029152() {
float res = dfdx(1.0f);
float res = dfdx(1.0f);
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxCoarse_9581cf() {
float2 res = dfdx(float2());
float2 res = dfdx(float2());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxCoarse_c28641() {
float4 res = dfdx(float4());
float4 res = dfdx(float4());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxCoarse_f64d7b() {
float3 res = dfdx(float3());
float3 res = dfdx(float3());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxFine_8c5069() {
float4 res = dfdx(float4());
float4 res = dfdx(float4());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxFine_9631de() {
float2 res = dfdx(float2());
float2 res = dfdx(float2());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxFine_f401a2() {
float res = dfdx(1.0f);
float res = dfdx(1.0f);
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdxFine_f92fb6() {
float3 res = dfdx(float3());
float3 res = dfdx(float3());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdy_699a05() {
float4 res = dfdy(float4());
float4 res = dfdy(float4());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdy_7f8d84() {
float res = dfdy(1.0f);
float res = dfdy(1.0f);
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdy_a8b56e() {
float2 res = dfdy(float2());
float2 res = dfdy(float2());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdy_feb40f() {
float3 res = dfdy(float3());
float3 res = dfdy(float3());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdyCoarse_3e1ab4() {
float2 res = dfdy(float2());
float2 res = dfdy(float2());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdyCoarse_445d24() {
float4 res = dfdy(float4());
float4 res = dfdy(float4());
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdyCoarse_870a7e() {
float res = dfdy(1.0f);
float res = dfdy(1.0f);
}
fragment void fragment_main() {

View File

@@ -2,7 +2,7 @@
using namespace metal;
void dpdyCoarse_ae1873() {
float3 res = dfdy(float3());
float3 res = dfdy(float3());
}
fragment void fragment_main() {

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