mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
intrinsics: Remove ignore()
This has been deprecated since M97. Fixed: tint:1214 Change-Id: I970898f2ae8baf1916e2f8d43230d8b724641730 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78785 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:
committed by
Tint LUCI CQ
parent
e1159c7180
commit
b80e2f3b6e
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: texture_depth_multisampled_2d;
|
||||
|
||||
// fn ignore(texture_depth_multisampled_2d)
|
||||
fn ignore_2a6ac2() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_2a6ac2();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
||||
|
||||
fn ignore_2a6ac2() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_2a6ac2();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/2a6ac2.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
||||
|
||||
fn ignore_2a6ac2() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_2a6ac2();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/2a6ac2.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
||||
|
||||
fn ignore_2a6ac2() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_2a6ac2();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/2a6ac2.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
Texture2DMS<float4> arg_0 : register(t0, space1);
|
||||
|
||||
void ignore_2a6ac2() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_2a6ac2();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_2a6ac2();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_2a6ac2();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_2a6ac2(depth2d_ms<float, access::read> tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(depth2d_ms<float, access::read> tint_symbol_2) {
|
||||
ignore_2a6ac2(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(depth2d_ms<float, access::read> 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(depth2d_ms<float, access::read> tint_symbol_4 [[texture(0)]]) {
|
||||
ignore_2a6ac2(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(depth2d_ms<float, access::read> tint_symbol_5 [[texture(0)]]) {
|
||||
ignore_2a6ac2(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_2a6ac2 "ignore_2a6ac2"
|
||||
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 2D 1 0 1 1 Unknown
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_2a6ac2 = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_2a6ac2
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_2a6ac2
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_2a6ac2
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
||||
|
||||
fn ignore_2a6ac2() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_2a6ac2();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_2a6ac2();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: sampler;
|
||||
|
||||
// fn ignore(sampler)
|
||||
fn ignore_5016e5() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5016e5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler;
|
||||
|
||||
fn ignore_5016e5() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5016e5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/5016e5.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler;
|
||||
|
||||
fn ignore_5016e5() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5016e5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/5016e5.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler;
|
||||
|
||||
fn ignore_5016e5() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5016e5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/5016e5.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
SamplerState arg_0 : register(s0, space1);
|
||||
|
||||
void ignore_5016e5() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_5016e5();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_5016e5();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_5016e5();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_5016e5(sampler tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(sampler tint_symbol_2) {
|
||||
ignore_5016e5(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(sampler tint_symbol_3 [[sampler(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(sampler tint_symbol_4 [[sampler(0)]]) {
|
||||
ignore_5016e5(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(sampler tint_symbol_5 [[sampler(0)]]) {
|
||||
ignore_5016e5(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_5016e5 "ignore_5016e5"
|
||||
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 = OpTypeSampler
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_5016e5 = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_5016e5
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_5016e5
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_5016e5
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler;
|
||||
|
||||
fn ignore_5016e5() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5016e5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5016e5();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: texture_depth_cube;
|
||||
|
||||
// fn ignore(texture_depth_cube)
|
||||
fn ignore_509355() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_509355();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
||||
|
||||
fn ignore_509355() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_509355();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/509355.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
||||
|
||||
fn ignore_509355() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_509355();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/509355.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
||||
|
||||
fn ignore_509355() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_509355();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/509355.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
TextureCube arg_0 : register(t0, space1);
|
||||
|
||||
void ignore_509355() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_509355();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_509355();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_509355();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_509355(depthcube<float, access::sample> tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(depthcube<float, access::sample> tint_symbol_2) {
|
||||
ignore_509355(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(depthcube<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<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
||||
ignore_509355(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(depthcube<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
||||
ignore_509355(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_509355 "ignore_509355"
|
||||
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 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_509355 = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_509355
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_509355
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_509355
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
||||
|
||||
fn ignore_509355() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_509355();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_509355();
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn ignore(i32)
|
||||
fn ignore_51aeb7() {
|
||||
ignore(1);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_51aeb7();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_51aeb7();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_51aeb7();
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1);
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_51aeb7() {
|
||||
1;
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
ignore_51aeb7();
|
||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
void main() {
|
||||
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;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_51aeb7() {
|
||||
1;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
ignore_51aeb7();
|
||||
}
|
||||
|
||||
void main() {
|
||||
fragment_main();
|
||||
return;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_51aeb7() {
|
||||
1;
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
ignore_51aeb7();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
compute_main();
|
||||
return;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1);
|
||||
^^^^^^
|
||||
|
||||
void ignore_51aeb7() {
|
||||
1;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_51aeb7();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_51aeb7();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_51aeb7();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_51aeb7() {
|
||||
(void) 1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_51aeb7();
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
float4 const inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = {};
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
ignore_51aeb7();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
ignore_51aeb7();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 30
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_51aeb7 "ignore_51aeb7"
|
||||
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
|
||||
%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
|
||||
%void = OpTypeVoid
|
||||
%9 = OpTypeFunction %void
|
||||
%int = OpTypeInt 32 1
|
||||
%int_1 = OpConstant %int 1
|
||||
%16 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_51aeb7 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %16
|
||||
%18 = OpLabel
|
||||
%19 = OpFunctionCall %void %ignore_51aeb7
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%21 = OpLabel
|
||||
%22 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %22
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %ignore_51aeb7
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %void %ignore_51aeb7
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,23 +0,0 @@
|
||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1);
|
||||
^^^^^^
|
||||
|
||||
fn ignore_51aeb7() {
|
||||
ignore(1);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_51aeb7();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_51aeb7();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_51aeb7();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: texture_external;
|
||||
|
||||
// fn ignore(texture_external)
|
||||
fn ignore_5c9edf() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5c9edf();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_external;
|
||||
|
||||
fn ignore_5c9edf() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5c9edf();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/5c9edf.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_external;
|
||||
|
||||
fn ignore_5c9edf() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5c9edf();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/5c9edf.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_external;
|
||||
|
||||
fn ignore_5c9edf() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5c9edf();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/5c9edf.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
Texture2D<float4> arg_0 : register(t0, space1);
|
||||
|
||||
void ignore_5c9edf() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_5c9edf();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_5c9edf();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_5c9edf();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_5c9edf(texture2d<float, access::sample> tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(texture2d<float, access::sample> tint_symbol_2) {
|
||||
ignore_5c9edf(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(texture2d<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(texture2d<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
||||
ignore_5c9edf(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(texture2d<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
||||
ignore_5c9edf(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_5c9edf "ignore_5c9edf"
|
||||
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 2D 0 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_5c9edf = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_5c9edf
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_5c9edf
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_5c9edf
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_external;
|
||||
|
||||
fn ignore_5c9edf() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_5c9edf();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_5c9edf();
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn ignore(u32)
|
||||
fn ignore_6698df() {
|
||||
ignore(1u);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_6698df();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_6698df();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_6698df();
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1u);
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_6698df() {
|
||||
1u;
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
ignore_6698df();
|
||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
void main() {
|
||||
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;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_6698df() {
|
||||
1u;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
ignore_6698df();
|
||||
}
|
||||
|
||||
void main() {
|
||||
fragment_main();
|
||||
return;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_6698df() {
|
||||
1u;
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
ignore_6698df();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
compute_main();
|
||||
return;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1u);
|
||||
^^^^^^
|
||||
|
||||
void ignore_6698df() {
|
||||
1u;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_6698df();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_6698df();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_6698df();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1u);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_6698df() {
|
||||
(void) 1u;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_6698df();
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
float4 const inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = {};
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
ignore_6698df();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
ignore_6698df();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1u);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 30
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_6698df "ignore_6698df"
|
||||
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
|
||||
%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
|
||||
%void = OpTypeVoid
|
||||
%9 = OpTypeFunction %void
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%16 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_6698df = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %16
|
||||
%18 = OpLabel
|
||||
%19 = OpFunctionCall %void %ignore_6698df
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%21 = OpLabel
|
||||
%22 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %22
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %ignore_6698df
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %void %ignore_6698df
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,23 +0,0 @@
|
||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1u);
|
||||
^^^^^^
|
||||
|
||||
fn ignore_6698df() {
|
||||
ignore(1u);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_6698df();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_6698df();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_6698df();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: texture_depth_cube_array;
|
||||
|
||||
// fn ignore(texture_depth_cube_array)
|
||||
fn ignore_ad88be() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_ad88be();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
||||
|
||||
fn ignore_ad88be() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_ad88be();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/ad88be.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
||||
|
||||
fn ignore_ad88be() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_ad88be();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/ad88be.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
||||
|
||||
fn ignore_ad88be() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_ad88be();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/ad88be.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
TextureCubeArray arg_0 : register(t0, space1);
|
||||
|
||||
void ignore_ad88be() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_ad88be();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_ad88be();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_ad88be();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_ad88be(depthcube_array<float, access::sample> tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(depthcube_array<float, access::sample> tint_symbol_2) {
|
||||
ignore_ad88be(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
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)]]) {
|
||||
ignore_ad88be(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(depthcube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
||||
ignore_ad88be(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability SampledCubeArray
|
||||
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 %ignore_ad88be "ignore_ad88be"
|
||||
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 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_ad88be = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_ad88be
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_ad88be
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_ad88be
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
||||
|
||||
fn ignore_ad88be() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_ad88be();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_ad88be();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: sampler_comparison;
|
||||
|
||||
// fn ignore(sampler_comparison)
|
||||
fn ignore_b469af() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_b469af();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
||||
|
||||
fn ignore_b469af() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_b469af();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/b469af.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
||||
|
||||
fn ignore_b469af() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_b469af();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/b469af.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
||||
|
||||
fn ignore_b469af() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_b469af();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/b469af.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
SamplerComparisonState arg_0 : register(s0, space1);
|
||||
|
||||
void ignore_b469af() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_b469af();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_b469af();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_b469af();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_b469af(sampler tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(sampler tint_symbol_2) {
|
||||
ignore_b469af(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(sampler tint_symbol_3 [[sampler(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(sampler tint_symbol_4 [[sampler(0)]]) {
|
||||
ignore_b469af(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(sampler tint_symbol_5 [[sampler(0)]]) {
|
||||
ignore_b469af(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_b469af "ignore_b469af"
|
||||
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 = OpTypeSampler
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_b469af = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_b469af
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_b469af
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_b469af
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
||||
|
||||
fn ignore_b469af() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_b469af();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_b469af();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
|
||||
|
||||
// fn ignore(texture_depth_2d_array)
|
||||
fn ignore_c8a0ee() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_c8a0ee();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
||||
|
||||
fn ignore_c8a0ee() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_c8a0ee();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/c8a0ee.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
||||
|
||||
fn ignore_c8a0ee() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_c8a0ee();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/c8a0ee.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
||||
|
||||
fn ignore_c8a0ee() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_c8a0ee();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/c8a0ee.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
Texture2DArray arg_0 : register(t0, space1);
|
||||
|
||||
void ignore_c8a0ee() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_c8a0ee();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_c8a0ee();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_c8a0ee();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_c8a0ee(depth2d_array<float, access::sample> tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(depth2d_array<float, access::sample> tint_symbol_2) {
|
||||
ignore_c8a0ee(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(depth2d_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(depth2d_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
||||
ignore_c8a0ee(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(depth2d_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
||||
ignore_c8a0ee(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_c8a0ee "ignore_c8a0ee"
|
||||
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 2D 1 1 0 1 Unknown
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_c8a0ee = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_c8a0ee
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_c8a0ee
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_c8a0ee
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
||||
|
||||
fn ignore_c8a0ee() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_c8a0ee();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_c8a0ee();
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn ignore(f32)
|
||||
fn ignore_d91a2f() {
|
||||
ignore(1.0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_d91a2f();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_d91a2f();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_d91a2f();
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1.0);
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_d91a2f() {
|
||||
1.0f;
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
ignore_d91a2f();
|
||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
void main() {
|
||||
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;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_d91a2f() {
|
||||
1.0f;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
ignore_d91a2f();
|
||||
}
|
||||
|
||||
void main() {
|
||||
fragment_main();
|
||||
return;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_d91a2f() {
|
||||
1.0f;
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
ignore_d91a2f();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
compute_main();
|
||||
return;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1.0);
|
||||
^^^^^^
|
||||
|
||||
void ignore_d91a2f() {
|
||||
1.0f;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_d91a2f();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_d91a2f();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_d91a2f();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1.0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_d91a2f() {
|
||||
(void) 1.0f;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_d91a2f();
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
float4 const inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = {};
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
ignore_d91a2f();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
ignore_d91a2f();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1.0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 28
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_d91a2f "ignore_d91a2f"
|
||||
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
|
||||
%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
|
||||
%void = OpTypeVoid
|
||||
%9 = OpTypeFunction %void
|
||||
%float_1 = OpConstant %float 1
|
||||
%15 = OpTypeFunction %v4float
|
||||
%ignore_d91a2f = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %15
|
||||
%17 = OpLabel
|
||||
%18 = OpFunctionCall %void %ignore_d91a2f
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%20 = OpLabel
|
||||
%21 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %21
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%23 = OpLabel
|
||||
%24 = OpFunctionCall %void %ignore_d91a2f
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_d91a2f
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,23 +0,0 @@
|
||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(1.0);
|
||||
^^^^^^
|
||||
|
||||
fn ignore_d91a2f() {
|
||||
ignore(1.0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_d91a2f();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_d91a2f();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_d91a2f();
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@group(1) @binding(0) var arg_0: texture_depth_2d;
|
||||
|
||||
// fn ignore(texture_depth_2d)
|
||||
fn ignore_e0187b() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_e0187b();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
||||
|
||||
fn ignore_e0187b() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_e0187b();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/e0187b.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
||||
|
||||
fn ignore_e0187b() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_e0187b();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/e0187b.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
||||
|
||||
fn ignore_e0187b() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_e0187b();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
Failed to generate: intrinsics/gen/ignore/e0187b.wgsl:29:10 error: unknown identifier: 'arg_0'
|
||||
ignore(arg_0);
|
||||
^^^^^
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
Texture2D arg_0 : register(t0, space1);
|
||||
|
||||
void ignore_e0187b() {
|
||||
arg_0;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_e0187b();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_e0187b();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_e0187b();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_e0187b(depth2d<float, access::sample> tint_symbol_1) {
|
||||
(void) tint_symbol_1;
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(depth2d<float, access::sample> tint_symbol_2) {
|
||||
ignore_e0187b(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main(depth2d<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(depth2d<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
||||
ignore_e0187b(tint_symbol_4);
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main(depth2d<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
||||
ignore_e0187b(tint_symbol_5);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 31
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_e0187b "ignore_e0187b"
|
||||
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 2D 1 0 0 1 Unknown
|
||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%17 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_e0187b = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %17
|
||||
%19 = OpLabel
|
||||
%20 = OpFunctionCall %void %ignore_e0187b
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %12
|
||||
%22 = OpLabel
|
||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %23
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %12
|
||||
%26 = OpLabel
|
||||
%27 = OpFunctionCall %void %ignore_e0187b
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %12
|
||||
%29 = OpLabel
|
||||
%30 = OpFunctionCall %void %ignore_e0187b
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
||||
ignore(arg_0);
|
||||
^^^^^^
|
||||
|
||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
||||
|
||||
fn ignore_e0187b() {
|
||||
ignore(arg_0);
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_e0187b();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_e0187b();
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
// Copyright 2021 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/intrinsic-gen
|
||||
// using the template:
|
||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
||||
// and the intrinsic defintion file:
|
||||
// src/intrinsics.def
|
||||
//
|
||||
// Do not modify this file directly
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn ignore(bool)
|
||||
fn ignore_f414a6() {
|
||||
ignore(bool());
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_f414a6();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_f414a6();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_f414a6();
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(bool());
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_f414a6() {
|
||||
false;
|
||||
}
|
||||
|
||||
vec4 vertex_main() {
|
||||
ignore_f414a6();
|
||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
void main() {
|
||||
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;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_f414a6() {
|
||||
false;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
ignore_f414a6();
|
||||
}
|
||||
|
||||
void main() {
|
||||
fragment_main();
|
||||
return;
|
||||
}
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
void ignore_f414a6() {
|
||||
false;
|
||||
}
|
||||
|
||||
void compute_main() {
|
||||
ignore_f414a6();
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
compute_main();
|
||||
return;
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(bool());
|
||||
^^^^^^
|
||||
|
||||
void ignore_f414a6() {
|
||||
false;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_f414a6();
|
||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
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() {
|
||||
ignore_f414a6();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
ignore_f414a6();
|
||||
return;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(bool());
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void ignore_f414a6() {
|
||||
(void) bool();
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
ignore_f414a6();
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
float4 const inner_result = vertex_main_inner();
|
||||
tint_symbol wrapper_result = {};
|
||||
wrapper_result.value = inner_result;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
fragment void fragment_main() {
|
||||
ignore_f414a6();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
ignore_f414a6();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(bool());
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 30
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
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 %ignore_f414a6 "ignore_f414a6"
|
||||
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
|
||||
%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
|
||||
%void = OpTypeVoid
|
||||
%9 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%15 = OpConstantNull %bool
|
||||
%16 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%ignore_f414a6 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %16
|
||||
%18 = OpLabel
|
||||
%19 = OpFunctionCall %void %ignore_f414a6
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%21 = OpLabel
|
||||
%22 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %22
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %ignore_f414a6
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %void %ignore_f414a6
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,23 +0,0 @@
|
||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
||||
ignore(bool());
|
||||
^^^^^^
|
||||
|
||||
fn ignore_f414a6() {
|
||||
ignore(bool());
|
||||
}
|
||||
|
||||
@stage(vertex)
|
||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
||||
ignore_f414a6();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
fn fragment_main() {
|
||||
ignore_f414a6();
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn compute_main() {
|
||||
ignore_f414a6();
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
fn f(a: i32, b: i32, c: i32) -> i32 {
|
||||
return a * b + c;
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(f(1, 2, 3));
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
||||
ignore(f(1, 2, 3));
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
int f(int a, int b, int c) {
|
||||
return ((a * b) + c);
|
||||
}
|
||||
|
||||
void tint_symbol() {
|
||||
f(1, 2, 3);
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
||||
ignore(f(1, 2, 3));
|
||||
^^^^^^
|
||||
|
||||
int f(int a, int b, int c) {
|
||||
return ((a * b) + c);
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
f(1, 2, 3);
|
||||
return;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
||||
ignore(f(1, 2, 3));
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
int f(int a, int b, int c) {
|
||||
return as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(a) * as_type<uint>(b)))) + as_type<uint>(c)));
|
||||
}
|
||||
|
||||
kernel void tint_symbol() {
|
||||
(void) f(1, 2, 3);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
||||
ignore(f(1, 2, 3));
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 19
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %main "main"
|
||||
OpExecutionMode %main LocalSize 1 1 1
|
||||
OpName %f "f"
|
||||
OpName %a "a"
|
||||
OpName %b "b"
|
||||
OpName %c "c"
|
||||
OpName %main "main"
|
||||
%int = OpTypeInt 32 1
|
||||
%1 = OpTypeFunction %int %int %int %int
|
||||
%void = OpTypeVoid
|
||||
%10 = OpTypeFunction %void
|
||||
%int_1 = OpConstant %int 1
|
||||
%int_2 = OpConstant %int 2
|
||||
%int_3 = OpConstant %int 3
|
||||
%f = OpFunction %int None %1
|
||||
%a = OpFunctionParameter %int
|
||||
%b = OpFunctionParameter %int
|
||||
%c = OpFunctionParameter %int
|
||||
%7 = OpLabel
|
||||
%8 = OpIMul %int %a %b
|
||||
%9 = OpIAdd %int %8 %c
|
||||
OpReturnValue %9
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %10
|
||||
%13 = OpLabel
|
||||
%15 = OpFunctionCall %int %f %int_1 %int_2 %int_3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,12 +0,0 @@
|
||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
||||
ignore(f(1, 2, 3));
|
||||
^^^^^^
|
||||
|
||||
fn f(a : i32, b : i32, c : i32) -> i32 {
|
||||
return ((a * b) + c);
|
||||
}
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(f(1, 2, 3));
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
struct S {
|
||||
arr : array<i32>;
|
||||
};
|
||||
|
||||
@binding(0) @group(0) var<storage, read_write> s : S;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(s.arr);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s.arr);
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
layout(binding = 0) buffer S_1 {
|
||||
int arr[];
|
||||
} s;
|
||||
void tint_symbol() {
|
||||
s.arr;
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s.arr);
|
||||
^^^^^^
|
||||
|
||||
RWByteAddressBuffer s : register(u0, space0);
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
s;
|
||||
return;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s.arr);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct S {
|
||||
/* 0x0000 */ int arr[1];
|
||||
};
|
||||
|
||||
kernel void tint_symbol(device S* tint_symbol_1 [[buffer(0)]]) {
|
||||
(void) (*(tint_symbol_1)).arr;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s.arr);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 15
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %main "main"
|
||||
OpExecutionMode %main LocalSize 1 1 1
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "arr"
|
||||
OpName %s "s"
|
||||
OpName %main "main"
|
||||
OpDecorate %S Block
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %_runtimearr_int ArrayStride 4
|
||||
OpDecorate %s Binding 0
|
||||
OpDecorate %s DescriptorSet 0
|
||||
%int = OpTypeInt 32 1
|
||||
%_runtimearr_int = OpTypeRuntimeArray %int
|
||||
%S = OpTypeStruct %_runtimearr_int
|
||||
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||||
%s = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%6 = OpTypeFunction %void
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_StorageBuffer__runtimearr_int = OpTypePointer StorageBuffer %_runtimearr_int
|
||||
%main = OpFunction %void None %6
|
||||
%9 = OpLabel
|
||||
%14 = OpAccessChain %_ptr_StorageBuffer__runtimearr_int %s %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,14 +0,0 @@
|
||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s.arr);
|
||||
^^^^^^
|
||||
|
||||
struct S {
|
||||
arr : array<i32>;
|
||||
}
|
||||
|
||||
@binding(0) @group(0) var<storage, read_write> s : S;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(s.arr);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
struct S {
|
||||
i : i32;
|
||||
};
|
||||
|
||||
@binding(0) @group(0) var<storage, read_write> s : S;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(s);
|
||||
ignore(s.i);
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
intrinsics/ignore/storage_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/storage_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(s.i);
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
struct S {
|
||||
int i;
|
||||
};
|
||||
|
||||
layout(binding = 0) buffer S_1 {
|
||||
int i;
|
||||
} s;
|
||||
void tint_symbol() {
|
||||
s;
|
||||
s.i;
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
intrinsics/ignore/storage_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/storage_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(s.i);
|
||||
^^^^^^
|
||||
|
||||
RWByteAddressBuffer s : register(u0, space0);
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
s;
|
||||
s;
|
||||
return;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
intrinsics/ignore/storage_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/storage_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(s.i);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct S {
|
||||
/* 0x0000 */ int i;
|
||||
};
|
||||
|
||||
kernel void tint_symbol(device S* tint_symbol_1 [[buffer(0)]]) {
|
||||
(void) *(tint_symbol_1);
|
||||
(void) (*(tint_symbol_1)).i;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
intrinsics/ignore/storage_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/storage_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(s.i);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 15
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %main "main"
|
||||
OpExecutionMode %main LocalSize 1 1 1
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "i"
|
||||
OpName %s "s"
|
||||
OpName %main "main"
|
||||
OpDecorate %S Block
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %s Binding 0
|
||||
OpDecorate %s DescriptorSet 0
|
||||
%int = OpTypeInt 32 1
|
||||
%S = OpTypeStruct %int
|
||||
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||||
%s = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||||
%void = OpTypeVoid
|
||||
%5 = OpTypeFunction %void
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
||||
%main = OpFunction %void None %5
|
||||
%8 = OpLabel
|
||||
%14 = OpAccessChain %_ptr_StorageBuffer_int %s %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +0,0 @@
|
||||
intrinsics/ignore/storage_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(s);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/storage_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(s.i);
|
||||
^^^^^^
|
||||
|
||||
struct S {
|
||||
i : i32;
|
||||
}
|
||||
|
||||
@binding(0) @group(0) var<storage, read_write> s : S;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(s);
|
||||
ignore(s.i);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
struct S {
|
||||
i : i32;
|
||||
};
|
||||
|
||||
@binding(0) @group(0) var<uniform> u : S;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(u);
|
||||
ignore(u.i);
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
intrinsics/ignore/uniform_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(u);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(u.i);
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
struct S {
|
||||
int i;
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform S_1 {
|
||||
int i;
|
||||
} u;
|
||||
|
||||
void tint_symbol() {
|
||||
u;
|
||||
u.i;
|
||||
}
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void main() {
|
||||
tint_symbol();
|
||||
return;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
intrinsics/ignore/uniform_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(u);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(u.i);
|
||||
^^^^^^
|
||||
|
||||
cbuffer cbuffer_u : register(b0, space0) {
|
||||
uint4 u[1];
|
||||
};
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
u;
|
||||
u;
|
||||
return;
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
intrinsics/ignore/uniform_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(u);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(u.i);
|
||||
^^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct S {
|
||||
/* 0x0000 */ int i;
|
||||
};
|
||||
|
||||
kernel void tint_symbol(const constant S* tint_symbol_1 [[buffer(0)]]) {
|
||||
(void) *(tint_symbol_1);
|
||||
(void) (*(tint_symbol_1)).i;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
intrinsics/ignore/uniform_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(u);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(u.i);
|
||||
^^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 15
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %main "main"
|
||||
OpExecutionMode %main LocalSize 1 1 1
|
||||
OpName %S "S"
|
||||
OpMemberName %S 0 "i"
|
||||
OpName %u "u"
|
||||
OpName %main "main"
|
||||
OpDecorate %S Block
|
||||
OpMemberDecorate %S 0 Offset 0
|
||||
OpDecorate %u NonWritable
|
||||
OpDecorate %u Binding 0
|
||||
OpDecorate %u DescriptorSet 0
|
||||
%int = OpTypeInt 32 1
|
||||
%S = OpTypeStruct %int
|
||||
%_ptr_Uniform_S = OpTypePointer Uniform %S
|
||||
%u = OpVariable %_ptr_Uniform_S Uniform
|
||||
%void = OpTypeVoid
|
||||
%5 = OpTypeFunction %void
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%main = OpFunction %void None %5
|
||||
%8 = OpLabel
|
||||
%14 = OpAccessChain %_ptr_Uniform_int %u %uint_0
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,19 +0,0 @@
|
||||
intrinsics/ignore/uniform_buffer.wgsl:9:5 warning: use of deprecated intrinsic
|
||||
ignore(u);
|
||||
^^^^^^
|
||||
|
||||
intrinsics/ignore/uniform_buffer.wgsl:10:5 warning: use of deprecated intrinsic
|
||||
ignore(u.i);
|
||||
^^^^^^
|
||||
|
||||
struct S {
|
||||
i : i32;
|
||||
}
|
||||
|
||||
@binding(0) @group(0) var<uniform> u : S;
|
||||
|
||||
@stage(compute) @workgroup_size(1)
|
||||
fn main() {
|
||||
ignore(u);
|
||||
ignore(u.i);
|
||||
}
|
||||
Reference in New Issue
Block a user