writer/hlsl: Simplify emission logic, clean up output

And fix issues where global variables would not be emitted unless they were transitively referenced by an entry point.

This change requires crbug.com/tint/697 to be fixed before landing.

Change-Id: I712bd9d369e08c9a3cdfb0f114c3609584f91f28
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54241
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
Ben Clayton
2021-06-16 09:19:36 +00:00
committed by Ben Clayton
parent 944c5617ca
commit 5d2f34ecf2
935 changed files with 3850 additions and 6868 deletions

View File

@@ -532,7 +532,6 @@ tint_unittests_source_set("tint_unittests_msl_writer_src") {
"../src/writer/msl/generator_impl_constructor_test.cc",
"../src/writer/msl/generator_impl_continue_test.cc",
"../src/writer/msl/generator_impl_discard_test.cc",
"../src/writer/msl/generator_impl_function_entry_point_data_test.cc",
"../src/writer/msl/generator_impl_function_test.cc",
"../src/writer/msl/generator_impl_identifier_test.cc",
"../src/writer/msl/generator_impl_if_test.cc",
@@ -572,7 +571,6 @@ tint_unittests_source_set("tint_unittests_hlsl_writer_src") {
"../src/writer/hlsl/generator_impl_constructor_test.cc",
"../src/writer/hlsl/generator_impl_continue_test.cc",
"../src/writer/hlsl/generator_impl_discard_test.cc",
"../src/writer/hlsl/generator_impl_function_entry_point_data_test.cc",
"../src/writer/hlsl/generator_impl_function_test.cc",
"../src/writer/hlsl/generator_impl_identifier_test.cc",
"../src/writer/hlsl/generator_impl_if_test.cc",

View File

@@ -3,4 +3,3 @@ void main() {
const float x_24 = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[1u].y;
return;
}

View File

@@ -5,4 +5,3 @@ void main() {
const float f = v[1];
return;
}

View File

@@ -5,4 +5,3 @@ void main() {
const float3 x_14 = float3(float3(1.0f, 2.0f, 3.0f).x, float3(1.0f, 2.0f, 3.0f).z, float3(1.0f, 2.0f, 3.0f).y);
return;
}

View File

@@ -6,4 +6,3 @@ void main() {
const float3 swizzle3 = v.xzy;
return;
}

View File

@@ -5,4 +5,3 @@ void main() {
const float x_16 = x_15.y;
return;
}

View File

@@ -5,4 +5,3 @@ void main() {
const float f = v[1];
return;
}

View File

@@ -8,4 +8,3 @@ void main() {
const float3 x_19 = float3(x_18.x, x_18.z, x_18.y);
return;
}

View File

@@ -6,4 +6,3 @@ void main() {
const float3 swizzle3 = v.xzy;
return;
}

View File

@@ -1 +1,61 @@
SKIP: crbug.com/tint/845
SKIP: FAILED
Validation Failure:
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int arr[4];
};
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
const int tint_symbol_3[4] = {asint(buffer.Load((offset + 0u))), asint(buffer.Load((offset + 16u))), asint(buffer.Load((offset + 32u))), asint(buffer.Load((offset + 48u)))};
return tint_symbol_3;
}
static int src_private[4];
groupshared int src_workgroup[4];
ConstantBuffer<S> src_uniform : register(b0, space0);
RWByteAddressBuffer src_storage : register(u1, space0);
int[4] ret_arr() {
const int tint_symbol_4[4] = {0, 0, 0, 0};
return tint_symbol_4;
}
S ret_struct_arr() {
const S tint_symbol_5 = {{0, 0, 0, 0}};
return tint_symbol_5;
}
void foo(int src_param[4]) {
int src_function[4] = {0, 0, 0, 0};
int tint_symbol[4] = {0, 0, 0, 0};
const int tint_symbol_6[4] = {1, 2, 3, 3};
tint_symbol = tint_symbol_6;
tint_symbol = src_param;
tint_symbol = ret_arr();
const int src_let[4] = {0, 0, 0, 0};
tint_symbol = src_let;
tint_symbol = src_function;
tint_symbol = src_private;
tint_symbol = src_workgroup;
tint_symbol = ret_struct_arr().arr;
tint_symbol = src_uniform.arr;
tint_symbol = tint_symbol_2(src_storage, 0u);
int dst_nested[4][3][2] = {{{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}};
int src_nested[4][3][2] = {{{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}};
dst_nested = src_nested;
}
tint_bTL3Zd:10:62: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
~~~ ^
[4]
tint_bTL3Zd:20:17: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] ret_arr() {
~~~ ^
[4]

View File

@@ -1 +1,61 @@
SKIP: crbug.com/tint/845
SKIP: FAILED
Validation Failure:
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int arr[4];
};
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
const int tint_symbol_3[4] = {asint(buffer.Load((offset + 0u))), asint(buffer.Load((offset + 16u))), asint(buffer.Load((offset + 32u))), asint(buffer.Load((offset + 48u)))};
return tint_symbol_3;
}
static int src_private[4];
groupshared int src_workgroup[4];
ConstantBuffer<S> src_uniform : register(b0, space0);
RWByteAddressBuffer src_storage : register(u1, space0);
static int tint_symbol[4];
static int dst_nested[4][3][2];
int[4] ret_arr() {
const int tint_symbol_4[4] = {0, 0, 0, 0};
return tint_symbol_4;
}
S ret_struct_arr() {
const S tint_symbol_5 = {{0, 0, 0, 0}};
return tint_symbol_5;
}
void foo(int src_param[4]) {
int src_function[4] = {0, 0, 0, 0};
const int tint_symbol_6[4] = {1, 2, 3, 3};
tint_symbol = tint_symbol_6;
tint_symbol = src_param;
tint_symbol = ret_arr();
const int src_let[4] = {0, 0, 0, 0};
tint_symbol = src_let;
tint_symbol = src_function;
tint_symbol = src_private;
tint_symbol = src_workgroup;
tint_symbol = ret_struct_arr().arr;
tint_symbol = src_uniform.arr;
tint_symbol = tint_symbol_2(src_storage, 0u);
int src_nested[4][3][2] = {{{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}};
dst_nested = src_nested;
}
tint_Sca05u:10:62: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
~~~ ^
[4]
tint_Sca05u:22:17: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] ret_arr() {
~~~ ^
[4]

View File

@@ -1 +1,83 @@
SKIP: crbug.com/tint/845
SKIP: FAILED
Validation Failure:
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int arr[4];
};
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
const int tint_symbol_9[4] = {asint(buffer.Load((offset + 0u))), asint(buffer.Load((offset + 16u))), asint(buffer.Load((offset + 32u))), asint(buffer.Load((offset + 48u)))};
return tint_symbol_9;
}
void tint_symbol_4(RWByteAddressBuffer buffer, uint offset, int value[4]) {
buffer.Store((offset + 0u), asuint(value[0u]));
buffer.Store((offset + 16u), asuint(value[1u]));
buffer.Store((offset + 32u), asuint(value[2u]));
buffer.Store((offset + 48u), asuint(value[3u]));
}
void tint_symbol_6(RWByteAddressBuffer buffer, uint offset, int value[2]) {
buffer.Store((offset + 0u), asuint(value[0u]));
buffer.Store((offset + 4u), asuint(value[1u]));
}
void tint_symbol_7(RWByteAddressBuffer buffer, uint offset, int value[3][2]) {
tint_symbol_6(buffer, (offset + 0u), value[0u]);
tint_symbol_6(buffer, (offset + 8u), value[1u]);
tint_symbol_6(buffer, (offset + 16u), value[2u]);
}
void tint_symbol_8(RWByteAddressBuffer buffer, uint offset, int value[4][3][2]) {
tint_symbol_7(buffer, (offset + 0u), value[0u]);
tint_symbol_7(buffer, (offset + 24u), value[1u]);
tint_symbol_7(buffer, (offset + 48u), value[2u]);
tint_symbol_7(buffer, (offset + 72u), value[3u]);
}
static int src_private[4];
groupshared int src_workgroup[4];
ConstantBuffer<S> src_uniform : register(b0, space0);
RWByteAddressBuffer src_storage : register(u1, space0);
RWByteAddressBuffer tint_symbol : register(u2, space0);
RWByteAddressBuffer dst_nested : register(u3, space0);
int[4] ret_arr() {
const int tint_symbol_10[4] = {0, 0, 0, 0};
return tint_symbol_10;
}
S ret_struct_arr() {
const S tint_symbol_11 = {{0, 0, 0, 0}};
return tint_symbol_11;
}
void foo(int src_param[4]) {
int src_function[4] = {0, 0, 0, 0};
const int tint_symbol_12[4] = {1, 2, 3, 3};
tint_symbol_4(tint_symbol, 0u, tint_symbol_12);
tint_symbol_4(tint_symbol, 0u, src_param);
tint_symbol_4(tint_symbol, 0u, ret_arr());
const int src_let[4] = {0, 0, 0, 0};
tint_symbol_4(tint_symbol, 0u, src_let);
tint_symbol_4(tint_symbol, 0u, src_function);
tint_symbol_4(tint_symbol, 0u, src_private);
tint_symbol_4(tint_symbol, 0u, src_workgroup);
tint_symbol_4(tint_symbol, 0u, ret_struct_arr().arr);
tint_symbol_4(tint_symbol, 0u, src_uniform.arr);
tint_symbol_4(tint_symbol, 0u, tint_symbol_2(src_storage, 0u));
int src_nested[4][3][2] = {{{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}};
tint_symbol_8(dst_nested, 0u, src_nested);
}
tint_4gsbi1:10:62: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
~~~ ^
[4]
tint_4gsbi1:44:17: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] ret_arr() {
~~~ ^
[4]

View File

@@ -1,3 +1,8 @@
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int arr[4];
};
@@ -13,9 +18,3 @@ void foo() {
dst_struct.arr = src;
dst_array[0] = src;
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}

