test/tint/builtins: Remove hack for 'level' parameter value

I'm sure this was needed at one point, but I can't seem to find the
requirement in either the spec or implementation. *shrug*

Change-Id: I8c139747c2a6864867ecda0b82a5f7991ad9d3ef
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106886
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton 2022-10-25 13:08:45 +00:00
parent 6c33dce75a
commit c3adc78cbc
555 changed files with 1569 additions and 1550 deletions

View File

@ -265,19 +265,13 @@ enable f16;
{{- /* Returns a value that can be used for the parameter argument */ -}}
{{- /* ------------------------------------------------------------------ */ -}}
{{- $ty := .Type -}}
{{- if eq $ty.Target.Name "i32" -}}
{{- /* If the parameter has the name 'level', then use '0' as the value. */ -}}
{{- /* Some texture arguments require the level parameter to be 0, and */ -}}
{{- /* constraint is not described in the definition file. */ -}}
{{- if eq .Name "level" -}}0i
{{- else -}}1i
{{- end -}}
{{- else if eq $ty.Target.Name "u32" -}}1u
{{- else if eq $ty.Target.Name "f32" -}}1.f
{{- else if eq $ty.Target.Name "fa" -}}1
{{- else if eq $ty.Target.Name "ia" -}}1.0
{{- else if eq $ty.Target.Name "bool" -}}true
{{- else if eq $ty.Target.Name "vec" -}}
{{- if eq $ty.Target.Name "i32" -}}1i
{{- else if eq $ty.Target.Name "u32" -}}1u
{{- else if eq $ty.Target.Name "f32" -}}1.f
{{- else if eq $ty.Target.Name "fa" -}}1
{{- else if eq $ty.Target.Name "ia" -}}1.0
{{- else if eq $ty.Target.Name "bool" -}}true
{{- else if eq $ty.Target.Name "vec" -}}
{{- $el := Eval "ArgumentValue" "Type" (ElementType .Type) "Name" ""}}
{{- template "Type" $ty}}({{$el}})
{{- else if eq $ty.Target.Name "mat" -}}{{template "Type" $ty}}(

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_depth_2d, level: i32) -> vec2<i32>
fn textureDimensions_12c9bb() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1);
void textureDimensions_12c9bb() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1);
void textureDimensions_12c9bb() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp sampler2D arg_0_1;
void textureDimensions_12c9bb() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp sampler2D arg_0_1;
void textureDimensions_12c9bb() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp sampler2D arg_0_1;
void textureDimensions_12c9bb() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_12c9bb(depth2d<float, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -39,7 +39,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%20 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %v4float
@ -48,7 +48,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %11 %arg_0
%16 = OpImageQuerySizeLod %v2int %19 %20
%16 = OpImageQuerySizeLod %v2int %19 %int_1
OpStore %res %16
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_depth_2d;
fn textureDimensions_12c9bb() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_cube_array<i32>, level: i32) -> vec2<i32>
fn textureDimensions_221f22() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ TextureCubeArray<int4> arg_0 : register(t0, space1);
void textureDimensions_221f22() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ TextureCubeArray<int4> arg_0 : register(t0, space1);
void textureDimensions_221f22() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_221f22(texturecube_array<int, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -41,7 +41,7 @@
%13 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%22 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %v4float
@ -50,7 +50,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %11 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %22
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%17 = OpVectorShuffle %v2int %19 %19 0 1
OpStore %res %17
OpReturn

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_cube_array<i32>;
fn textureDimensions_221f22() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_2d_array<u32>, level: i32) -> vec2<i32>
fn textureDimensions_267788() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture2DArray<uint4> arg_0 : register(t0, space1);
void textureDimensions_267788() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ Texture2DArray<uint4> arg_0 : register(t0, space1);
void textureDimensions_267788() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp usampler2DArray arg_0_1;
void textureDimensions_267788() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp usampler2DArray arg_0_1;
void textureDimensions_267788() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp usampler2DArray arg_0_1;
void textureDimensions_267788() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_267788(texture2d_array<uint, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -41,7 +41,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%23 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%26 = OpConstantNull %v2int
%27 = OpTypeFunction %v4float
@ -50,7 +50,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %26
%22 = OpLoad %11 %arg_0
%20 = OpImageQuerySizeLod %v3int %22 %23
%20 = OpImageQuerySizeLod %v3int %22 %int_1
%17 = OpVectorShuffle %v2int %20 %20 0 1
OpStore %res %17
OpReturn

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_2d_array<u32>;
fn textureDimensions_267788() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_3d<f32>, level: i32) -> vec3<i32>
fn textureDimensions_26bdfa() {
var res: vec3<i32> = textureDimensions(arg_0, 0i);
var res: vec3<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture3D<float4> arg_0 : register(t0, space1);
void textureDimensions_26bdfa() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int3 res = tint_tmp.xyz;
}

