test/tint: Fix e2e test generation for abstract

Abstract int and abstract float were around the wrong way.

Credit goes to amaiorano@ for finding this!

Change-Id: Ifaeeca86b0d15ead295b714e0c178fa6d0bfb68b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108641
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton 2022-11-04 16:54:02 +00:00 committed by Dawn LUCI CQ
parent dc819c939b
commit be35dec1c6
517 changed files with 1798 additions and 1798 deletions

View File

@ -273,8 +273,8 @@ enable f16;
{{- if eq $ty.Target.Name "i32" -}}{{$value}}i
{{- else if eq $ty.Target.Name "u32" -}}{{$value}}u
{{- else if eq $ty.Target.Name "f32" -}}{{$float_value}}f
{{- else if eq $ty.Target.Name "fa" -}}{{$value}}
{{- else if eq $ty.Target.Name "ia" -}}{{$float_value}}0
{{- else if eq $ty.Target.Name "fa" -}}{{$float_value}}
{{- else if eq $ty.Target.Name "ia" -}}{{$value}}
{{- else if eq $ty.Target.Name "bool" -}}true
{{- else if eq $ty.Target.Name "vec" -}}
{{- $el := Eval "ArgumentValue" "Type" (ElementType .Type) "Name" "" "TestValue" .TestValue }}

View File