View File

@@ -1 +1,61 @@
SKIP: crbug.com/tint/845
SKIP: FAILED
Validation Failure:
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int arr[4];
};
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
const int tint_symbol_3[4] = {asint(buffer.Load((offset + 0u))), asint(buffer.Load((offset + 16u))), asint(buffer.Load((offset + 32u))), asint(buffer.Load((offset + 48u)))};
return tint_symbol_3;
}
static int src_private[4];
groupshared int src_workgroup[4];
ConstantBuffer<S> src_uniform : register(b0, space0);
RWByteAddressBuffer src_storage : register(u1, space0);
groupshared int tint_symbol[4];
groupshared int dst_nested[4][3][2];
int[4] ret_arr() {
const int tint_symbol_4[4] = {0, 0, 0, 0};
return tint_symbol_4;
}
S ret_struct_arr() {
const S tint_symbol_5 = {{0, 0, 0, 0}};
return tint_symbol_5;
}
void foo(int src_param[4]) {
int src_function[4] = {0, 0, 0, 0};
const int tint_symbol_6[4] = {1, 2, 3, 3};
tint_symbol = tint_symbol_6;
tint_symbol = src_param;
tint_symbol = ret_arr();
const int src_let[4] = {0, 0, 0, 0};
tint_symbol = src_let;
tint_symbol = src_function;
tint_symbol = src_private;
tint_symbol = src_workgroup;
tint_symbol = ret_struct_arr().arr;
tint_symbol = src_uniform.arr;
tint_symbol = tint_symbol_2(src_storage, 0u);
int src_nested[4][3][2] = {{{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}, {{0, 0}, {0, 0}, {0, 0}}};
dst_nested = src_nested;
}
tint_atjMoG:10:62: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] tint_symbol_2(RWByteAddressBuffer buffer, uint offset) {
~~~ ^
[4]
tint_atjMoG:22:17: error: brackets are not allowed here; to declare an array, place the brackets after the name
int[4] ret_arr() {
~~~ ^
[4]

View File

@@ -20,4 +20,3 @@ void main() {
const float v3 = f3(a3);
return;
}

View File

@@ -1 +1,38 @@
SKIP: crbug.com/tint/845
SKIP: FAILED
Validation Failure:
float[4] f1() {
const float tint_symbol[4] = {0.0f, 0.0f, 0.0f, 0.0f};
return tint_symbol;
}
float[3][4] f2() {
const float tint_symbol_1[3][4] = {f1(), f1(), f1()};
return tint_symbol_1;
}
float[2][3][4] f3() {
const float tint_symbol_2[2][3][4] = {f2(), f2()};
return tint_symbol_2;
}
[numthreads(1, 1, 1)]
void main() {
const float a1[4] = f1();
const float a2[3][4] = f2();
const float a3[2][3][4] = f3();
return;
}
tint_gQgfKR:1:14: error: brackets are not allowed here; to declare an array, place the brackets after the name
float[4] f1() {
~~~ ^
[4]
tint_gQgfKR:5:17: error: brackets are not allowed here; to declare an array, place the brackets after the name
float[3][4] f2() {
~~~~~~ ^
[3][4]
tint_gQgfKR:9:20: error: brackets are not allowed here; to declare an array, place the brackets after the name
float[2][3][4] f3() {
~~~~~~~~~ ^
[2][3][4]

View File

@@ -35,4 +35,3 @@ void main() {
const int subexpr_nested_nonempty_with_expr[4] = tint_symbol_19[1];
return;
}

View File

@@ -1,4 +1,3 @@
RWByteAddressBuffer b : register(u0, space0);
[numthreads(1, 1, 1)]
@@ -24,4 +23,3 @@ void main() {
}
return;
}

View File

@@ -3,4 +3,3 @@ void main() {
float3 negative_light = -(light);
return;
}

View File

@@ -2,9 +2,9 @@ bug/tint/294.wgsl:8:24 warning: use of deprecated language feature: declare acce
[[set(0), binding(1)]] var<storage> lights : [[access(read)]] Lights;
^^^
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
ByteAddressBuffer lights : register(t1, space0);

View File

@@ -9,6 +9,10 @@ struct vertexUniformBuffer1 {
struct vertexUniformBuffer2 {
float2x2 transform2;
};
ConstantBuffer<vertexUniformBuffer1> x_20 : register(b0, space0);
ConstantBuffer<vertexUniformBuffer2> x_26 : register(b0, space1);
struct tint_symbol_1 {
int gl_VertexIndex : SV_VertexID;
};
@@ -16,9 +20,6 @@ struct tint_symbol_2 {
float4 value : SV_Position;
};
ConstantBuffer<vertexUniformBuffer1> x_20 : register(b0, space0);
ConstantBuffer<vertexUniformBuffer2> x_26 : register(b0, space1);
tint_symbol_2 main(tint_symbol_1 tint_symbol) {
const int gl_VertexIndex = tint_symbol.gl_VertexIndex;
float2 indexable[3] = {float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)};
@@ -33,7 +34,6 @@ tint_symbol_2 main(tint_symbol_1 tint_symbol) {
return tint_symbol_4;
}
warning: DXIL.dll not found. Resulting DXIL will not be signed for use in release environments.
error: validation errors

View File

@@ -12,4 +12,3 @@ void main() {
Dst[int2(0, 0)] = x_27;
return;
}

View File

@@ -1,5 +1,3 @@
SKIP: FAILED
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0

View File

@@ -20,4 +20,3 @@ void main() {
Dst[int2(0, 0)] = x_27.xxxx;
return;
}

View File

@@ -1,5 +1,3 @@
SKIP: FAILED
bug/tint/453.wgsl:1:79 warning: use of deprecated language feature: access control is expected as last parameter of storage textures
[[group(0), binding(0)]] var Src : [[access(read)]] texture_storage_2d<r32uint>;
^

View File

@@ -1,4 +1,3 @@
RWByteAddressBuffer buf : register(u0, space0);
[numthreads(1, 1, 1)]
@@ -6,4 +5,3 @@ void main() {
buf.Store(0u, asuint(12));
return;
}

View File

@@ -3,15 +3,15 @@ struct Uniforms {
uint2 bShape;
uint2 outShape;
};
struct tint_symbol_1 {
uint3 global_id : SV_DispatchThreadID;
};
ConstantBuffer<Uniforms> uniforms : register(b3, space0);
ByteAddressBuffer firstMatrix : register(t0, space0);
ByteAddressBuffer secondMatrix : register(t1, space0);
RWByteAddressBuffer resultMatrix : register(u2, space0);
ConstantBuffer<Uniforms> uniforms : register(b3, space0);
struct tint_symbol_1 {
uint3 global_id : SV_DispatchThreadID;
};
[numthreads(2, 2, 1)]
void main(tint_symbol_1 tint_symbol) {
@@ -38,4 +38,3 @@ void main(tint_symbol_1 tint_symbol) {
resultMatrix.Store((4u * index), asuint(result));
return;
}

File diff suppressed because it is too large Load Diff

View File

@@ -9,13 +9,15 @@ bug/tint/757.wgsl:10:5 warning: use of deprecated language feature: [[offset]] h
struct Constants {
int level;
};
struct tint_symbol_1 {
uint3 GlobalInvocationID : SV_DispatchThreadID;
};
ConstantBuffer<Constants> constants : register(b0, space0);
Texture2DArray<float4> myTexture : register(t1, space0);
RWByteAddressBuffer result : register(u3, space0);
Texture2DArray<float4> myTexture : register(t1, space0);
struct tint_symbol_1 {
uint3 GlobalInvocationID : SV_DispatchThreadID;
};
[numthreads(1, 1, 1)]
void main(tint_symbol_1 tint_symbol) {
@@ -37,4 +39,3 @@ void main(tint_symbol_1 tint_symbol) {
}
return;
}

View File

@@ -1,11 +1,10 @@
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 float a = v1[0];
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
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 float a = v1[0];
}

View File

@@ -1,12 +1,10 @@
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
void foo() {
int tint_symbol[2] = {0, 0};
int implict[2] = {0, 0};
implict = tint_symbol;
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}

View File

@@ -23,4 +23,3 @@ tint_symbol_2 main(tint_symbol_1 tint_symbol) {
const tint_symbol_2 tint_symbol_3 = {output.color, output.Position};
return tint_symbol_3;
}

View File

@@ -1,12 +1,11 @@
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
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 = m[i][j];
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}

View File

@@ -2,19 +2,17 @@ bug/tint/827.wgsl:8:26 warning: use of deprecated language feature: declare acce
[[group(0), binding(1)]] var<storage> result : [[access(read_write)]] Result;
^^^
static const uint width = 128u;
Texture2D tex : register(t0, space0);
RWByteAddressBuffer result : register(u1, space0);
struct tint_symbol_1 {
uint3 GlobalInvocationId : SV_DispatchThreadID;
};
static const uint width = 128u;
RWByteAddressBuffer result : register(u1, space0);
Texture2D tex : register(t0, space0);
[numthreads(1, 1, 1)]
void main(tint_symbol_1 tint_symbol) {
const uint3 GlobalInvocationId = tint_symbol.GlobalInvocationId;
result.Store((4u * ((GlobalInvocationId.y * width) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0), 0)));
return;
}

View File

@@ -2,7 +2,6 @@ deprecated/access_deco/storage_buffer.wgsl:7:26 warning: use of deprecated langu
[[group(0), binding(0)]] var<storage> sb : [[access(read_write)]] SB;
^^^
RWByteAddressBuffer sb : register(u0, space0);
[numthreads(1, 1, 1)]
@@ -10,4 +9,3 @@ void main() {
float x = asfloat(sb.Load(0u));
return;
}

View File

@@ -11,4 +11,3 @@ void main() {
int2 x = tint_tmp;
return;
}

View File

@@ -1,7 +1,3 @@
struct tint_symbol {
float4 value : SV_Target0;
};
void bitwise_i32() {
int s1 = 0;
int s2 = 0;
@@ -103,8 +99,11 @@ void matrix_matrix_f32() {
m44 = mul(m43, m34);
}
struct tint_symbol {
float4 value : SV_Target0;
};
tint_symbol main() {
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}

View File

@@ -1,4 +1,3 @@
ByteAddressBuffer G : register(t0, space0);
[numthreads(1, 1, 1)]
@@ -9,4 +8,3 @@ void main() {
const uint l1 = tint_symbol_2;
return;
}

View File

@@ -1,4 +1,3 @@
ByteAddressBuffer G : register(t0, space0);
[numthreads(1, 1, 1)]
@@ -10,4 +9,3 @@ void main() {
const uint l2 = tint_symbol_2;
return;
}

View File

@@ -1,4 +1,3 @@
ByteAddressBuffer G : register(t0, space0);
[numthreads(1, 1, 1)]
@@ -9,4 +8,3 @@ void main() {
const uint l1 = tint_symbol_2;
return;
}

View File

@@ -1,4 +1,3 @@
ByteAddressBuffer G : register(t0, space0);
[numthreads(1, 1, 1)]
@@ -9,4 +8,3 @@ void main() {
const uint l1 = tint_symbol_2;
return;
}

View File

@@ -1,4 +1,3 @@
ByteAddressBuffer G : register(t0, space0);
[numthreads(1, 1, 1)]
@@ -9,4 +8,3 @@ void main() {
const uint l1 = tint_symbol_2;
return;
}

View File

@@ -7,4 +7,3 @@ void main() {
const float significand = tint_tmp_1;
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_002533() {
float4 res = abs(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_002533();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_002533();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_005174() {
float3 res = abs(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_005174();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_005174();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_1ce782() {
uint4 res = abs(uint4(0u, 0u, 0u, 0u));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_1ce782();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_1ce782();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_1e9d53() {
float2 res = abs(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_1e9d53();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_1e9d53();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_467cd1() {
uint res = abs(1u);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_467cd1();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_467cd1();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_4ad288() {
int res = abs(1);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_4ad288();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_4ad288();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_5ad50a() {
int3 res = abs(int3(0, 0, 0));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_5ad50a();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_5ad50a();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_7326de() {
uint3 res = abs(uint3(0u, 0u, 0u));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_7326de();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_7326de();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_7f28e6() {
uint2 res = abs(uint2(0u, 0u));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_7f28e6();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_7f28e6();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_7faa9e() {
int2 res = abs(int2(0, 0));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_7faa9e();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_7faa9e();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_9c80a6() {
int4 res = abs(int4(0, 0, 0, 0));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_9c80a6();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_9c80a6();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void abs_b96037() {
float res = abs(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
abs_b96037();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
abs_b96037();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void acos_489247() {
float res = acos(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
acos_489247();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
acos_489247();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void acos_8e2acf() {
float4 res = acos(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
acos_8e2acf();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
acos_8e2acf();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void acos_a610c4() {
float3 res = acos(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
acos_a610c4();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
acos_a610c4();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void acos_dfc915() {
float2 res = acos(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
acos_dfc915();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
acos_dfc915();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void all_986c7b() {
bool res = all(bool4(false, false, false, false));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
all_986c7b();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
all_986c7b();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void all_bd2dba() {
bool res = all(bool3(false, false, false));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
all_bd2dba();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
all_bd2dba();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void all_f46790() {
bool res = all(bool2(false, false));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
all_f46790();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
all_f46790();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void any_083428() {
bool res = any(bool4(false, false, false, false));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
any_083428();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
any_083428();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void any_0e3e58() {
bool res = any(bool2(false, false));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
any_0e3e58();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
any_0e3e58();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void any_e755c1() {
bool res = any(bool3(false, false, false));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
any_e755c1();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
any_e755c1();
return;
}

View File

@@ -2,10 +2,6 @@ intrinsics/gen/arrayLength/647a40.wgsl:31:18 warning: use of deprecated intrinsi
var res: u32 = arrayLength(sb.arg_0);
^^^^^^^^^^^
struct tint_symbol {
float4 value : SV_Position;
};
ByteAddressBuffer sb : register(t0, space0);
void arrayLength_647a40() {
@@ -15,6 +11,10 @@ void arrayLength_647a40() {
uint res = tint_symbol_3;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
arrayLength_647a40();
const tint_symbol tint_symbol_4 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -31,4 +31,3 @@ void compute_main() {
arrayLength_647a40();
return;
}

View File

@@ -2,10 +2,6 @@ intrinsics/gen/arrayLength/721c9d.wgsl:31:18 warning: use of deprecated intrinsi
var res: u32 = arrayLength(sb.arg_0);
^^^^^^^^^^^
struct tint_symbol {
float4 value : SV_Position;
};
ByteAddressBuffer sb : register(t0, space0);
void arrayLength_721c9d() {
@@ -15,6 +11,10 @@ void arrayLength_721c9d() {
uint res = tint_symbol_3;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
arrayLength_721c9d();
const tint_symbol tint_symbol_4 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -31,4 +31,3 @@ void compute_main() {
arrayLength_721c9d();
return;
}

View File

@@ -2,10 +2,6 @@ intrinsics/gen/arrayLength/b083be.wgsl:31:18 warning: use of deprecated intrinsi
var res: u32 = arrayLength(sb.arg_0);
^^^^^^^^^^^
struct tint_symbol {
float4 value : SV_Position;
};
ByteAddressBuffer sb : register(t0, space0);
void arrayLength_b083be() {
@@ -15,6 +11,10 @@ void arrayLength_b083be() {
uint res = tint_symbol_3;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
arrayLength_b083be();
const tint_symbol tint_symbol_4 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -31,4 +31,3 @@ void compute_main() {
arrayLength_b083be();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void asin_064953() {
float4 res = asin(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
asin_064953();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
asin_064953();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void asin_7b6a44() {
float2 res = asin(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
asin_7b6a44();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
asin_7b6a44();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void asin_8cd9c9() {
float3 res = asin(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
asin_8cd9c9();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
asin_8cd9c9();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void asin_c0c272() {
float res = asin(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
asin_c0c272();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
asin_c0c272();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void atan_02979a() {
float res = atan(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan_02979a();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
atan_02979a();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void atan_331e6d() {
float3 res = atan(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan_331e6d();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
atan_331e6d();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void atan_a8b696() {
float4 res = atan(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan_a8b696();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
atan_a8b696();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void atan_ad96e4() {
float2 res = atan(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan_ad96e4();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
atan_ad96e4();
return;
}

View File

@@ -7,25 +7,30 @@ void atan2_57fb13() {
float2 res = atan2(float2(0.0f, 0.0f), float2(0.0f, 0.0f));
}
void vertex_main() {
atan2_57fb13();
return;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan2_57fb13();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
atan2_57fb13();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
atan2_57fb13();
return;
}
Internal Compiler error: cast<X>() argument of incompatible type!
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Internal Compiler error: cast<X>() argument of incompatible type!
Internal Compiler error: cast<X>() argument of incompatible type!
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void atan2_96057c() {
float res = atan2(1.0f, 1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan2_96057c();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
atan2_96057c();
return;
}

View File

@@ -7,25 +7,30 @@ void atan2_a70d0d() {
float3 res = atan2(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f));
}
void vertex_main() {
atan2_a70d0d();
return;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan2_a70d0d();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
atan2_a70d0d();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
atan2_a70d0d();
return;
}
Internal Compiler error: cast<X>() argument of incompatible type!
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Internal Compiler error: cast<X>() argument of incompatible type!
Internal Compiler error: cast<X>() argument of incompatible type!
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

View File

@@ -7,25 +7,30 @@ void atan2_ae713e() {
float4 res = atan2(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f));
}
void vertex_main() {
atan2_ae713e();
return;
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
atan2_ae713e();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
atan2_ae713e();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
atan2_ae713e();
return;
}
Internal Compiler error: cast<X>() argument of incompatible type!
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Internal Compiler error: cast<X>() argument of incompatible type!
Internal Compiler error: cast<X>() argument of incompatible type!
dxc: /build/directxshadercompiler-1.4.0.2274-413-1lunarg18.04/include/llvm/Support/Casting.h:238: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::ConstantFP; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::ConstantFP*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void ceil_34064b() {
float3 res = ceil(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
ceil_34064b();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
ceil_34064b();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void ceil_678655() {
float res = ceil(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
ceil_678655();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
ceil_678655();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void ceil_96f597() {
float2 res = ceil(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
ceil_96f597();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
ceil_96f597();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void ceil_b74c16() {
float4 res = ceil(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
ceil_b74c16();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
ceil_b74c16();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_0acf8f() {
float2 res = clamp(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_0acf8f();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_0acf8f();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_1a32e3() {
int4 res = clamp(int4(0, 0, 0, 0), int4(0, 0, 0, 0), int4(0, 0, 0, 0));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_1a32e3();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_1a32e3();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_2bd567() {
float res = clamp(1.0f, 1.0f, 1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_2bd567();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_2bd567();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_2bde41() {
float4 res = clamp(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_2bde41();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_2bde41();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_548fc7() {
uint3 res = clamp(uint3(0u, 0u, 0u), uint3(0u, 0u, 0u), uint3(0u, 0u, 0u));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_548fc7();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_548fc7();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_5f0819() {
int3 res = clamp(int3(0, 0, 0), int3(0, 0, 0), int3(0, 0, 0));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_5f0819();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_5f0819();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_6c1749() {
int2 res = clamp(int2(0, 0), int2(0, 0), int2(0, 0));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_6c1749();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_6c1749();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_7706d7() {
uint2 res = clamp(uint2(0u, 0u), uint2(0u, 0u), uint2(0u, 0u));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_7706d7();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_7706d7();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_867397() {
float3 res = clamp(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_867397();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_867397();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_a2de25() {
uint res = clamp(1u, 1u, 1u);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_a2de25();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_a2de25();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_b07c65() {
int res = clamp(1, 1, 1);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_b07c65();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_b07c65();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void clamp_bd43ce() {
uint4 res = clamp(uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
clamp_bd43ce();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
clamp_bd43ce();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void cos_16dc15() {
float3 res = cos(float3(0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
cos_16dc15();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
cos_16dc15();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void cos_29d66d() {
float4 res = cos(float4(0.0f, 0.0f, 0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
cos_29d66d();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
cos_29d66d();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void cos_c3b486() {
float2 res = cos(float2(0.0f, 0.0f));
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
cos_c3b486();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
cos_c3b486();
return;
}

View File

@@ -1,11 +1,11 @@
struct tint_symbol {
float4 value : SV_Position;
};
void cos_c5c28e() {
float res = cos(1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
cos_c5c28e();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
@@ -22,4 +22,3 @@ void compute_main() {
cos_c5c28e();
return;
}

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