View File

@ -2,7 +2,7 @@ Texture3D<float4> arg_0 : register(t0, space1);
void textureDimensions_26bdfa() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int3 res = tint_tmp.xyz;
}

View File

@ -2,7 +2,7 @@
uniform highp sampler3D arg_0_1;
void textureDimensions_26bdfa() {
ivec3 res = textureSize(arg_0_1, 0);
ivec3 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp sampler3D arg_0_1;
void textureDimensions_26bdfa() {
ivec3 res = textureSize(arg_0_1, 0);
ivec3 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp sampler3D arg_0_1;
void textureDimensions_26bdfa() {
ivec3 res = textureSize(arg_0_1, 0);
ivec3 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_26bdfa(texture3d<float, access::sample> tint_symbol_1) {
int3 res = int3(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0), tint_symbol_1.get_depth(0));
int3 res = int3(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1), tint_symbol_1.get_depth(1));
}
struct tint_symbol {

View File

@ -39,7 +39,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%20 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v3int = OpTypePointer Function %v3int
%23 = OpConstantNull %v3int
%24 = OpTypeFunction %v4float
@ -48,7 +48,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v3int Function %23
%19 = OpLoad %11 %arg_0
%16 = OpImageQuerySizeLod %v3int %19 %20
%16 = OpImageQuerySizeLod %v3int %19 %int_1
OpStore %res %16
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_3d<f32>;
fn textureDimensions_26bdfa() {
var res : vec3<i32> = textureDimensions(arg_0, 0i);
var res : vec3<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_3d<u32>, level: i32) -> vec3<i32>
fn textureDimensions_2efa05() {
var res: vec3<i32> = textureDimensions(arg_0, 0i);
var res: vec3<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture3D<uint4> arg_0 : register(t0, space1);
void textureDimensions_2efa05() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int3 res = tint_tmp.xyz;
}

View File

@ -2,7 +2,7 @@ Texture3D<uint4> arg_0 : register(t0, space1);
void textureDimensions_2efa05() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int3 res = tint_tmp.xyz;
}

View File

@ -2,7 +2,7 @@
uniform highp usampler3D arg_0_1;
void textureDimensions_2efa05() {
ivec3 res = textureSize(arg_0_1, 0);
ivec3 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp usampler3D arg_0_1;
void textureDimensions_2efa05() {
ivec3 res = textureSize(arg_0_1, 0);
ivec3 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp usampler3D arg_0_1;
void textureDimensions_2efa05() {
ivec3 res = textureSize(arg_0_1, 0);
ivec3 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_2efa05(texture3d<uint, access::sample> tint_symbol_1) {
int3 res = int3(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0), tint_symbol_1.get_depth(0));
int3 res = int3(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1), tint_symbol_1.get_depth(1));
}
struct tint_symbol {

View File

@ -40,7 +40,7 @@
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%21 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v3int = OpTypePointer Function %v3int
%24 = OpConstantNull %v3int
%25 = OpTypeFunction %v4float
@ -49,7 +49,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v3int Function %24
%20 = OpLoad %11 %arg_0
%17 = OpImageQuerySizeLod %v3int %20 %21
%17 = OpImageQuerySizeLod %v3int %20 %int_1
OpStore %res %17
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_3d<u32>;
fn textureDimensions_2efa05() {
var res : vec3<i32> = textureDimensions(arg_0, 0i);
var res : vec3<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_2d<f32>, level: i32) -> vec2<i32>
fn textureDimensions_2fe1cc() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture2D<float4> arg_0 : register(t0, space1);
void textureDimensions_2fe1cc() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ Texture2D<float4> arg_0 : register(t0, space1);
void textureDimensions_2fe1cc() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp sampler2D arg_0_1;
void textureDimensions_2fe1cc() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp sampler2D arg_0_1;
void textureDimensions_2fe1cc() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp sampler2D arg_0_1;
void textureDimensions_2fe1cc() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_2fe1cc(texture2d<float, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -39,7 +39,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%20 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %v4float
@ -48,7 +48,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %11 %arg_0
%16 = OpImageQuerySizeLod %v2int %19 %20
%16 = OpImageQuerySizeLod %v2int %19 %int_1
OpStore %res %16
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_2d<f32>;
fn textureDimensions_2fe1cc() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_cube_array<f32>, level: i32) -> vec2<i32>
fn textureDimensions_50a9ee() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ TextureCubeArray<float4> arg_0 : register(t0, space1);
void textureDimensions_50a9ee() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ TextureCubeArray<float4> arg_0 : register(t0, space1);
void textureDimensions_50a9ee() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_50a9ee(texturecube_array<float, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -41,7 +41,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%22 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %v4float
@ -50,7 +50,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %11 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %22
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%16 = OpVectorShuffle %v2int %19 %19 0 1
OpStore %res %16
OpReturn

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_cube_array<f32>;
fn textureDimensions_50a9ee() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_1d<i32>, level: i32) -> i32
fn textureDimensions_52045c() {
var res: i32 = textureDimensions(arg_0, 0i);
var res: i32 = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture1D<int4> arg_0 : register(t0, space1);
void textureDimensions_52045c() {
int2 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y);
int res = tint_tmp.x;
}

View File

@ -2,7 +2,7 @@ Texture1D<int4> arg_0 : register(t0, space1);
void textureDimensions_52045c() {
int2 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y);
int res = tint_tmp.x;
}

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; Bound: 37
; Schema: 0
OpCapability Shader
OpCapability Sampled1D
@ -39,37 +39,38 @@
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
%void = OpTypeVoid
%13 = OpTypeFunction %void
%19 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%22 = OpTypeFunction %v4float
%22 = OpConstantNull %int
%23 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%textureDimensions_52045c = OpFunction %void None %13
%16 = OpLabel
%res = OpVariable %_ptr_Function_int Function %19
%res = OpVariable %_ptr_Function_int Function %22
%18 = OpLoad %11 %arg_0
%17 = OpImageQuerySizeLod %int %18 %19
%17 = OpImageQuerySizeLod %int %18 %int_1
OpStore %res %17
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %22
%24 = OpLabel
%25 = OpFunctionCall %void %textureDimensions_52045c
%vertex_main_inner = OpFunction %v4float None %23
%25 = OpLabel
%26 = OpFunctionCall %void %textureDimensions_52045c
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %13
%27 = OpLabel
%28 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %28
%28 = OpLabel
%29 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %29
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %13
%31 = OpLabel
%32 = OpFunctionCall %void %textureDimensions_52045c
%32 = OpLabel
%33 = OpFunctionCall %void %textureDimensions_52045c
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %13
%34 = OpLabel
%35 = OpFunctionCall %void %textureDimensions_52045c
%35 = OpLabel
%36 = OpFunctionCall %void %textureDimensions_52045c
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_1d<i32>;
fn textureDimensions_52045c() {
var res : i32 = textureDimensions(arg_0, 0i);
var res : i32 = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_cube<i32>, level: i32) -> vec2<i32>
fn textureDimensions_686ef2() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ TextureCube<int4> arg_0 : register(t0, space1);
void textureDimensions_686ef2() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ TextureCube<int4> arg_0 : register(t0, space1);
void textureDimensions_686ef2() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp isamplerCube arg_0_1;
void textureDimensions_686ef2() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp isamplerCube arg_0_1;
void textureDimensions_686ef2() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp isamplerCube arg_0_1;
void textureDimensions_686ef2() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_686ef2(texturecube<int, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -39,7 +39,7 @@
%void = OpTypeVoid
%13 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%20 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %v4float
@ -48,7 +48,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %11 %arg_0
%17 = OpImageQuerySizeLod %v2int %19 %20
%17 = OpImageQuerySizeLod %v2int %19 %int_1
OpStore %res %17
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_cube<i32>;
fn textureDimensions_686ef2() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_depth_2d_array, level: i32) -> vec2<i32>
fn textureDimensions_72e5d6() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1);
void textureDimensions_72e5d6() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1);
void textureDimensions_72e5d6() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp sampler2DArray arg_0_1;
void textureDimensions_72e5d6() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp sampler2DArray arg_0_1;
void textureDimensions_72e5d6() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp sampler2DArray arg_0_1;
void textureDimensions_72e5d6() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_72e5d6(depth2d_array<float, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -40,7 +40,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%22 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %v4float
@ -49,7 +49,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %11 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %22
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%16 = OpVectorShuffle %v2int %19 %19 0 1
OpStore %res %16
OpReturn

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
fn textureDimensions_72e5d6() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_1d<u32>, level: i32) -> i32
fn textureDimensions_79df87() {
var res: i32 = textureDimensions(arg_0, 0i);
var res: i32 = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture1D<uint4> arg_0 : register(t0, space1);
void textureDimensions_79df87() {
int2 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y);
int res = tint_tmp.x;
}