@ -23,7 +23,7 @@
// fn abs(vec<3, fa>) -> vec<3, fa>
fn abs_2f861b() {
var res = abs(vec3(1));
var res = abs(vec3(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_2f861b() {
int3 res = (1).xxx;
float3 res = (1.0f).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_2f861b() {
int3 res = (1).xxx;
float3 res = (1.0f).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_2f861b() {
ivec3 res = ivec3(1);
vec3 res = vec3(1.0f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_2f861b() {
ivec3 res = ivec3(1);
vec3 res = vec3(1.0f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_2f861b() {
ivec3 res = ivec3(1);
vec3 res = vec3(1.0f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_2f861b() {
int3 res = int3(1);
float3 res = float3(1.0f);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,39 +30,37 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v3int %int_1 %int_1 %int_1
%_ptr_Function_v3int = OpTypePointer Function %v3int
%19 = OpConstantNull %v3int
%20 = OpTypeFunction %v4float
%v3float = OpTypeVector %float 3
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float
%abs_2f861b = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3int Function %19
OpStore %res %16
%res = OpVariable %_ptr_Function_v3float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %abs_2f861b
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %abs_2f861b
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %abs_2f861b
%27 = OpLabel
%28 = OpFunctionCall %void %abs_2f861b
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %abs_2f861b
%30 = OpLabel
%31 = OpFunctionCall %void %abs_2f861b
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_2f861b() {
var res = abs(vec3(1));
var res = abs(vec3(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(vec<2, ia>) -> vec<2, ia>
fn abs_577d6e() {
var res = abs(vec2(1.0));
var res = abs(vec2(1));
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_577d6e() {
float2 res = (1.0f).xx;
int2 res = (1).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_577d6e() {
float2 res = (1.0f).xx;
int2 res = (1).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_577d6e() {
vec2 res = vec2(1.0f);
ivec2 res = ivec2(1);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_577d6e() {
vec2 res = vec2(1.0f);
ivec2 res = ivec2(1);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_577d6e() {
vec2 res = vec2(1.0f);
ivec2 res = ivec2(1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_577d6e() {
float2 res = float2(1.0f);
int2 res = int2(1);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,37 +30,39 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v2int %int_1 %int_1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%19 = OpConstantNull %v2int
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v2float %float_1 %float_1
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%abs_577d6e = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
%res = OpVariable %_ptr_Function_v2int Function %19
OpStore %res %16
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %abs_577d6e
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %abs_577d6e
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %abs_577d6e
%29 = OpLabel
%30 = OpFunctionCall %void %abs_577d6e
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %abs_577d6e
%32 = OpLabel
%33 = OpFunctionCall %void %abs_577d6e
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_577d6e() {
var res = abs(vec2(1.0));
var res = abs(vec2(1));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(ia) -> ia
fn abs_5a8af1() {
var res = abs(1.0);
var res = abs(1);
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_5a8af1() {
float res = 1.0f;
int res = 1;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_5a8af1() {
float res = 1.0f;
int res = 1;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_5a8af1() {
float res = 1.0f;
int res = 1;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_5a8af1() {
float res = 1.0f;
int res = 1;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_5a8af1() {
float res = 1.0f;
int res = 1;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_5a8af1() {
float res = 1.0f;
int res = 1;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 29
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,34 +30,37 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%17 = OpConstantNull %int
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%abs_5a8af1 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1
%res = OpVariable %_ptr_Function_int Function %17
OpStore %res %int_1
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %abs_5a8af1
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %abs_5a8af1
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %void %abs_5a8af1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %abs_5a8af1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %abs_5a8af1
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_5a8af1() {
var res = abs(1.0);
var res = abs(1);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(vec<2, fa>) -> vec<2, fa>
fn abs_82ff9d() {
var res = abs(vec2(1));
var res = abs(vec2(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_82ff9d() {
int2 res = (1).xx;
float2 res = (1.0f).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_82ff9d() {
int2 res = (1).xx;
float2 res = (1.0f).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_82ff9d() {
ivec2 res = ivec2(1);
vec2 res = vec2(1.0f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_82ff9d() {
ivec2 res = ivec2(1);
vec2 res = vec2(1.0f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_82ff9d() {
ivec2 res = ivec2(1);
vec2 res = vec2(1.0f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_82ff9d() {
int2 res = int2(1);
float2 res = float2(1.0f);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,39 +30,37 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v2int %int_1 %int_1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%19 = OpConstantNull %v2int
%20 = OpTypeFunction %v4float
%v2float = OpTypeVector %float 2
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v2float %float_1 %float_1
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%abs_82ff9d = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %19
OpStore %res %16
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %abs_82ff9d
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %abs_82ff9d
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %abs_82ff9d
%27 = OpLabel
%28 = OpFunctionCall %void %abs_82ff9d
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %abs_82ff9d
%30 = OpLabel
%31 = OpFunctionCall %void %abs_82ff9d
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_82ff9d() {
var res = abs(vec2(1));
var res = abs(vec2(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(vec<4, ia>) -> vec<4, ia>
fn abs_8ca9b1() {
var res = abs(vec4(1.0));
var res = abs(vec4(1));
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_8ca9b1() {
float4 res = (1.0f).xxxx;
int4 res = (1).xxxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_8ca9b1() {
float4 res = (1.0f).xxxx;
int4 res = (1).xxxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_8ca9b1() {
vec4 res = vec4(1.0f);
ivec4 res = ivec4(1);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_8ca9b1() {
vec4 res = vec4(1.0f);
ivec4 res = ivec4(1);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_8ca9b1() {
vec4 res = vec4(1.0f);
ivec4 res = ivec4(1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_8ca9b1() {
float4 res = float4(1.0f);
int4 res = int4(1);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 30
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,35 +30,39 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
%_ptr_Function_v4int = OpTypePointer Function %v4int
%19 = OpConstantNull %v4int
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%14 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%abs_8ca9b1 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4float Function %5
OpStore %res %14
%res = OpVariable %_ptr_Function_v4int Function %19
OpStore %res %16
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %17
%19 = OpLabel
%20 = OpFunctionCall %void %abs_8ca9b1
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %abs_8ca9b1
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%22 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %void %abs_8ca9b1
%29 = OpLabel
%30 = OpFunctionCall %void %abs_8ca9b1
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%28 = OpLabel
%29 = OpFunctionCall %void %abs_8ca9b1
%32 = OpLabel
%33 = OpFunctionCall %void %abs_8ca9b1
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_8ca9b1() {
var res = abs(vec4(1.0));
var res = abs(vec4(1));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(fa) -> fa
fn abs_aedb6d() {
var res = abs(1);
var res = abs(1.);
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_aedb6d() {
int res = 1;
float res = 1.0f;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_aedb6d() {
int res = 1;
float res = 1.0f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_aedb6d() {
int res = 1;
float res = 1.0f;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_aedb6d() {
int res = 1;
float res = 1.0f;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_aedb6d() {
int res = 1;
float res = 1.0f;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_aedb6d() {
int res = 1;
float res = 1.0f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Bound: 29
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,37 +30,34 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%17 = OpConstantNull %int
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%abs_aedb6d = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_int Function %17
OpStore %res %int_1
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %abs_aedb6d
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %abs_aedb6d
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %void %abs_aedb6d
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %abs_aedb6d
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %abs_aedb6d
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_aedb6d() {
var res = abs(1);
var res = abs(1.0);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(vec<3, ia>) -> vec<3, ia>
fn abs_c3321c() {
var res = abs(vec3(1.0));
var res = abs(vec3(1));
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_c3321c() {
float3 res = (1.0f).xxx;
int3 res = (1).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_c3321c() {
float3 res = (1.0f).xxx;
int3 res = (1).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_c3321c() {
vec3 res = vec3(1.0f);
ivec3 res = ivec3(1);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_c3321c() {
vec3 res = vec3(1.0f);
ivec3 res = ivec3(1);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_c3321c() {
vec3 res = vec3(1.0f);
ivec3 res = ivec3(1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_c3321c() {
float3 res = float3(1.0f);
int3 res = int3(1);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,37 +30,39 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v3int %int_1 %int_1 %int_1
%_ptr_Function_v3int = OpTypePointer Function %v3int
%19 = OpConstantNull %v3int
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%_ptr_Function_v3float = OpTypePointer Function %v3float
%18 = OpConstantNull %v3float
%19 = OpTypeFunction %v4float
%abs_c3321c = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v3float Function %18
OpStore %res %15
%res = OpVariable %_ptr_Function_v3int Function %19
OpStore %res %16
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %abs_c3321c
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %abs_c3321c
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %abs_c3321c
%29 = OpLabel
%30 = OpFunctionCall %void %abs_c3321c
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %abs_c3321c
%32 = OpLabel
%33 = OpFunctionCall %void %abs_c3321c
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_c3321c() {
var res = abs(vec3(1.0));
var res = abs(vec3(1));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn abs(vec<4, fa>) -> vec<4, fa>
fn abs_e28785() {
var res = abs(vec4(1));
var res = abs(vec4(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
void abs_e28785() {
int4 res = (1).xxxx;
float4 res = (1.0f).xxxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void abs_e28785() {
int4 res = (1).xxxx;
float4 res = (1.0f).xxxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void abs_e28785() {
ivec4 res = ivec4(1);
vec4 res = vec4(1.0f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void abs_e28785() {
ivec4 res = ivec4(1);
vec4 res = vec4(1.0f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void abs_e28785() {
ivec4 res = ivec4(1);
vec4 res = vec4(1.0f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void abs_e28785() {
int4 res = int4(1);
float4 res = float4(1.0f);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; Bound: 30
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,39 +30,35 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
%_ptr_Function_v4int = OpTypePointer Function %v4int
%19 = OpConstantNull %v4int
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%14 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%_ptr_Function_v4float = OpTypePointer Function %v4float
%17 = OpTypeFunction %v4float
%abs_e28785 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v4int Function %19
OpStore %res %16
%res = OpVariable %_ptr_Function_v4float Function %5
OpStore %res %14
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %abs_e28785
%vertex_main_inner = OpFunction %v4float None %17
%19 = OpLabel
%20 = OpFunctionCall %void %abs_e28785
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
%22 = OpLabel
%23 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %23
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%29 = OpLabel
%30 = OpFunctionCall %void %abs_e28785
%25 = OpLabel
%26 = OpFunctionCall %void %abs_e28785
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%32 = OpLabel
%33 = OpFunctionCall %void %abs_e28785
%28 = OpLabel
%29 = OpFunctionCall %void %abs_e28785
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn abs_e28785() {
var res = abs(vec4(1));
var res = abs(vec4(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asinh(vec<2, fa>) -> vec<2, fa>
fn asinh_16b543() {
var res = asinh(vec2(1));
var res = asinh(vec2(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn asinh_16b543() {
var res = asinh(vec2(1));
var res = asinh(vec2(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asinh(fa) -> fa
fn asinh_180015() {
var res = asinh(1);
var res = asinh(1.);
}
@vertex

View File

@ -1,5 +1,5 @@
fn asinh_180015() {
var res = asinh(1);
var res = asinh(1.0);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asinh(vec<3, fa>) -> vec<3, fa>
fn asinh_51079e() {
var res = asinh(vec3(1));
var res = asinh(vec3(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn asinh_51079e() {
var res = asinh(vec3(1));
var res = asinh(vec3(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn asinh(vec<4, fa>) -> vec<4, fa>
fn asinh_cf8603() {
var res = asinh(vec4(1));
var res = asinh(vec4(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn asinh_cf8603() {
var res = asinh(vec4(1));
var res = asinh(vec4(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan(vec<2, fa>) -> vec<2, fa>
fn atan_5ca7b8() {
var res = atan(vec2(1));
var res = atan(vec2(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan_5ca7b8() {
var res = atan(vec2(1));
var res = atan(vec2(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan(vec<3, fa>) -> vec<3, fa>
fn atan_749e1b() {
var res = atan(vec3(1));
var res = atan(vec3(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan_749e1b() {
var res = atan(vec3(1));
var res = atan(vec3(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan(fa) -> fa
fn atan_7a2a75() {
var res = atan(1);
var res = atan(1.);
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan_7a2a75() {
var res = atan(1);
var res = atan(1.0);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan(vec<4, fa>) -> vec<4, fa>
fn atan_d17fb2() {
var res = atan(vec4(1));
var res = atan(vec4(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan_d17fb2() {
var res = atan(vec4(1));
var res = atan(vec4(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan2(fa, fa) -> fa
fn atan2_034ace() {
var res = atan2(1, 1);
var res = atan2(1., 1.);
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan2_034ace() {
var res = atan2(1, 1);
var res = atan2(1.0, 1.0);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan2(vec<3, fa>, vec<3, fa>) -> vec<3, fa>
fn atan2_3c2865() {
var res = atan2(vec3(1), vec3(1));
var res = atan2(vec3(1.), vec3(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan2_3c2865() {
var res = atan2(vec3(1), vec3(1));
var res = atan2(vec3(1.0), vec3(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan2(vec<2, fa>, vec<2, fa>) -> vec<2, fa>
fn atan2_c19683() {
var res = atan2(vec2(1), vec2(1));
var res = atan2(vec2(1.), vec2(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan2_c19683() {
var res = atan2(vec2(1), vec2(1));
var res = atan2(vec2(1.0), vec2(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn atan2(vec<4, fa>, vec<4, fa>) -> vec<4, fa>
fn atan2_c4be45() {
var res = atan2(vec4(1), vec4(1));
var res = atan2(vec4(1.), vec4(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
fn atan2_c4be45() {
var res = atan2(vec4(1), vec4(1));
var res = atan2(vec4(1.0), vec4(1.0));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn clamp(vec<2, ia>, vec<2, ia>, vec<2, ia>) -> vec<2, ia>
fn clamp_177548() {
var res = clamp(vec2(1.0), vec2(1.0), vec2(1.0));
var res = clamp(vec2(1), vec2(1), vec2(1));
}
@vertex

View File

@ -1,5 +1,5 @@
void clamp_177548() {
float2 res = (1.0f).xx;
int2 res = (1).xx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void clamp_177548() {
float2 res = (1.0f).xx;
int2 res = (1).xx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void clamp_177548() {
vec2 res = vec2(1.0f);
ivec2 res = ivec2(1);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_177548() {
vec2 res = vec2(1.0f);
ivec2 res = ivec2(1);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_177548() {
vec2 res = vec2(1.0f);
ivec2 res = ivec2(1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void clamp_177548() {
float2 res = float2(1.0f);
int2 res = int2(1);
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,37 +30,39 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%16 = OpConstantComposite %v2int %int_1 %int_1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%19 = OpConstantNull %v2int
%20 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%15 = OpConstantComposite %v2float %float_1 %float_1
%_ptr_Function_v2float = OpTypePointer Function %v2float
%18 = OpConstantNull %v2float
%19 = OpTypeFunction %v4float
%clamp_177548 = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_v2float Function %18
OpStore %res %15
%res = OpVariable %_ptr_Function_v2int Function %19
OpStore %res %16
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %19
%21 = OpLabel
%22 = OpFunctionCall %void %clamp_177548
%vertex_main_inner = OpFunction %v4float None %20
%22 = OpLabel
%23 = OpFunctionCall %void %clamp_177548
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %25
%25 = OpLabel
%26 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %26
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %clamp_177548
%29 = OpLabel
%30 = OpFunctionCall %void %clamp_177548
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %clamp_177548
%32 = OpLabel
%33 = OpFunctionCall %void %clamp_177548
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn clamp_177548() {
var res = clamp(vec2(1.0), vec2(1.0), vec2(1.0));
var res = clamp(vec2(1), vec2(1), vec2(1));
}
@vertex

View File

@ -23,7 +23,7 @@
// fn clamp(fa, fa, fa) -> fa
fn clamp_23aa4f() {
var res = clamp(1, 1, 1);
var res = clamp(1., 1., 1.);
}
@vertex

View File

@ -1,5 +1,5 @@
void clamp_23aa4f() {
int res = 1;
float res = 1.0f;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void clamp_23aa4f() {
int res = 1;
float res = 1.0f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void clamp_23aa4f() {
int res = 1;
float res = 1.0f;
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_23aa4f() {
int res = 1;
float res = 1.0f;
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_23aa4f() {
int res = 1;
float res = 1.0f;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void clamp_23aa4f() {
int res = 1;
float res = 1.0f;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Bound: 29
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@ -30,37 +30,34 @@
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%17 = OpConstantNull %int
%18 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpTypeFunction %v4float
%clamp_23aa4f = OpFunction %void None %9
%12 = OpLabel
%res = OpVariable %_ptr_Function_int Function %17
OpStore %res %int_1
%res = OpVariable %_ptr_Function_float Function %8
OpStore %res %float_1
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %18
%20 = OpLabel
%21 = OpFunctionCall %void %clamp_23aa4f
%vertex_main_inner = OpFunction %v4float None %16
%18 = OpLabel
%19 = OpFunctionCall %void %clamp_23aa4f
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %9
%23 = OpLabel
%24 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %24
%21 = OpLabel
%22 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %22
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %9
%24 = OpLabel
%25 = OpFunctionCall %void %clamp_23aa4f
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%27 = OpLabel
%28 = OpFunctionCall %void %clamp_23aa4f
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %9
%30 = OpLabel
%31 = OpFunctionCall %void %clamp_23aa4f
OpReturn
OpFunctionEnd

View File

@ -1,5 +1,5 @@
fn clamp_23aa4f() {
var res = clamp(1, 1, 1);
var res = clamp(1.0, 1.0, 1.0);
}
@vertex

View File

@ -23,7 +23,7 @@
// fn clamp(vec<3, fa>, vec<3, fa>, vec<3, fa>) -> vec<3, fa>
fn clamp_5cf700() {
var res = clamp(vec3(1), vec3(1), vec3(1));
var res = clamp(vec3(1.), vec3(1.), vec3(1.));
}
@vertex

View File

@ -1,5 +1,5 @@
void clamp_5cf700() {
int3 res = (1).xxx;
float3 res = (1.0f).xxx;
}
struct tint_symbol {

View File

@ -1,5 +1,5 @@
void clamp_5cf700() {
int3 res = (1).xxx;
float3 res = (1.0f).xxx;
}
struct tint_symbol {

View File

@ -1,7 +1,7 @@
#version 310 es
void clamp_5cf700() {
ivec3 res = ivec3(1);
vec3 res = vec3(1.0f);
}
vec4 vertex_main() {
@ -21,7 +21,7 @@ void main() {
precision mediump float;
void clamp_5cf700() {
ivec3 res = ivec3(1);
vec3 res = vec3(1.0f);
}
void fragment_main() {
@ -35,7 +35,7 @@ void main() {
#version 310 es
void clamp_5cf700() {
ivec3 res = ivec3(1);
vec3 res = vec3(1.0f);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void clamp_5cf700() {
int3 res = int3(1);
float3 res = float3(1.0f);
}
struct tint_symbol {

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