test/intrinsics/gen: Use '0' for level parameters

The level parameter needs to be zero for a number of texture overloads.
Bodging the template to emit 0 instead of 1 for any `level : i32` parameter is the easiest fix here.

Change-Id: I69222578efcd0d4f4f267fb59fec691b52786d9c
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57301
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2021-07-08 21:04:53 +00:00 committed by Tint LUCI CQ
parent 79fae01483
commit e4fd4a2ecd
196 changed files with 335 additions and 448 deletions

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_12c9bb(depth2d<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(depth2d<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %void %v4float
@ -49,7 +49,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %7 %arg_0
%16 = OpImageQuerySizeLod %v2int %19 %int_1
%16 = OpImageQuerySizeLod %v2int %19 %int_0
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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_221f22(texturecube_array<int, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texturecube_array<int, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -42,7 +42,7 @@
%13 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %void %v4float
@ -51,7 +51,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %7 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%19 = OpImageQuerySizeLod %v3int %21 %int_0
%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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_267788(texture2d_array<uint, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texture2d_array<uint, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -42,7 +42,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%26 = OpConstantNull %v2int
%27 = OpTypeFunction %void %v4float
@ -51,7 +51,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %26
%22 = OpLoad %7 %arg_0
%20 = OpImageQuerySizeLod %v3int %22 %int_1
%20 = OpImageQuerySizeLod %v3int %22 %int_0
%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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_26bdfa(texture3d<float, access::sample> tint_symbol_2) {
int3 res = int3(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1), tint_symbol_2.get_depth(1));
int3 res = int3(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0), tint_symbol_2.get_depth(0));
}
vertex tint_symbol vertex_main(texture3d<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v3int = OpTypePointer Function %v3int
%23 = OpConstantNull %v3int
%24 = OpTypeFunction %void %v4float
@ -49,7 +49,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v3int Function %23
%19 = OpLoad %7 %arg_0
%16 = OpImageQuerySizeLod %v3int %19 %int_1
%16 = OpImageQuerySizeLod %v3int %19 %int_0
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, 1);
var res : vec3<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_2efa05(texture3d<uint, access::sample> tint_symbol_2) {
int3 res = int3(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1), tint_symbol_2.get_depth(1));
int3 res = int3(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0), tint_symbol_2.get_depth(0));
}
vertex tint_symbol vertex_main(texture3d<uint, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -41,7 +41,7 @@
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v3int = OpTypePointer Function %v3int
%24 = OpConstantNull %v3int
%25 = OpTypeFunction %void %v4float
@ -50,7 +50,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v3int Function %24
%20 = OpLoad %7 %arg_0
%17 = OpImageQuerySizeLod %v3int %20 %int_1
%17 = OpImageQuerySizeLod %v3int %20 %int_0
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, 1);
var res : vec3<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_2fe1cc(texture2d<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texture2d<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %void %v4float
@ -49,7 +49,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %7 %arg_0
%16 = OpImageQuerySizeLod %v2int %19 %int_1
%16 = OpImageQuerySizeLod %v2int %19 %int_0
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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_50a9ee(texturecube_array<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texturecube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -42,7 +42,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %void %v4float
@ -51,7 +51,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %7 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%19 = OpImageQuerySizeLod %v3int %21 %int_0
%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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_686ef2(texturecube<int, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texturecube<int, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%void = OpTypeVoid
%13 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %void %v4float
@ -49,7 +49,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %7 %arg_0
%17 = OpImageQuerySizeLod %v2int %19 %int_1
%17 = OpImageQuerySizeLod %v2int %19 %int_0
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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_72e5d6(depth2d_array<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(depth2d_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -41,7 +41,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %void %v4float
@ -50,7 +50,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %7 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%19 = OpImageQuerySizeLod %v3int %21 %int_0
%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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_85d556(texture2d_array<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texture2d_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -41,7 +41,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %void %v4float
@ -50,7 +50,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %7 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%19 = OpImageQuerySizeLod %v3int %21 %int_0
%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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_88ad17(texturecube<uint, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texturecube<uint, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -41,7 +41,7 @@
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%24 = OpConstantNull %v2int
%25 = OpTypeFunction %void %v4float
@ -50,7 +50,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %24
%20 = OpLoad %7 %arg_0
%17 = OpImageQuerySizeLod %v2int %20 %int_1
%17 = OpImageQuerySizeLod %v2int %20 %int_0
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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_9393b0(depthcube<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(depthcube<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%23 = OpConstantNull %v2int
%24 = OpTypeFunction %void %v4float
@ -49,7 +49,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %23
%19 = OpLoad %7 %arg_0
%16 = OpImageQuerySizeLod %v2int %19 %int_1
%16 = OpImageQuerySizeLod %v2int %19 %int_0
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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_9c9c57(texture2d_array<int, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texture2d_array<int, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -41,7 +41,7 @@
%13 = OpTypeFunction %void
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %void %v4float
@ -50,7 +50,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %7 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%19 = OpImageQuerySizeLod %v3int %21 %int_0
%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, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureDimensions(texture: texture_depth_cube_array, level: i32) -> vec2<i32>
fn textureDimensions_a01845() {
var res: vec2<i32> = textureDimensions(arg_0, 1);
var res: vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_a01845(depthcube_array<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(depthcube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -42,7 +42,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%25 = OpConstantNull %v2int
%26 = OpTypeFunction %void %v4float
@ -51,7 +51,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %25
%21 = OpLoad %7 %arg_0
%19 = OpImageQuerySizeLod %v3int %21 %int_1
%19 = OpImageQuerySizeLod %v3int %21 %int_0
%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_cube_array;
fn textureDimensions_a01845() {
var res : vec2<i32> = textureDimensions(arg_0, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureDimensions(texture: texture_cube<f32>, level: i32) -> vec2<i32>
fn textureDimensions_a9c9c1() {
var res: vec2<i32> = textureDimensions(arg_0, 1);
var res: vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_a9c9c1(texturecube<float, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texturecube<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

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

View File

@ -1,7 +1,7 @@
[[group(1), binding(0)]] var arg_0 : texture_cube<f32>;
fn textureDimensions_a9c9c1() {
var res : vec2<i32> = textureDimensions(arg_0, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureDimensions(texture: texture_2d<i32>, level: i32) -> vec2<i32>
fn textureDimensions_b0e16d() {
var res: vec2<i32> = textureDimensions(arg_0, 1);
var res: vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_b0e16d(texture2d<int, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texture2d<int, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

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

View File

@ -1,7 +1,7 @@
[[group(1), binding(0)]] var arg_0 : texture_2d<i32>;
fn textureDimensions_b0e16d() {
var res : vec2<i32> = textureDimensions(arg_0, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureDimensions(texture: texture_cube_array<u32>, level: i32) -> vec2<i32>
fn textureDimensions_d83c45() {
var res: vec2<i32> = textureDimensions(arg_0, 1);
var res: vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_d83c45(texturecube_array<uint, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texturecube_array<uint, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -43,7 +43,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v2int = OpTypePointer Function %v2int
%26 = OpConstantNull %v2int
%27 = OpTypeFunction %void %v4float
@ -52,7 +52,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v2int Function %26
%22 = OpLoad %7 %arg_0
%20 = OpImageQuerySizeLod %v3int %22 %int_1
%20 = OpImageQuerySizeLod %v3int %22 %int_0
%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_cube_array<u32>;
fn textureDimensions_d83c45() {
var res : vec2<i32> = textureDimensions(arg_0, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureDimensions(texture: texture_3d<i32>, level: i32) -> vec3<i32>
fn textureDimensions_efc8a4() {
var res: vec3<i32> = textureDimensions(arg_0, 1);
var res: vec3<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_efc8a4(texture3d<int, access::sample> tint_symbol_2) {
int3 res = int3(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1), tint_symbol_2.get_depth(1));
int3 res = int3(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0), tint_symbol_2.get_depth(0));
}
vertex tint_symbol vertex_main(texture3d<int, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%void = OpTypeVoid
%13 = OpTypeFunction %void
%v3int = OpTypeVector %int 3
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_v3int = OpTypePointer Function %v3int
%23 = OpConstantNull %v3int
%24 = OpTypeFunction %void %v4float
@ -49,7 +49,7 @@
%16 = OpLabel
%res = OpVariable %_ptr_Function_v3int Function %23
%19 = OpLoad %7 %arg_0
%17 = OpImageQuerySizeLod %v3int %19 %int_1
%17 = OpImageQuerySizeLod %v3int %19 %int_0
OpStore %res %17
OpReturn
OpFunctionEnd

View File

@ -1,7 +1,7 @@
[[group(1), binding(0)]] var arg_0 : texture_3d<i32>;
fn textureDimensions_efc8a4() {
var res : vec3<i32> = textureDimensions(arg_0, 1);
var res : vec3<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureDimensions(texture: texture_2d<u32>, level: i32) -> vec2<i32>
fn textureDimensions_f7145b() {
var res: vec2<i32> = textureDimensions(arg_0, 1);
var res: vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

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

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureDimensions_f7145b(texture2d<uint, access::sample> tint_symbol_2) {
int2 res = int2(tint_symbol_2.get_width(1), tint_symbol_2.get_height(1));
int2 res = int2(tint_symbol_2.get_width(0), tint_symbol_2.get_height(0));
}
vertex tint_symbol vertex_main(texture2d<uint, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

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

View File

@ -1,7 +1,7 @@
[[group(1), binding(0)]] var arg_0 : texture_2d<u32>;
fn textureDimensions_f7145b() {
var res : vec2<i32> = textureDimensions(arg_0, 1);
var res : vec2<i32> = textureDimensions(arg_0, 0);
}
[[stage(vertex)]]

View File

@ -26,7 +26,7 @@
// fn textureLoad(texture: texture_depth_2d, coords: vec2<i32>, level: i32) -> f32
fn textureLoad_19cf87() {
var res: f32 = textureLoad(arg_0, vec2<i32>(), 1);
var res: f32 = textureLoad(arg_0, vec2<i32>(), 0);
}
[[stage(vertex)]]

View File

@ -1,7 +1,7 @@
Texture2D arg_0 : register(t0, space1);
void textureLoad_19cf87() {
float res = arg_0.Load(int3(0, 0, 1)).x;
float res = arg_0.Load(int3(0, 0, 0)).x;
}
struct tint_symbol {

View File

@ -6,7 +6,7 @@ struct tint_symbol {
};
void textureLoad_19cf87(depth2d<float, access::sample> tint_symbol_2) {
float res = tint_symbol_2.read(uint2(int2()), 1);
float res = tint_symbol_2.read(uint2(int2()), 0);
}
vertex tint_symbol vertex_main(depth2d<float, access::sample> tint_symbol_3 [[texture(0)]]) {

View File

@ -40,7 +40,7 @@
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%21 = OpConstantNull %v2int
%int_1 = OpConstant %int 1
%int_0 = OpConstant %int 0
%_ptr_Function_float = OpTypePointer Function %float
%25 = OpTypeFunction %void %v4float
%float_1 = OpConstant %float 1
@ -48,7 +48,7 @@
%15 = OpLabel
%res = OpVariable %_ptr_Function_float Function %4
%18 = OpLoad %7 %arg_0
%17 = OpImageFetch %v4float %18 %21 Lod %int_1
%17 = OpImageFetch %v4float %18 %21 Lod %int_0
%16 = OpCompositeExtract %float %17 0
OpStore %res %16
OpReturn

View File

@ -1,7 +1,7 @@
[[group(1), binding(0)]] var arg_0 : texture_depth_2d;
fn textureLoad_19cf87() {
var res : f32 = textureLoad(arg_0, vec2<i32>(), 1);
var res : f32 = textureLoad(arg_0, vec2<i32>(), 0);
}
[[stage(vertex)]]

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