View File

@ -2,7 +2,7 @@ Texture1D<uint4> arg_0 : register(t0, space1);
void textureDimensions_79df87() {
int2 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y);
int res = tint_tmp.x;
}

View File

@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 37
; Bound: 38
; Schema: 0
OpCapability Shader
OpCapability Sampled1D
@ -40,37 +40,38 @@
%void = OpTypeVoid
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1
%20 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%23 = OpTypeFunction %v4float
%23 = OpConstantNull %int
%24 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%textureDimensions_79df87 = OpFunction %void None %13
%16 = OpLabel
%res = OpVariable %_ptr_Function_int Function %20
%res = OpVariable %_ptr_Function_int Function %23
%19 = OpLoad %11 %arg_0
%17 = OpImageQuerySizeLod %int %19 %20
%17 = OpImageQuerySizeLod %int %19 %int_1
OpStore %res %17
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %23
%25 = OpLabel
%26 = OpFunctionCall %void %textureDimensions_79df87
%vertex_main_inner = OpFunction %v4float None %24
%26 = OpLabel
%27 = OpFunctionCall %void %textureDimensions_79df87
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %13
%28 = OpLabel
%29 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %29
%29 = OpLabel
%30 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %30
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %13
%32 = OpLabel
%33 = OpFunctionCall %void %textureDimensions_79df87
%33 = OpLabel
%34 = OpFunctionCall %void %textureDimensions_79df87
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %13
%35 = OpLabel
%36 = OpFunctionCall %void %textureDimensions_79df87
%36 = OpLabel
%37 = OpFunctionCall %void %textureDimensions_79df87
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_1d<u32>;
fn textureDimensions_79df87() {
var res : i32 = textureDimensions(arg_0, 0i);
var res : i32 = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_2d_array<f32>, level: i32) -> vec2<i32>
fn textureDimensions_85d556() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture2DArray<float4> arg_0 : register(t0, space1);
void textureDimensions_85d556() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ Texture2DArray<float4> arg_0 : register(t0, space1);
void textureDimensions_85d556() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp sampler2DArray arg_0_1;
void textureDimensions_85d556() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp sampler2DArray arg_0_1;
void textureDimensions_85d556() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp sampler2DArray arg_0_1;
void textureDimensions_85d556() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_85d556(texture2d_array<float, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -40,7 +40,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%22 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %v4float
@ -49,7 +49,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %11 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %22
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%16 = OpVectorShuffle %v2int %19 %19 0 1
OpStore %res %16
OpReturn

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_2d_array<f32>;
fn textureDimensions_85d556() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_cube<u32>, level: i32) -> vec2<i32>
fn textureDimensions_88ad17() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ TextureCube<uint4> arg_0 : register(t0, space1);
void textureDimensions_88ad17() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ TextureCube<uint4> arg_0 : register(t0, space1);
void textureDimensions_88ad17() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp usamplerCube arg_0_1;
void textureDimensions_88ad17() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp usamplerCube arg_0_1;
void textureDimensions_88ad17() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp usamplerCube arg_0_1;
void textureDimensions_88ad17() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_88ad17(texturecube<uint, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -40,7 +40,7 @@
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%21 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%24 = OpConstantNull %v2int
%25 = OpTypeFunction %v4float
@ -49,7 +49,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %24
%20 = OpLoad %11 %arg_0
%17 = OpImageQuerySizeLod %v2int %20 %21
%17 = OpImageQuerySizeLod %v2int %20 %int_1
OpStore %res %17
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_cube<u32>;
fn textureDimensions_88ad17() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_depth_cube, level: i32) -> vec2<i32>
fn textureDimensions_9393b0() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1);
void textureDimensions_9393b0() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1);
void textureDimensions_9393b0() {
int3 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp samplerCube arg_0_1;
void textureDimensions_9393b0() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp samplerCube arg_0_1;
void textureDimensions_9393b0() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp samplerCube arg_0_1;
void textureDimensions_9393b0() {
ivec2 res = textureSize(arg_0_1, 0);
ivec2 res = textureSize(arg_0_1, 1);
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_9393b0(depthcube<float, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -39,7 +39,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%20 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %v4float
@ -48,7 +48,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %11 %arg_0
%16 = OpImageQuerySizeLod %v2int %19 %20
%16 = OpImageQuerySizeLod %v2int %19 %int_1
OpStore %res %16
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_depth_cube;
fn textureDimensions_9393b0() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -24,7 +24,7 @@
// fn textureDimensions(texture: texture_2d_array<i32>, level: i32) -> vec2<i32>
fn textureDimensions_9c9c57() {
var res: vec2<i32> = textureDimensions(arg_0, 0i);
var res: vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

View File

@ -2,7 +2,7 @@ Texture2DArray<int4> arg_0 : register(t0, space1);
void textureDimensions_9c9c57() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@ Texture2DArray<int4> arg_0 : register(t0, space1);
void textureDimensions_9c9c57() {
int4 tint_tmp;
arg_0.GetDimensions(0, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
arg_0.GetDimensions(1, tint_tmp.x, tint_tmp.y, tint_tmp.z, tint_tmp.w);
int2 res = tint_tmp.xy;
}

View File

@ -2,7 +2,7 @@
uniform highp isampler2DArray arg_0_1;
void textureDimensions_9c9c57() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
vec4 vertex_main() {
@ -23,7 +23,7 @@ precision mediump float;
uniform highp isampler2DArray arg_0_1;
void textureDimensions_9c9c57() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void fragment_main() {
@ -38,7 +38,7 @@ void main() {
uniform highp isampler2DArray arg_0_1;
void textureDimensions_9c9c57() {
ivec2 res = textureSize(arg_0_1, 0).xy;
ivec2 res = textureSize(arg_0_1, 1).xy;
}
void compute_main() {

View File

@ -2,7 +2,7 @@
using namespace metal;
void textureDimensions_9c9c57(texture2d_array<int, access::sample> tint_symbol_1) {
int2 res = int2(tint_symbol_1.get_width(0), tint_symbol_1.get_height(0));
int2 res = int2(tint_symbol_1.get_width(1), tint_symbol_1.get_height(1));
}
struct tint_symbol {

View File

@ -40,7 +40,7 @@
%13 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%22 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %v4float
@ -49,7 +49,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %11 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %22
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%17 = OpVectorShuffle %v2int %19 %19 0 1
OpStore %res %17
OpReturn

View File

@ -1,7 +1,7 @@
@group(1) @binding(0) var arg_0 : texture_2d_array<i32>;
fn textureDimensions_9c9c57() {
var res : vec2<i32> = textureDimensions(arg_0, 0i);
var res : vec2<i32> = textureDimensions(arg_0, 1i);
}
@vertex

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