tint: Remove textureNumLayers() overloads for texture cube arrays
These are not supported in HLSL shader model 5.1 See: https://github.com/gpuweb/gpuweb/issues/3913 Change-Id: Ic33666ff910f04e3f561cbc40c9db14c5de59284 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122524 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
431ec3db38
commit
bd9f6e6684
|
@ -851,17 +851,6 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
|
||||||
[](ProgramBuilder* b) { return b->ExprList(kTextureName); },
|
[](ProgramBuilder* b) { return b->ExprList(kTextureName); },
|
||||||
/* returns value */ true,
|
/* returns value */ true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ValidTextureOverload::kNumLayersCubeArray,
|
|
||||||
"textureNumLayers(t : texture_cube_array<f32>) -> u32",
|
|
||||||
TextureKind::kRegular,
|
|
||||||
type::SamplerKind::kSampler,
|
|
||||||
type::TextureDimension::kCubeArray,
|
|
||||||
TextureDataType::kF32,
|
|
||||||
"textureNumLayers",
|
|
||||||
[](ProgramBuilder* b) { return b->ExprList(kTextureName); },
|
|
||||||
/* returns value */ true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
ValidTextureOverload::kNumLayersDepth2dArray,
|
ValidTextureOverload::kNumLayersDepth2dArray,
|
||||||
"textureNumLayers(t : texture_depth_2d_array) -> u32",
|
"textureNumLayers(t : texture_depth_2d_array) -> u32",
|
||||||
|
@ -873,17 +862,6 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
|
||||||
[](ProgramBuilder* b) { return b->ExprList(kTextureName); },
|
[](ProgramBuilder* b) { return b->ExprList(kTextureName); },
|
||||||
/* returns value */ true,
|
/* returns value */ true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ValidTextureOverload::kNumLayersDepthCubeArray,
|
|
||||||
"textureNumLayers(t : texture_depth_cube_array) -> u32",
|
|
||||||
TextureKind::kDepth,
|
|
||||||
type::SamplerKind::kSampler,
|
|
||||||
type::TextureDimension::kCubeArray,
|
|
||||||
TextureDataType::kF32,
|
|
||||||
"textureNumLayers",
|
|
||||||
[](ProgramBuilder* b) { return b->ExprList(kTextureName); },
|
|
||||||
/* returns value */ true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
ValidTextureOverload::kNumLayersStorageWO2dArray,
|
ValidTextureOverload::kNumLayersStorageWO2dArray,
|
||||||
"textureNumLayers(t : texture_storage_2d_array<rgba32float>) -> u32",
|
"textureNumLayers(t : texture_storage_2d_array<rgba32float>) -> u32",
|
||||||
|
|
|
@ -83,9 +83,7 @@ enum class ValidTextureOverload {
|
||||||
kGatherCompareDepthCubeF32,
|
kGatherCompareDepthCubeF32,
|
||||||
kGatherCompareDepthCubeArrayF32,
|
kGatherCompareDepthCubeArrayF32,
|
||||||
kNumLayers2dArray,
|
kNumLayers2dArray,
|
||||||
kNumLayersCubeArray,
|
|
||||||
kNumLayersDepth2dArray,
|
kNumLayersDepth2dArray,
|
||||||
kNumLayersDepthCubeArray,
|
|
||||||
kNumLayersStorageWO2dArray,
|
kNumLayersStorageWO2dArray,
|
||||||
kNumLevels2d,
|
kNumLevels2d,
|
||||||
kNumLevels2dArray,
|
kNumLevels2dArray,
|
||||||
|
|
|
@ -739,9 +739,7 @@ match workgroup
|
||||||
@must_use fn textureGatherCompare(texture: texture_depth_cube, sampler: sampler_comparison, coords: vec3<f32>, depth_ref: f32) -> vec4<f32>
|
@must_use fn textureGatherCompare(texture: texture_depth_cube, sampler: sampler_comparison, coords: vec3<f32>, depth_ref: f32) -> vec4<f32>
|
||||||
@must_use fn textureGatherCompare<A: iu32>(texture: texture_depth_cube_array, sampler: sampler_comparison, coords: vec3<f32>, array_index: A, depth_ref: f32) -> vec4<f32>
|
@must_use fn textureGatherCompare<A: iu32>(texture: texture_depth_cube_array, sampler: sampler_comparison, coords: vec3<f32>, array_index: A, depth_ref: f32) -> vec4<f32>
|
||||||
@must_use fn textureNumLayers<T: fiu32>(texture: texture_2d_array<T>) -> u32
|
@must_use fn textureNumLayers<T: fiu32>(texture: texture_2d_array<T>) -> u32
|
||||||
@must_use fn textureNumLayers<T: fiu32>(texture: texture_cube_array<T>) -> u32
|
|
||||||
@must_use fn textureNumLayers(texture: texture_depth_2d_array) -> u32
|
@must_use fn textureNumLayers(texture: texture_depth_2d_array) -> u32
|
||||||
@must_use fn textureNumLayers(texture: texture_depth_cube_array) -> u32
|
|
||||||
@must_use fn textureNumLayers<F: texel_format, A: write>(texture: texture_storage_2d_array<F, A>) -> u32
|
@must_use fn textureNumLayers<F: texel_format, A: write>(texture: texture_storage_2d_array<F, A>) -> u32
|
||||||
@must_use fn textureNumLevels<T: fiu32>(texture: texture_1d<T>) -> u32
|
@must_use fn textureNumLevels<T: fiu32>(texture: texture_1d<T>) -> u32
|
||||||
@must_use fn textureNumLevels<T: fiu32>(texture: texture_2d<T>) -> u32
|
@must_use fn textureNumLevels<T: fiu32>(texture: texture_2d<T>) -> u32
|
||||||
|
|
|
@ -2263,9 +2263,7 @@ static const char* expected_texture_overload(ast::builtin::test::ValidTextureOve
|
||||||
case ValidTextureOverload::kGatherCompareDepthCubeArrayF32:
|
case ValidTextureOverload::kGatherCompareDepthCubeArrayF32:
|
||||||
return R"(textureGatherCompare(texture, sampler, coords, array_index, depth_ref))";
|
return R"(textureGatherCompare(texture, sampler, coords, array_index, depth_ref))";
|
||||||
case ValidTextureOverload::kNumLayers2dArray:
|
case ValidTextureOverload::kNumLayers2dArray:
|
||||||
case ValidTextureOverload::kNumLayersCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersDepth2dArray:
|
case ValidTextureOverload::kNumLayersDepth2dArray:
|
||||||
case ValidTextureOverload::kNumLayersDepthCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
||||||
return R"(textureNumLayers(texture))";
|
return R"(textureNumLayers(texture))";
|
||||||
case ValidTextureOverload::kNumLevels2d:
|
case ValidTextureOverload::kNumLevels2d:
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -98,8 +98,6 @@ ExpectedResult expected_texture_overload(ast::builtin::test::ValidTextureOverloa
|
||||||
return R"(textureGather(Texture_Sampler, vec4(1.0f, 2.0f, 3.0f, float(4u)), 5.0f))";
|
return R"(textureGather(Texture_Sampler, vec4(1.0f, 2.0f, 3.0f, float(4u)), 5.0f))";
|
||||||
case ValidTextureOverload::kNumLayers2dArray:
|
case ValidTextureOverload::kNumLayers2dArray:
|
||||||
case ValidTextureOverload::kNumLayersDepth2dArray:
|
case ValidTextureOverload::kNumLayersDepth2dArray:
|
||||||
case ValidTextureOverload::kNumLayersCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersDepthCubeArray:
|
|
||||||
return {"textureSize"};
|
return {"textureSize"};
|
||||||
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
||||||
return {"imageSize"};
|
return {"imageSize"};
|
||||||
|
|
|
@ -170,8 +170,6 @@ ExpectedResult expected_texture_overload(ast::builtin::test::ValidTextureOverloa
|
||||||
return R"(tint_symbol.GatherCmp(tint_symbol_1, float4(1.0f, 2.0f, 3.0f, float(4u)), 5.0f))";
|
return R"(tint_symbol.GatherCmp(tint_symbol_1, float4(1.0f, 2.0f, 3.0f, float(4u)), 5.0f))";
|
||||||
case ValidTextureOverload::kNumLayers2dArray:
|
case ValidTextureOverload::kNumLayers2dArray:
|
||||||
case ValidTextureOverload::kNumLayersDepth2dArray:
|
case ValidTextureOverload::kNumLayersDepth2dArray:
|
||||||
case ValidTextureOverload::kNumLayersCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersDepthCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
||||||
return {
|
return {
|
||||||
R"(int3 tint_tmp;
|
R"(int3 tint_tmp;
|
||||||
|
|
|
@ -90,9 +90,7 @@ std::string expected_texture_overload(ast::builtin::test::ValidTextureOverload o
|
||||||
case ValidTextureOverload::kGatherCompareDepthCubeArrayF32:
|
case ValidTextureOverload::kGatherCompareDepthCubeArrayF32:
|
||||||
return R"(Texture.gather_compare(Sampler, float3(1.0f, 2.0f, 3.0f), 4u, 5.0f))";
|
return R"(Texture.gather_compare(Sampler, float3(1.0f, 2.0f, 3.0f), 4u, 5.0f))";
|
||||||
case ValidTextureOverload::kNumLayers2dArray:
|
case ValidTextureOverload::kNumLayers2dArray:
|
||||||
case ValidTextureOverload::kNumLayersCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersDepth2dArray:
|
case ValidTextureOverload::kNumLayersDepth2dArray:
|
||||||
case ValidTextureOverload::kNumLayersDepthCubeArray:
|
|
||||||
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
||||||
return R"(Texture.get_array_size())";
|
return R"(Texture.get_array_size())";
|
||||||
case ValidTextureOverload::kNumLevels2d:
|
case ValidTextureOverload::kNumLevels2d:
|
||||||
|
|
|
@ -1131,29 +1131,6 @@ OpCapability SampledCubeArray
|
||||||
)",
|
)",
|
||||||
R"(
|
R"(
|
||||||
OpCapability ImageQuery
|
OpCapability ImageQuery
|
||||||
)"};
|
|
||||||
case ValidTextureOverload::kNumLayersCubeArray:
|
|
||||||
return {R"(
|
|
||||||
%4 = OpTypeFloat 32
|
|
||||||
%3 = OpTypeImage %4 Cube 0 1 0 1 Unknown
|
|
||||||
%2 = OpTypePointer UniformConstant %3
|
|
||||||
%1 = OpVariable %2 UniformConstant
|
|
||||||
%7 = OpTypeSampler
|
|
||||||
%6 = OpTypePointer UniformConstant %7
|
|
||||||
%5 = OpVariable %6 UniformConstant
|
|
||||||
%9 = OpTypeInt 32 0
|
|
||||||
%11 = OpTypeVector %9 3
|
|
||||||
%13 = OpTypeInt 32 1
|
|
||||||
%14 = OpConstant %13 0
|
|
||||||
)",
|
|
||||||
R"(
|
|
||||||
%12 = OpLoad %3 %1
|
|
||||||
%10 = OpImageQuerySizeLod %11 %12 %14
|
|
||||||
%8 = OpCompositeExtract %9 %10 2
|
|
||||||
)",
|
|
||||||
R"(
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
)"};
|
)"};
|
||||||
case ValidTextureOverload::kNumLayersDepth2dArray:
|
case ValidTextureOverload::kNumLayersDepth2dArray:
|
||||||
return {R"(
|
return {R"(
|
||||||
|
@ -1176,29 +1153,6 @@ OpCapability ImageQuery
|
||||||
)",
|
)",
|
||||||
R"(
|
R"(
|
||||||
OpCapability ImageQuery
|
OpCapability ImageQuery
|
||||||
)"};
|
|
||||||
case ValidTextureOverload::kNumLayersDepthCubeArray:
|
|
||||||
return {R"(
|
|
||||||
%4 = OpTypeFloat 32
|
|
||||||
%3 = OpTypeImage %4 Cube 0 1 0 1 Unknown
|
|
||||||
%2 = OpTypePointer UniformConstant %3
|
|
||||||
%1 = OpVariable %2 UniformConstant
|
|
||||||
%7 = OpTypeSampler
|
|
||||||
%6 = OpTypePointer UniformConstant %7
|
|
||||||
%5 = OpVariable %6 UniformConstant
|
|
||||||
%9 = OpTypeInt 32 0
|
|
||||||
%11 = OpTypeVector %9 3
|
|
||||||
%13 = OpTypeInt 32 1
|
|
||||||
%14 = OpConstant %13 0
|
|
||||||
)",
|
|
||||||
R"(
|
|
||||||
%12 = OpLoad %3 %1
|
|
||||||
%10 = OpImageQuerySizeLod %11 %12 %14
|
|
||||||
%8 = OpCompositeExtract %9 %10 2
|
|
||||||
)",
|
|
||||||
R"(
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
)"};
|
)"};
|
||||||
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
case ValidTextureOverload::kNumLayersStorageWO2dArray:
|
||||||
return {R"(
|
return {R"(
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_cube_array<f32>;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_cube_array<f32>) -> u32
|
|
||||||
fn textureNumLayers_34cefa() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<float4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<float4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_34cefa(texturecube_array<float, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texturecube_array<float, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_34cefa(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texturecube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texturecube_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_34cefa(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texturecube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_34cefa(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_34cefa "textureNumLayers_34cefa"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_34cefa = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%20 = OpLoad %11 %arg_0
|
|
||||||
%18 = OpImageQuerySizeLod %v3uint %20 %int_0
|
|
||||||
%16 = OpCompositeExtract %uint %18 2
|
|
||||||
OpStore %res %16
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_34cefa
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_34cefa
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_34cefa
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_cube_array<f32>;
|
|
||||||
|
|
||||||
fn textureNumLayers_34cefa() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_cube_array;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_depth_cube_array) -> u32
|
|
||||||
fn textureNumLayers_48ef47() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_48ef47(depthcube_array<float, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depthcube_array<float, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_48ef47(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depthcube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depthcube_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_48ef47(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depthcube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_48ef47(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_48ef47 "textureNumLayers_48ef47"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_48ef47 = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%20 = OpLoad %11 %arg_0
|
|
||||||
%18 = OpImageQuerySizeLod %v3uint %20 %int_0
|
|
||||||
%16 = OpCompositeExtract %uint %18 2
|
|
||||||
OpStore %res %16
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_48ef47
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_48ef47
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_48ef47
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
|
||||||
|
|
||||||
fn textureNumLayers_48ef47() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_cube_array<i32>;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_cube_array<i32>) -> u32
|
|
||||||
fn textureNumLayers_6b4321() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<int4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<int4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp isamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'isamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp isamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp isamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'isamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_6b4321(texturecube_array<int, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texturecube_array<int, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_6b4321(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texturecube_array<int, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texturecube_array<int, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_6b4321(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texturecube_array<int, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_6b4321(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_6b4321 "textureNumLayers_6b4321"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%11 = OpTypeImage %int Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%13 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_6b4321 = OpFunction %void None %13
|
|
||||||
%16 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%21 = OpLoad %11 %arg_0
|
|
||||||
%19 = OpImageQuerySizeLod %v3uint %21 %int_0
|
|
||||||
%17 = OpCompositeExtract %uint %19 2
|
|
||||||
OpStore %res %17
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_6b4321
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %13
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %13
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_6b4321
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %13
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_6b4321
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_cube_array<i32>;
|
|
||||||
|
|
||||||
fn textureNumLayers_6b4321() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_cube_array<u32>;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_cube_array<u32>) -> u32
|
|
||||||
fn textureNumLayers_c1eca9() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<uint4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<uint4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp usamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'usamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp usamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp usamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'usamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_c1eca9(texturecube_array<uint, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texturecube_array<uint, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_c1eca9(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texturecube_array<uint, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texturecube_array<uint, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_c1eca9(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texturecube_array<uint, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_c1eca9(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_c1eca9 "textureNumLayers_c1eca9"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%11 = OpTypeImage %uint Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%13 = OpTypeFunction %void
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_c1eca9 = OpFunction %void None %13
|
|
||||||
%16 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%20 = OpLoad %11 %arg_0
|
|
||||||
%18 = OpImageQuerySizeLod %v3uint %20 %int_0
|
|
||||||
%17 = OpCompositeExtract %uint %18 2
|
|
||||||
OpStore %res %17
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_c1eca9
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %13
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %13
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_c1eca9
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %13
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_c1eca9
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_cube_array<u32>;
|
|
||||||
|
|
||||||
fn textureNumLayers_c1eca9() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_cube_array<f32>;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_cube_array<f32>) -> u32
|
|
||||||
fn textureNumLayers_34cefa() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<float4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<float4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_34cefa() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_34cefa(texturecube_array<float, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texturecube_array<float, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_34cefa(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texturecube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texturecube_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_34cefa(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texturecube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_34cefa(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_34cefa "textureNumLayers_34cefa"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_34cefa = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%20 = OpLoad %11 %arg_0
|
|
||||||
%18 = OpImageQuerySizeLod %v3uint %20 %int_0
|
|
||||||
%16 = OpCompositeExtract %uint %18 2
|
|
||||||
OpStore %res %16
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_34cefa
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_34cefa
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_34cefa
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_cube_array<f32>;
|
|
||||||
|
|
||||||
fn textureNumLayers_34cefa() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_34cefa();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_cube_array;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_depth_cube_array) -> u32
|
|
||||||
fn textureNumLayers_48ef47() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_48ef47() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_48ef47(depthcube_array<float, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depthcube_array<float, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_48ef47(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depthcube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depthcube_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_48ef47(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depthcube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_48ef47(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_48ef47 "textureNumLayers_48ef47"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_48ef47 = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%20 = OpLoad %11 %arg_0
|
|
||||||
%18 = OpImageQuerySizeLod %v3uint %20 %int_0
|
|
||||||
%16 = OpCompositeExtract %uint %18 2
|
|
||||||
OpStore %res %16
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_48ef47
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_48ef47
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_48ef47
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
|
||||||
|
|
||||||
fn textureNumLayers_48ef47() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_48ef47();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_cube_array<i32>;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_cube_array<i32>) -> u32
|
|
||||||
fn textureNumLayers_6b4321() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<int4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<int4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp isamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'isamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp isamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'isamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp isamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_6b4321() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'isamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_6b4321(texturecube_array<int, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texturecube_array<int, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_6b4321(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texturecube_array<int, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texturecube_array<int, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_6b4321(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texturecube_array<int, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_6b4321(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_6b4321 "textureNumLayers_6b4321"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%11 = OpTypeImage %int Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%13 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_6b4321 = OpFunction %void None %13
|
|
||||||
%16 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%21 = OpLoad %11 %arg_0
|
|
||||||
%19 = OpImageQuerySizeLod %v3uint %21 %int_0
|
|
||||||
%17 = OpCompositeExtract %uint %19 2
|
|
||||||
OpStore %res %17
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_6b4321
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %13
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %13
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_6b4321
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %13
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_6b4321
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_cube_array<i32>;
|
|
||||||
|
|
||||||
fn textureNumLayers_6b4321() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_6b4321();
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
// Copyright 2022 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/src/cmd/gen
|
|
||||||
// using the template:
|
|
||||||
// test/tint/builtins/gen/gen.wgsl.tmpl
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_cube_array<u32>;
|
|
||||||
|
|
||||||
// fn textureNumLayers(texture: texture_cube_array<u32>) -> u32
|
|
||||||
fn textureNumLayers_c1eca9() {
|
|
||||||
var res: u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<uint4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
TextureCubeArray<uint4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
int3 tint_tmp;
|
|
||||||
arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z);
|
|
||||||
uint res = tint_tmp.z;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return (0.0f).xxxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp usamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return vec4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
gl_PointSize = 1.0;
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'usamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp usamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
|
|
||||||
uniform highp usamplerCubeArray arg_0_1;
|
|
||||||
void textureNumLayers_c1eca9() {
|
|
||||||
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:3: 'usamplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:3: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
void textureNumLayers_c1eca9(texturecube_array<uint, access::sample> tint_symbol_1) {
|
|
||||||
uint res = tint_symbol_1.get_array_size();
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texturecube_array<uint, access::sample> tint_symbol_2) {
|
|
||||||
textureNumLayers_c1eca9(tint_symbol_2);
|
|
||||||
return float4(0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texturecube_array<uint, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texturecube_array<uint, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
textureNumLayers_c1eca9(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texturecube_array<uint, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
textureNumLayers_c1eca9(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 40
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %textureNumLayers_c1eca9 "textureNumLayers_c1eca9"
|
|
||||||
OpName %res "res"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%11 = OpTypeImage %uint Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%13 = OpTypeFunction %void
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
||||||
%25 = OpConstantNull %uint
|
|
||||||
%26 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%textureNumLayers_c1eca9 = OpFunction %void None %13
|
|
||||||
%16 = OpLabel
|
|
||||||
%res = OpVariable %_ptr_Function_uint Function %25
|
|
||||||
%20 = OpLoad %11 %arg_0
|
|
||||||
%18 = OpImageQuerySizeLod %v3uint %20 %int_0
|
|
||||||
%17 = OpCompositeExtract %uint %18 2
|
|
||||||
OpStore %res %17
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %26
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %textureNumLayers_c1eca9
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %13
|
|
||||||
%31 = OpLabel
|
|
||||||
%32 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %32
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %13
|
|
||||||
%35 = OpLabel
|
|
||||||
%36 = OpFunctionCall %void %textureNumLayers_c1eca9
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %13
|
|
||||||
%38 = OpLabel
|
|
||||||
%39 = OpFunctionCall %void %textureNumLayers_c1eca9
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,21 +0,0 @@
|
||||||
@group(1) @binding(0) var arg_0 : texture_cube_array<u32>;
|
|
||||||
|
|
||||||
fn textureNumLayers_c1eca9() {
|
|
||||||
var res : u32 = textureNumLayers(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@vertex
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@fragment
|
|
||||||
fn fragment_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
||||||
|
|
||||||
@compute @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
textureNumLayers_c1eca9();
|
|
||||||
}
|
|
|
@ -1,121 +0,0 @@
|
||||||
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.0
|
|
||||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
||||||
; Bound: 100
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability Sampled1D
|
|
||||||
OpCapability Image1D
|
|
||||||
OpCapability StorageImageExtendedFormats
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical Simple
|
|
||||||
OpEntryPoint Fragment %1 "main"
|
|
||||||
OpExecutionMode %1 OriginUpperLeft
|
|
||||||
OpName %f1 "f1"
|
|
||||||
OpName %vf12 "vf12"
|
|
||||||
OpName %vf21 "vf21"
|
|
||||||
OpName %vf123 "vf123"
|
|
||||||
OpName %vf1234 "vf1234"
|
|
||||||
OpName %u1 "u1"
|
|
||||||
OpName %vu12 "vu12"
|
|
||||||
OpName %vu123 "vu123"
|
|
||||||
OpName %vu1234 "vu1234"
|
|
||||||
OpName %i1 "i1"
|
|
||||||
OpName %vi12 "vi12"
|
|
||||||
OpName %vi123 "vi123"
|
|
||||||
OpName %vi1234 "vi1234"
|
|
||||||
OpName %coords1 "coords1"
|
|
||||||
OpName %coords12 "coords12"
|
|
||||||
OpName %coords123 "coords123"
|
|
||||||
OpName %coords1234 "coords1234"
|
|
||||||
OpName %offsets2d "offsets2d"
|
|
||||||
OpName %u_offsets2d "u_offsets2d"
|
|
||||||
OpDecorate %10 DescriptorSet 0
|
|
||||||
OpDecorate %10 Binding 0
|
|
||||||
OpDecorate %20 DescriptorSet 2
|
|
||||||
OpDecorate %20 Binding 1
|
|
||||||
OpDecorate %30 DescriptorSet 0
|
|
||||||
OpDecorate %30 Binding 1
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%24 = OpTypeFunction %void
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%int_1 = OpConstant %int 1
|
|
||||||
%int_2 = OpConstant %int 2
|
|
||||||
%int_3 = OpConstant %int 3
|
|
||||||
%int_4 = OpConstant %int 4
|
|
||||||
%uint_0 = OpConstant %uint 0
|
|
||||||
%uint_1 = OpConstant %uint 1
|
|
||||||
%uint_2 = OpConstant %uint 2
|
|
||||||
%uint_3 = OpConstant %uint 3
|
|
||||||
%uint_4 = OpConstant %uint 4
|
|
||||||
%uint_100 = OpConstant %uint 100
|
|
||||||
%v2int = OpTypeVector %int 2
|
|
||||||
%v3int = OpTypeVector %int 3
|
|
||||||
%v4int = OpTypeVector %int 4
|
|
||||||
%v2uint = OpTypeVector %uint 2
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%v4uint = OpTypeVector %uint 4
|
|
||||||
%v2float = OpTypeVector %float 2
|
|
||||||
%v3float = OpTypeVector %float 3
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%49 = OpConstantNull %float
|
|
||||||
%float_0 = OpConstant %float 0
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%float_2 = OpConstant %float 2
|
|
||||||
%float_3 = OpConstant %float 3
|
|
||||||
%float_4 = OpConstant %float 4
|
|
||||||
%float_7 = OpConstant %float 7
|
|
||||||
%56 = OpConstantNull %v2float
|
|
||||||
%57 = OpConstantNull %v3float
|
|
||||||
%58 = OpConstantNull %v4float
|
|
||||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
|
||||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
|
||||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
|
||||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
|
||||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
|
||||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
|
||||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
|
||||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
|
||||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
|
||||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
|
||||||
%float_0_200000003 = OpConstant %float 0.200000003
|
|
||||||
%70 = OpTypeSampler
|
|
||||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
|
||||||
%72 = OpTypeImage %float Cube 0 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
|
||||||
%74 = OpTypeSampledImage %72
|
|
||||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
|
||||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
|
||||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
|
||||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
|
||||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
|
||||||
%1 = OpFunction %void None %24
|
|
||||||
%75 = OpLabel
|
|
||||||
%f1 = OpCopyObject %float %float_1
|
|
||||||
%vf12 = OpCopyObject %v2float %65
|
|
||||||
%vf21 = OpCopyObject %v2float %66
|
|
||||||
%vf123 = OpCopyObject %v3float %67
|
|
||||||
%vf1234 = OpCopyObject %v4float %68
|
|
||||||
%i1 = OpCopyObject %int %int_1
|
|
||||||
%vi12 = OpCopyObject %v2int %59
|
|
||||||
%vi123 = OpCopyObject %v3int %60
|
|
||||||
%vi1234 = OpCopyObject %v4int %61
|
|
||||||
%u1 = OpCopyObject %uint %uint_1
|
|
||||||
%vu12 = OpCopyObject %v2uint %62
|
|
||||||
%vu123 = OpCopyObject %v3uint %63
|
|
||||||
%vu1234 = OpCopyObject %v4uint %64
|
|
||||||
%coords1 = OpCopyObject %float %float_1
|
|
||||||
%coords12 = OpCopyObject %v2float %vf12
|
|
||||||
%coords123 = OpCopyObject %v3float %vf123
|
|
||||||
%coords1234 = OpCopyObject %v4float %vf1234
|
|
||||||
%76 = OpLoad %70 %10
|
|
||||||
%77 = OpLoad %72 %20
|
|
||||||
%78 = OpSampledImage %74 %77 %76
|
|
||||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray x_20_1;
|
|
||||||
void main_1() {
|
|
||||||
float f1 = 1.0f;
|
|
||||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
|
||||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
|
||||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
|
||||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
|
||||||
int i1 = 1;
|
|
||||||
ivec2 vi12 = ivec2(1, 2);
|
|
||||||
ivec3 vi123 = ivec3(1, 2, 3);
|
|
||||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
|
||||||
uint u1 = 1u;
|
|
||||||
uvec2 vu12 = uvec2(1u, 2u);
|
|
||||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
|
||||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
|
||||||
float coords1 = 1.0f;
|
|
||||||
vec2 coords12 = vf12;
|
|
||||||
vec3 coords123 = vf123;
|
|
||||||
vec4 coords1234 = vf1234;
|
|
||||||
ivec3 x_99 = ivec3(uvec3(uvec2(textureSize(x_20_1, i1).xy).xy, uint(textureSize(x_20_1, 0).z)));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
void tint_symbol() {
|
|
||||||
main_1();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
tint_symbol();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,121 +0,0 @@
|
||||||
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.0
|
|
||||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
||||||
; Bound: 100
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability Sampled1D
|
|
||||||
OpCapability Image1D
|
|
||||||
OpCapability StorageImageExtendedFormats
|
|
||||||
OpCapability ImageQuery
|
|
||||||
OpMemoryModel Logical Simple
|
|
||||||
OpEntryPoint Fragment %1 "main"
|
|
||||||
OpExecutionMode %1 OriginUpperLeft
|
|
||||||
OpName %f1 "f1"
|
|
||||||
OpName %vf12 "vf12"
|
|
||||||
OpName %vf21 "vf21"
|
|
||||||
OpName %vf123 "vf123"
|
|
||||||
OpName %vf1234 "vf1234"
|
|
||||||
OpName %u1 "u1"
|
|
||||||
OpName %vu12 "vu12"
|
|
||||||
OpName %vu123 "vu123"
|
|
||||||
OpName %vu1234 "vu1234"
|
|
||||||
OpName %i1 "i1"
|
|
||||||
OpName %vi12 "vi12"
|
|
||||||
OpName %vi123 "vi123"
|
|
||||||
OpName %vi1234 "vi1234"
|
|
||||||
OpName %coords1 "coords1"
|
|
||||||
OpName %coords12 "coords12"
|
|
||||||
OpName %coords123 "coords123"
|
|
||||||
OpName %coords1234 "coords1234"
|
|
||||||
OpName %offsets2d "offsets2d"
|
|
||||||
OpName %u_offsets2d "u_offsets2d"
|
|
||||||
OpDecorate %10 DescriptorSet 0
|
|
||||||
OpDecorate %10 Binding 0
|
|
||||||
OpDecorate %20 DescriptorSet 2
|
|
||||||
OpDecorate %20 Binding 1
|
|
||||||
OpDecorate %30 DescriptorSet 0
|
|
||||||
OpDecorate %30 Binding 1
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%24 = OpTypeFunction %void
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_0 = OpConstant %int 0
|
|
||||||
%int_1 = OpConstant %int 1
|
|
||||||
%int_2 = OpConstant %int 2
|
|
||||||
%int_3 = OpConstant %int 3
|
|
||||||
%int_4 = OpConstant %int 4
|
|
||||||
%uint_0 = OpConstant %uint 0
|
|
||||||
%uint_1 = OpConstant %uint 1
|
|
||||||
%uint_2 = OpConstant %uint 2
|
|
||||||
%uint_3 = OpConstant %uint 3
|
|
||||||
%uint_4 = OpConstant %uint 4
|
|
||||||
%uint_100 = OpConstant %uint 100
|
|
||||||
%v2int = OpTypeVector %int 2
|
|
||||||
%v3int = OpTypeVector %int 3
|
|
||||||
%v4int = OpTypeVector %int 4
|
|
||||||
%v2uint = OpTypeVector %uint 2
|
|
||||||
%v3uint = OpTypeVector %uint 3
|
|
||||||
%v4uint = OpTypeVector %uint 4
|
|
||||||
%v2float = OpTypeVector %float 2
|
|
||||||
%v3float = OpTypeVector %float 3
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%49 = OpConstantNull %float
|
|
||||||
%float_0 = OpConstant %float 0
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%float_2 = OpConstant %float 2
|
|
||||||
%float_3 = OpConstant %float 3
|
|
||||||
%float_4 = OpConstant %float 4
|
|
||||||
%float_7 = OpConstant %float 7
|
|
||||||
%56 = OpConstantNull %v2float
|
|
||||||
%57 = OpConstantNull %v3float
|
|
||||||
%58 = OpConstantNull %v4float
|
|
||||||
%59 = OpConstantComposite %v2int %int_1 %int_2
|
|
||||||
%60 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
|
||||||
%61 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
|
|
||||||
%62 = OpConstantComposite %v2uint %uint_1 %uint_2
|
|
||||||
%63 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
|
|
||||||
%64 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
|
|
||||||
%65 = OpConstantComposite %v2float %float_1 %float_2
|
|
||||||
%66 = OpConstantComposite %v2float %float_2 %float_1
|
|
||||||
%67 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
|
||||||
%68 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
|
||||||
%float_0_200000003 = OpConstant %float 0.200000003
|
|
||||||
%70 = OpTypeSampler
|
|
||||||
%_ptr_UniformConstant_70 = OpTypePointer UniformConstant %70
|
|
||||||
%72 = OpTypeImage %float Cube 1 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_72 = OpTypePointer UniformConstant %72
|
|
||||||
%74 = OpTypeSampledImage %72
|
|
||||||
%10 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
|
||||||
%20 = OpVariable %_ptr_UniformConstant_72 UniformConstant
|
|
||||||
%30 = OpVariable %_ptr_UniformConstant_70 UniformConstant
|
|
||||||
%offsets2d = OpConstantComposite %v2int %int_3 %int_4
|
|
||||||
%u_offsets2d = OpConstantComposite %v2uint %uint_3 %uint_4
|
|
||||||
%1 = OpFunction %void None %24
|
|
||||||
%75 = OpLabel
|
|
||||||
%f1 = OpCopyObject %float %float_1
|
|
||||||
%vf12 = OpCopyObject %v2float %65
|
|
||||||
%vf21 = OpCopyObject %v2float %66
|
|
||||||
%vf123 = OpCopyObject %v3float %67
|
|
||||||
%vf1234 = OpCopyObject %v4float %68
|
|
||||||
%i1 = OpCopyObject %int %int_1
|
|
||||||
%vi12 = OpCopyObject %v2int %59
|
|
||||||
%vi123 = OpCopyObject %v3int %60
|
|
||||||
%vi1234 = OpCopyObject %v4int %61
|
|
||||||
%u1 = OpCopyObject %uint %uint_1
|
|
||||||
%vu12 = OpCopyObject %v2uint %62
|
|
||||||
%vu123 = OpCopyObject %v3uint %63
|
|
||||||
%vu1234 = OpCopyObject %v4uint %64
|
|
||||||
%coords1 = OpCopyObject %float %float_1
|
|
||||||
%coords12 = OpCopyObject %v2float %vf12
|
|
||||||
%coords123 = OpCopyObject %v3float %vf123
|
|
||||||
%coords1234 = OpCopyObject %v4float %vf1234
|
|
||||||
%76 = OpLoad %70 %10
|
|
||||||
%77 = OpLoad %72 %20
|
|
||||||
%78 = OpSampledImage %74 %77 %76
|
|
||||||
%99 = OpImageQuerySizeLod %v3int %77 %i1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
uniform highp samplerCubeArray x_20_1;
|
|
||||||
void main_1() {
|
|
||||||
float f1 = 1.0f;
|
|
||||||
vec2 vf12 = vec2(1.0f, 2.0f);
|
|
||||||
vec2 vf21 = vec2(2.0f, 1.0f);
|
|
||||||
vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
|
|
||||||
vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
|
|
||||||
int i1 = 1;
|
|
||||||
ivec2 vi12 = ivec2(1, 2);
|
|
||||||
ivec3 vi123 = ivec3(1, 2, 3);
|
|
||||||
ivec4 vi1234 = ivec4(1, 2, 3, 4);
|
|
||||||
uint u1 = 1u;
|
|
||||||
uvec2 vu12 = uvec2(1u, 2u);
|
|
||||||
uvec3 vu123 = uvec3(1u, 2u, 3u);
|
|
||||||
uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
|
|
||||||
float coords1 = 1.0f;
|
|
||||||
vec2 coords12 = vf12;
|
|
||||||
vec3 coords123 = vf123;
|
|
||||||
vec4 coords1234 = vf1234;
|
|
||||||
ivec3 x_99 = ivec3(uvec3(uvec2(textureSize(x_20_1, i1).xy).xy, uint(textureSize(x_20_1, 0).z)));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
void tint_symbol() {
|
|
||||||
main_1();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
tint_symbol();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Error parsing GLSL shader:
|
|
||||||
ERROR: 0:4: 'samplerCubeArray' : Reserved word.
|
|
||||||
ERROR: 0:4: '' : compilation terminated
|
|
||||||
ERROR: 2 compilation errors. No code generated.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue