mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
intrinsics: Remove deprecated modf & frexp overloads
These have been deprecated for multiple chrome releases. Change-Id: I4cc05a74ff8f085e6d13f93aefb93077480e52f5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/66261 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
d57a129810
commit
2aa6855914
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<4, f32>, ptr<function, vec<4, i32>, write>) -> vec<4, f32>
|
||||
fn frexp_013caa() {
|
||||
var arg_1: vec4<i32>;
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_013caa();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_013caa();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_013caa();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/013caa.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float4 tint_frexp(float4 param_0, inout int4 param_1) {
|
||||
float4 float_exp;
|
||||
float4 significand = frexp(param_0, float_exp);
|
||||
param_1 = int4(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_013caa() {
|
||||
int4 arg_1 = int4(0, 0, 0, 0);
|
||||
float4 res = tint_frexp(float4(0.0f, 0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_013caa();
|
||||
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() {
|
||||
frexp_013caa();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_013caa();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/013caa.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float4 tint_frexp(float4 param_0, thread int4* param_1) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_013caa() {
|
||||
int4 arg_1 = 0;
|
||||
float4 res = tint_frexp(float4(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_013caa();
|
||||
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() {
|
||||
frexp_013caa();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_013caa();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
intrinsics/gen/frexp/013caa.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 37
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%19 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_013caa "frexp_013caa"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v4int = OpTypeVector %int 4
|
||||
%_ptr_Function_v4int = OpTypePointer Function %v4int
|
||||
%17 = OpConstantNull %v4int
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_013caa = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v4int Function %17
|
||||
%res = OpVariable %_ptr_Function_v4float Function %5
|
||||
%18 = OpExtInst %v4float %19 Frexp %5 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_013caa
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_013caa
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_013caa
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/013caa.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_013caa() {
|
||||
var arg_1 : vec4<i32>;
|
||||
var res : vec4<f32> = frexp(vec4<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_013caa();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_013caa();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_013caa();
|
||||
}
|
||||
@@ -1,35 +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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<workgroup> arg_1: i32;
|
||||
|
||||
// fn frexp(f32, ptr<workgroup, i32, read_write>) -> f32
|
||||
fn frexp_0da285() {
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_0da285();
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/frexp/0da285.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
float tint_frexp(float param_0, inout int param_1) {
|
||||
float float_exp;
|
||||
float significand = frexp(param_0, float_exp);
|
||||
param_1 = int(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
groupshared int arg_1;
|
||||
|
||||
void frexp_0da285() {
|
||||
float res = tint_frexp(1.0f, arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
void compute_main_inner(uint local_invocation_index) {
|
||||
{
|
||||
arg_1 = 0;
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
frexp_0da285();
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main(tint_symbol_1 tint_symbol) {
|
||||
compute_main_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
intrinsics/gen/frexp/0da285.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float tint_frexp(float param_0, threadgroup int* param_1) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
void frexp_0da285(threadgroup int* const tint_symbol) {
|
||||
float res = tint_frexp(1.0f, tint_symbol);
|
||||
}
|
||||
|
||||
void compute_main_inner(uint local_invocation_index, threadgroup int* const tint_symbol_1) {
|
||||
{
|
||||
*(tint_symbol_1) = int();
|
||||
}
|
||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||
frexp_0da285(tint_symbol_1);
|
||||
}
|
||||
|
||||
kernel void compute_main(uint local_invocation_index [[thread_index_in_threadgroup]]) {
|
||||
threadgroup int tint_symbol_2;
|
||||
compute_main_inner(local_invocation_index, &(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
intrinsics/gen/frexp/0da285.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 32
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%13 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %local_invocation_index_1 "local_invocation_index_1"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %frexp_0da285 "frexp_0da285"
|
||||
OpName %res "res"
|
||||
OpName %compute_main_inner "compute_main_inner"
|
||||
OpName %local_invocation_index "local_invocation_index"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
|
||||
%uint = OpTypeInt 32 0
|
||||
%_ptr_Input_uint = OpTypePointer Input %uint
|
||||
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
|
||||
%int = OpTypeInt 32 1
|
||||
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
|
||||
%arg_1 = OpVariable %_ptr_Workgroup_int Workgroup
|
||||
%void = OpTypeVoid
|
||||
%7 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%float_1 = OpConstant %float 1
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%18 = OpConstantNull %float
|
||||
%19 = OpTypeFunction %void %uint
|
||||
%23 = OpConstantNull %int
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_264 = OpConstant %uint 264
|
||||
%frexp_0da285 = OpFunction %void None %7
|
||||
%10 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_float Function %18
|
||||
%11 = OpExtInst %float %13 Frexp %float_1 %arg_1
|
||||
OpStore %res %11
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main_inner = OpFunction %void None %19
|
||||
%local_invocation_index = OpFunctionParameter %uint
|
||||
%22 = OpLabel
|
||||
OpStore %arg_1 %23
|
||||
OpControlBarrier %uint_2 %uint_2 %uint_264
|
||||
%27 = OpFunctionCall %void %frexp_0da285
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %7
|
||||
%29 = OpLabel
|
||||
%31 = OpLoad %uint %local_invocation_index_1
|
||||
%30 = OpFunctionCall %void %compute_main_inner %31
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,14 +0,0 @@
|
||||
intrinsics/gen/frexp/0da285.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<workgroup> arg_1 : i32;
|
||||
|
||||
fn frexp_0da285() {
|
||||
var res : f32 = frexp(1.0, &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_0da285();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<2, f32>, ptr<function, vec<2, i32>, read_write>) -> vec<2, f32>
|
||||
fn frexp_15edf3() {
|
||||
var arg_1: vec2<i32>;
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_15edf3();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_15edf3();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_15edf3();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/15edf3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float2 tint_frexp(float2 param_0, inout int2 param_1) {
|
||||
float2 float_exp;
|
||||
float2 significand = frexp(param_0, float_exp);
|
||||
param_1 = int2(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_15edf3() {
|
||||
int2 arg_1 = int2(0, 0);
|
||||
float2 res = tint_frexp(float2(0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_15edf3();
|
||||
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() {
|
||||
frexp_15edf3();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_15edf3();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/15edf3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float2 tint_frexp(float2 param_0, thread int2* param_1) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_15edf3() {
|
||||
int2 arg_1 = 0;
|
||||
float2 res = tint_frexp(float2(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_15edf3();
|
||||
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() {
|
||||
frexp_15edf3();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_15edf3();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/15edf3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_15edf3 "frexp_15edf3"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v2int = OpTypeVector %int 2
|
||||
%_ptr_Function_v2int = OpTypePointer Function %v2int
|
||||
%17 = OpConstantNull %v2int
|
||||
%v2float = OpTypeVector %float 2
|
||||
%21 = OpConstantNull %v2float
|
||||
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_15edf3 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v2int Function %17
|
||||
%res = OpVariable %_ptr_Function_v2float Function %21
|
||||
%18 = OpExtInst %v2float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_15edf3
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_15edf3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_15edf3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/15edf3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_15edf3() {
|
||||
var arg_1 : vec2<i32>;
|
||||
var res : vec2<f32> = frexp(vec2<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_15edf3();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_15edf3();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_15edf3();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<4, f32>, ptr<function, vec<4, i32>, read_write>) -> vec<4, f32>
|
||||
fn frexp_19ab15() {
|
||||
var arg_1: vec4<i32>;
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_19ab15();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_19ab15();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_19ab15();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/19ab15.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float4 tint_frexp(float4 param_0, inout int4 param_1) {
|
||||
float4 float_exp;
|
||||
float4 significand = frexp(param_0, float_exp);
|
||||
param_1 = int4(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_19ab15() {
|
||||
int4 arg_1 = int4(0, 0, 0, 0);
|
||||
float4 res = tint_frexp(float4(0.0f, 0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_19ab15();
|
||||
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() {
|
||||
frexp_19ab15();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_19ab15();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/19ab15.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float4 tint_frexp(float4 param_0, thread int4* param_1) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_19ab15() {
|
||||
int4 arg_1 = 0;
|
||||
float4 res = tint_frexp(float4(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_19ab15();
|
||||
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() {
|
||||
frexp_19ab15();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_19ab15();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
intrinsics/gen/frexp/19ab15.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 37
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%19 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_19ab15 "frexp_19ab15"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v4int = OpTypeVector %int 4
|
||||
%_ptr_Function_v4int = OpTypePointer Function %v4int
|
||||
%17 = OpConstantNull %v4int
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_19ab15 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v4int Function %17
|
||||
%res = OpVariable %_ptr_Function_v4float Function %5
|
||||
%18 = OpExtInst %v4float %19 Frexp %5 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_19ab15
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_19ab15
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_19ab15
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/19ab15.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_19ab15() {
|
||||
var arg_1 : vec4<i32>;
|
||||
var res : vec4<f32> = frexp(vec4<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_19ab15();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_19ab15();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_19ab15();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<4, f32>, ptr<function, vec<4, i32>, read>) -> vec<4, f32>
|
||||
fn frexp_2052e9() {
|
||||
var arg_1: vec4<i32>;
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_2052e9();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_2052e9();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_2052e9();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/2052e9.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float4 tint_frexp(float4 param_0, inout int4 param_1) {
|
||||
float4 float_exp;
|
||||
float4 significand = frexp(param_0, float_exp);
|
||||
param_1 = int4(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_2052e9() {
|
||||
int4 arg_1 = int4(0, 0, 0, 0);
|
||||
float4 res = tint_frexp(float4(0.0f, 0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_2052e9();
|
||||
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() {
|
||||
frexp_2052e9();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_2052e9();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/2052e9.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float4 tint_frexp(float4 param_0, thread int4* param_1) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_2052e9() {
|
||||
int4 arg_1 = 0;
|
||||
float4 res = tint_frexp(float4(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_2052e9();
|
||||
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() {
|
||||
frexp_2052e9();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_2052e9();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
intrinsics/gen/frexp/2052e9.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 37
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%19 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_2052e9 "frexp_2052e9"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v4int = OpTypeVector %int 4
|
||||
%_ptr_Function_v4int = OpTypePointer Function %v4int
|
||||
%17 = OpConstantNull %v4int
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_2052e9 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v4int Function %17
|
||||
%res = OpVariable %_ptr_Function_v4float Function %5
|
||||
%18 = OpExtInst %v4float %19 Frexp %5 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_2052e9
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_2052e9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_2052e9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/2052e9.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_2052e9() {
|
||||
var arg_1 : vec4<i32>;
|
||||
var res : vec4<f32> = frexp(vec4<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_2052e9();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_2052e9();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_2052e9();
|
||||
}
|
||||
@@ -1,35 +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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<workgroup> arg_1: vec3<i32>;
|
||||
|
||||
// fn frexp(vec<3, f32>, ptr<workgroup, vec<3, i32>, read_write>) -> vec<3, f32>
|
||||
fn frexp_40fc9b() {
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_40fc9b();
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/frexp/40fc9b.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float3 tint_frexp(float3 param_0, inout int3 param_1) {
|
||||
float3 float_exp;
|
||||
float3 significand = frexp(param_0, float_exp);
|
||||
param_1 = int3(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
groupshared int3 arg_1;
|
||||
|
||||
void frexp_40fc9b() {
|
||||
float3 res = tint_frexp(float3(0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
void compute_main_inner(uint local_invocation_index) {
|
||||
{
|
||||
arg_1 = int3(0, 0, 0);
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
frexp_40fc9b();
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main(tint_symbol_1 tint_symbol) {
|
||||
compute_main_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
intrinsics/gen/frexp/40fc9b.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float3 tint_frexp(float3 param_0, threadgroup int3* param_1) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
void frexp_40fc9b(threadgroup int3* const tint_symbol) {
|
||||
float3 res = tint_frexp(float3(), tint_symbol);
|
||||
}
|
||||
|
||||
void compute_main_inner(uint local_invocation_index, threadgroup int3* const tint_symbol_1) {
|
||||
{
|
||||
*(tint_symbol_1) = int3();
|
||||
}
|
||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||
frexp_40fc9b(tint_symbol_1);
|
||||
}
|
||||
|
||||
kernel void compute_main(uint local_invocation_index [[thread_index_in_threadgroup]]) {
|
||||
threadgroup int3 tint_symbol_2;
|
||||
compute_main_inner(local_invocation_index, &(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
intrinsics/gen/frexp/40fc9b.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 33
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%15 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %local_invocation_index_1 "local_invocation_index_1"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %frexp_40fc9b "frexp_40fc9b"
|
||||
OpName %res "res"
|
||||
OpName %compute_main_inner "compute_main_inner"
|
||||
OpName %local_invocation_index "local_invocation_index"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
|
||||
%uint = OpTypeInt 32 0
|
||||
%_ptr_Input_uint = OpTypePointer Input %uint
|
||||
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
|
||||
%int = OpTypeInt 32 1
|
||||
%v3int = OpTypeVector %int 3
|
||||
%_ptr_Workgroup_v3int = OpTypePointer Workgroup %v3int
|
||||
%arg_1 = OpVariable %_ptr_Workgroup_v3int Workgroup
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%v3float = OpTypeVector %float 3
|
||||
%16 = OpConstantNull %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%20 = OpTypeFunction %void %uint
|
||||
%24 = OpConstantNull %v3int
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_264 = OpConstant %uint 264
|
||||
%frexp_40fc9b = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_v3float Function %16
|
||||
%12 = OpExtInst %v3float %15 Frexp %16 %arg_1
|
||||
OpStore %res %12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main_inner = OpFunction %void None %20
|
||||
%local_invocation_index = OpFunctionParameter %uint
|
||||
%23 = OpLabel
|
||||
OpStore %arg_1 %24
|
||||
OpControlBarrier %uint_2 %uint_2 %uint_264
|
||||
%28 = OpFunctionCall %void %frexp_40fc9b
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %8
|
||||
%30 = OpLabel
|
||||
%32 = OpLoad %uint %local_invocation_index_1
|
||||
%31 = OpFunctionCall %void %compute_main_inner %32
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,14 +0,0 @@
|
||||
intrinsics/gen/frexp/40fc9b.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<workgroup> arg_1 : vec3<i32>;
|
||||
|
||||
fn frexp_40fc9b() {
|
||||
var res : vec3<f32> = frexp(vec3<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_40fc9b();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(f32, ptr<function, i32, read_write>) -> f32
|
||||
fn frexp_41e931() {
|
||||
var arg_1: i32;
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_41e931();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_41e931();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_41e931();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/41e931.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
float tint_frexp(float param_0, inout int param_1) {
|
||||
float float_exp;
|
||||
float significand = frexp(param_0, float_exp);
|
||||
param_1 = int(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_41e931() {
|
||||
int arg_1 = 0;
|
||||
float res = tint_frexp(1.0f, arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_41e931();
|
||||
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() {
|
||||
frexp_41e931();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_41e931();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/41e931.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float tint_frexp(float param_0, thread int* param_1) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_41e931() {
|
||||
int arg_1 = 0;
|
||||
float res = tint_frexp(1.0f, &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_41e931();
|
||||
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() {
|
||||
frexp_41e931();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_41e931();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
intrinsics/gen/frexp/41e931.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 36
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%18 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_41e931 "frexp_41e931"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%16 = OpConstantNull %int
|
||||
%float_1 = OpConstant %float 1
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%frexp_41e931 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_int Function %16
|
||||
%res = OpVariable %_ptr_Function_float Function %8
|
||||
%17 = OpExtInst %float %18 Frexp %float_1 %arg_1
|
||||
OpStore %res %17
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_41e931
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%31 = OpLabel
|
||||
%32 = OpFunctionCall %void %frexp_41e931
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_41e931
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/41e931.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_41e931() {
|
||||
var arg_1 : i32;
|
||||
var res : f32 = frexp(1.0, &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_41e931();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_41e931();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_41e931();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(f32, ptr<function, i32, read>) -> f32
|
||||
fn frexp_481e59() {
|
||||
var arg_1: i32;
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_481e59();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_481e59();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_481e59();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/481e59.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
float tint_frexp(float param_0, inout int param_1) {
|
||||
float float_exp;
|
||||
float significand = frexp(param_0, float_exp);
|
||||
param_1 = int(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_481e59() {
|
||||
int arg_1 = 0;
|
||||
float res = tint_frexp(1.0f, arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_481e59();
|
||||
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() {
|
||||
frexp_481e59();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_481e59();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/481e59.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float tint_frexp(float param_0, thread int* param_1) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_481e59() {
|
||||
int arg_1 = 0;
|
||||
float res = tint_frexp(1.0f, &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_481e59();
|
||||
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() {
|
||||
frexp_481e59();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_481e59();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
intrinsics/gen/frexp/481e59.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 36
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%18 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_481e59 "frexp_481e59"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%16 = OpConstantNull %int
|
||||
%float_1 = OpConstant %float 1
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%frexp_481e59 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_int Function %16
|
||||
%res = OpVariable %_ptr_Function_float Function %8
|
||||
%17 = OpExtInst %float %18 Frexp %float_1 %arg_1
|
||||
OpStore %res %17
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_481e59
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%31 = OpLabel
|
||||
%32 = OpFunctionCall %void %frexp_481e59
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_481e59
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/481e59.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_481e59() {
|
||||
var arg_1 : i32;
|
||||
var res : f32 = frexp(1.0, &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_481e59();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_481e59();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_481e59();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<3, f32>, ptr<function, vec<3, i32>, read>) -> vec<3, f32>
|
||||
fn frexp_5a141e() {
|
||||
var arg_1: vec3<i32>;
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_5a141e();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_5a141e();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_5a141e();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/5a141e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float3 tint_frexp(float3 param_0, inout int3 param_1) {
|
||||
float3 float_exp;
|
||||
float3 significand = frexp(param_0, float_exp);
|
||||
param_1 = int3(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_5a141e() {
|
||||
int3 arg_1 = int3(0, 0, 0);
|
||||
float3 res = tint_frexp(float3(0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_5a141e();
|
||||
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() {
|
||||
frexp_5a141e();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_5a141e();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/5a141e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float3 tint_frexp(float3 param_0, thread int3* param_1) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_5a141e() {
|
||||
int3 arg_1 = 0;
|
||||
float3 res = tint_frexp(float3(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_5a141e();
|
||||
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() {
|
||||
frexp_5a141e();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_5a141e();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/5a141e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_5a141e "frexp_5a141e"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v3int = OpTypeVector %int 3
|
||||
%_ptr_Function_v3int = OpTypePointer Function %v3int
|
||||
%17 = OpConstantNull %v3int
|
||||
%v3float = OpTypeVector %float 3
|
||||
%21 = OpConstantNull %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_5a141e = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v3int Function %17
|
||||
%res = OpVariable %_ptr_Function_v3float Function %21
|
||||
%18 = OpExtInst %v3float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_5a141e
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_5a141e
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_5a141e
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/5a141e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_5a141e() {
|
||||
var arg_1 : vec3<i32>;
|
||||
var res : vec3<f32> = frexp(vec3<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_5a141e();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_5a141e();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_5a141e();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<3, f32>, ptr<function, vec<3, i32>, read_write>) -> vec<3, f32>
|
||||
fn frexp_6d0058() {
|
||||
var arg_1: vec3<i32>;
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_6d0058();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_6d0058();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_6d0058();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/6d0058.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float3 tint_frexp(float3 param_0, inout int3 param_1) {
|
||||
float3 float_exp;
|
||||
float3 significand = frexp(param_0, float_exp);
|
||||
param_1 = int3(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_6d0058() {
|
||||
int3 arg_1 = int3(0, 0, 0);
|
||||
float3 res = tint_frexp(float3(0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_6d0058();
|
||||
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() {
|
||||
frexp_6d0058();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_6d0058();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/6d0058.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float3 tint_frexp(float3 param_0, thread int3* param_1) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_6d0058() {
|
||||
int3 arg_1 = 0;
|
||||
float3 res = tint_frexp(float3(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_6d0058();
|
||||
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() {
|
||||
frexp_6d0058();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_6d0058();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/6d0058.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_6d0058 "frexp_6d0058"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v3int = OpTypeVector %int 3
|
||||
%_ptr_Function_v3int = OpTypePointer Function %v3int
|
||||
%17 = OpConstantNull %v3int
|
||||
%v3float = OpTypeVector %float 3
|
||||
%21 = OpConstantNull %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_6d0058 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v3int Function %17
|
||||
%res = OpVariable %_ptr_Function_v3float Function %21
|
||||
%18 = OpExtInst %v3float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_6d0058
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_6d0058
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_6d0058
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/6d0058.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_6d0058() {
|
||||
var arg_1 : vec3<i32>;
|
||||
var res : vec3<f32> = frexp(vec3<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_6d0058();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_6d0058();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_6d0058();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<private> arg_1: vec3<i32>;
|
||||
|
||||
// fn frexp(vec<3, f32>, ptr<private, vec<3, i32>, read_write>) -> vec<3, f32>
|
||||
fn frexp_6efa09() {
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_6efa09();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_6efa09();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_6efa09();
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
intrinsics/gen/frexp/6efa09.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float3 tint_frexp(float3 param_0, inout int3 param_1) {
|
||||
float3 float_exp;
|
||||
float3 significand = frexp(param_0, float_exp);
|
||||
param_1 = int3(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
static int3 arg_1 = int3(0, 0, 0);
|
||||
|
||||
void frexp_6efa09() {
|
||||
float3 res = tint_frexp(float3(0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_6efa09();
|
||||
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() {
|
||||
frexp_6efa09();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_6efa09();
|
||||
return;
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
intrinsics/gen/frexp/6efa09.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float3 tint_frexp(float3 param_0, thread int3* param_1) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_6efa09(thread int3* const tint_symbol_1) {
|
||||
float3 res = tint_frexp(float3(), tint_symbol_1);
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(thread int3* const tint_symbol_2) {
|
||||
frexp_6efa09(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
thread int3 tint_symbol_3 = 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() {
|
||||
thread int3 tint_symbol_4 = 0;
|
||||
frexp_6efa09(&(tint_symbol_4));
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
thread int3 tint_symbol_5 = 0;
|
||||
frexp_6efa09(&(tint_symbol_5));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/6efa09.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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_1 "arg_1"
|
||||
OpName %frexp_6efa09 "frexp_6efa09"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
||||
%_ptr_Output_float = OpTypePointer Output %float
|
||||
%8 = OpConstantNull %float
|
||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
||||
%int = OpTypeInt 32 1
|
||||
%v3int = OpTypeVector %int 3
|
||||
%_ptr_Private_v3int = OpTypePointer Private %v3int
|
||||
%13 = OpConstantNull %v3int
|
||||
%arg_1 = OpVariable %_ptr_Private_v3int Private %13
|
||||
%void = OpTypeVoid
|
||||
%14 = OpTypeFunction %void
|
||||
%v3float = OpTypeVector %float 3
|
||||
%21 = OpConstantNull %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_6efa09 = OpFunction %void None %14
|
||||
%17 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_v3float Function %21
|
||||
%18 = OpExtInst %v3float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_6efa09
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %14
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %14
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_6efa09
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %14
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_6efa09
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/frexp/6efa09.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<private> arg_1 : vec3<i32>;
|
||||
|
||||
fn frexp_6efa09() {
|
||||
var res : vec3<f32> = frexp(vec3<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_6efa09();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_6efa09();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_6efa09();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<private> arg_1: i32;
|
||||
|
||||
// fn frexp(f32, ptr<private, i32, read_write>) -> f32
|
||||
fn frexp_a2a617() {
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_a2a617();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_a2a617();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_a2a617();
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
intrinsics/gen/frexp/a2a617.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
float tint_frexp(float param_0, inout int param_1) {
|
||||
float float_exp;
|
||||
float significand = frexp(param_0, float_exp);
|
||||
param_1 = int(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
static int arg_1 = 0;
|
||||
|
||||
void frexp_a2a617() {
|
||||
float res = tint_frexp(1.0f, arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_a2a617();
|
||||
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() {
|
||||
frexp_a2a617();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_a2a617();
|
||||
return;
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
intrinsics/gen/frexp/a2a617.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float tint_frexp(float param_0, thread int* param_1) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_a2a617(thread int* const tint_symbol_1) {
|
||||
float res = tint_frexp(1.0f, tint_symbol_1);
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(thread int* const tint_symbol_2) {
|
||||
frexp_a2a617(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
thread int tint_symbol_3 = 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() {
|
||||
thread int tint_symbol_4 = 0;
|
||||
frexp_a2a617(&(tint_symbol_4));
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
thread int tint_symbol_5 = 0;
|
||||
frexp_a2a617(&(tint_symbol_5));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
intrinsics/gen/frexp/a2a617.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 36
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%18 = OpExtInstImport "GLSL.std.450"
|
||||
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_1 "arg_1"
|
||||
OpName %frexp_a2a617 "frexp_a2a617"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
||||
%_ptr_Output_float = OpTypePointer Output %float
|
||||
%8 = OpConstantNull %float
|
||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
||||
%int = OpTypeInt 32 1
|
||||
%_ptr_Private_int = OpTypePointer Private %int
|
||||
%12 = OpConstantNull %int
|
||||
%arg_1 = OpVariable %_ptr_Private_int Private %12
|
||||
%void = OpTypeVoid
|
||||
%13 = OpTypeFunction %void
|
||||
%float_1 = OpConstant %float 1
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%frexp_a2a617 = OpFunction %void None %13
|
||||
%16 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_float Function %8
|
||||
%17 = OpExtInst %float %18 Frexp %float_1 %arg_1
|
||||
OpStore %res %17
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_a2a617
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %13
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %13
|
||||
%31 = OpLabel
|
||||
%32 = OpFunctionCall %void %frexp_a2a617
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %13
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_a2a617
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/frexp/a2a617.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<private> arg_1 : i32;
|
||||
|
||||
fn frexp_a2a617() {
|
||||
var res : f32 = frexp(1.0, &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_a2a617();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_a2a617();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_a2a617();
|
||||
}
|
||||
@@ -1,35 +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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<workgroup> arg_1: vec2<i32>;
|
||||
|
||||
// fn frexp(vec<2, f32>, ptr<workgroup, vec<2, i32>, read_write>) -> vec<2, f32>
|
||||
fn frexp_a3f940() {
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_a3f940();
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/frexp/a3f940.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float2 tint_frexp(float2 param_0, inout int2 param_1) {
|
||||
float2 float_exp;
|
||||
float2 significand = frexp(param_0, float_exp);
|
||||
param_1 = int2(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
groupshared int2 arg_1;
|
||||
|
||||
void frexp_a3f940() {
|
||||
float2 res = tint_frexp(float2(0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
void compute_main_inner(uint local_invocation_index) {
|
||||
{
|
||||
arg_1 = int2(0, 0);
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
frexp_a3f940();
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main(tint_symbol_1 tint_symbol) {
|
||||
compute_main_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
intrinsics/gen/frexp/a3f940.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float2 tint_frexp(float2 param_0, threadgroup int2* param_1) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
void frexp_a3f940(threadgroup int2* const tint_symbol) {
|
||||
float2 res = tint_frexp(float2(), tint_symbol);
|
||||
}
|
||||
|
||||
void compute_main_inner(uint local_invocation_index, threadgroup int2* const tint_symbol_1) {
|
||||
{
|
||||
*(tint_symbol_1) = int2();
|
||||
}
|
||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||
frexp_a3f940(tint_symbol_1);
|
||||
}
|
||||
|
||||
kernel void compute_main(uint local_invocation_index [[thread_index_in_threadgroup]]) {
|
||||
threadgroup int2 tint_symbol_2;
|
||||
compute_main_inner(local_invocation_index, &(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
intrinsics/gen/frexp/a3f940.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 33
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%15 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %local_invocation_index_1 "local_invocation_index_1"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %frexp_a3f940 "frexp_a3f940"
|
||||
OpName %res "res"
|
||||
OpName %compute_main_inner "compute_main_inner"
|
||||
OpName %local_invocation_index "local_invocation_index"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
|
||||
%uint = OpTypeInt 32 0
|
||||
%_ptr_Input_uint = OpTypePointer Input %uint
|
||||
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
|
||||
%int = OpTypeInt 32 1
|
||||
%v2int = OpTypeVector %int 2
|
||||
%_ptr_Workgroup_v2int = OpTypePointer Workgroup %v2int
|
||||
%arg_1 = OpVariable %_ptr_Workgroup_v2int Workgroup
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%v2float = OpTypeVector %float 2
|
||||
%16 = OpConstantNull %v2float
|
||||
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
||||
%20 = OpTypeFunction %void %uint
|
||||
%24 = OpConstantNull %v2int
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_264 = OpConstant %uint 264
|
||||
%frexp_a3f940 = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_v2float Function %16
|
||||
%12 = OpExtInst %v2float %15 Frexp %16 %arg_1
|
||||
OpStore %res %12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main_inner = OpFunction %void None %20
|
||||
%local_invocation_index = OpFunctionParameter %uint
|
||||
%23 = OpLabel
|
||||
OpStore %arg_1 %24
|
||||
OpControlBarrier %uint_2 %uint_2 %uint_264
|
||||
%28 = OpFunctionCall %void %frexp_a3f940
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %8
|
||||
%30 = OpLabel
|
||||
%32 = OpLoad %uint %local_invocation_index_1
|
||||
%31 = OpFunctionCall %void %compute_main_inner %32
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,14 +0,0 @@
|
||||
intrinsics/gen/frexp/a3f940.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<workgroup> arg_1 : vec2<i32>;
|
||||
|
||||
fn frexp_a3f940() {
|
||||
var res : vec2<f32> = frexp(vec2<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_a3f940();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<2, f32>, ptr<function, vec<2, i32>, write>) -> vec<2, f32>
|
||||
fn frexp_a951b5() {
|
||||
var arg_1: vec2<i32>;
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_a951b5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_a951b5();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_a951b5();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/a951b5.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float2 tint_frexp(float2 param_0, inout int2 param_1) {
|
||||
float2 float_exp;
|
||||
float2 significand = frexp(param_0, float_exp);
|
||||
param_1 = int2(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_a951b5() {
|
||||
int2 arg_1 = int2(0, 0);
|
||||
float2 res = tint_frexp(float2(0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_a951b5();
|
||||
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() {
|
||||
frexp_a951b5();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_a951b5();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/a951b5.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float2 tint_frexp(float2 param_0, thread int2* param_1) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_a951b5() {
|
||||
int2 arg_1 = 0;
|
||||
float2 res = tint_frexp(float2(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_a951b5();
|
||||
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() {
|
||||
frexp_a951b5();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_a951b5();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/a951b5.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_a951b5 "frexp_a951b5"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v2int = OpTypeVector %int 2
|
||||
%_ptr_Function_v2int = OpTypePointer Function %v2int
|
||||
%17 = OpConstantNull %v2int
|
||||
%v2float = OpTypeVector %float 2
|
||||
%21 = OpConstantNull %v2float
|
||||
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_a951b5 = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v2int Function %17
|
||||
%res = OpVariable %_ptr_Function_v2float Function %21
|
||||
%18 = OpExtInst %v2float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_a951b5
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_a951b5
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_a951b5
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/a951b5.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_a951b5() {
|
||||
var arg_1 : vec2<i32>;
|
||||
var res : vec2<f32> = frexp(vec2<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_a951b5();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_a951b5();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_a951b5();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<private> arg_1: vec4<i32>;
|
||||
|
||||
// fn frexp(vec<4, f32>, ptr<private, vec<4, i32>, read_write>) -> vec<4, f32>
|
||||
fn frexp_b45525() {
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_b45525();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_b45525();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_b45525();
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
intrinsics/gen/frexp/b45525.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float4 tint_frexp(float4 param_0, inout int4 param_1) {
|
||||
float4 float_exp;
|
||||
float4 significand = frexp(param_0, float_exp);
|
||||
param_1 = int4(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
static int4 arg_1 = int4(0, 0, 0, 0);
|
||||
|
||||
void frexp_b45525() {
|
||||
float4 res = tint_frexp(float4(0.0f, 0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_b45525();
|
||||
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() {
|
||||
frexp_b45525();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_b45525();
|
||||
return;
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
intrinsics/gen/frexp/b45525.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float4 tint_frexp(float4 param_0, thread int4* param_1) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_b45525(thread int4* const tint_symbol_1) {
|
||||
float4 res = tint_frexp(float4(), tint_symbol_1);
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(thread int4* const tint_symbol_2) {
|
||||
frexp_b45525(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
thread int4 tint_symbol_3 = 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() {
|
||||
thread int4 tint_symbol_4 = 0;
|
||||
frexp_b45525(&(tint_symbol_4));
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
thread int4 tint_symbol_5 = 0;
|
||||
frexp_b45525(&(tint_symbol_5));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
intrinsics/gen/frexp/b45525.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 37
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%19 = OpExtInstImport "GLSL.std.450"
|
||||
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_1 "arg_1"
|
||||
OpName %frexp_b45525 "frexp_b45525"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
||||
%_ptr_Output_float = OpTypePointer Output %float
|
||||
%8 = OpConstantNull %float
|
||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
||||
%int = OpTypeInt 32 1
|
||||
%v4int = OpTypeVector %int 4
|
||||
%_ptr_Private_v4int = OpTypePointer Private %v4int
|
||||
%13 = OpConstantNull %v4int
|
||||
%arg_1 = OpVariable %_ptr_Private_v4int Private %13
|
||||
%void = OpTypeVoid
|
||||
%14 = OpTypeFunction %void
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_b45525 = OpFunction %void None %14
|
||||
%17 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_v4float Function %5
|
||||
%18 = OpExtInst %v4float %19 Frexp %5 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_b45525
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %14
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %14
|
||||
%32 = OpLabel
|
||||
%33 = OpFunctionCall %void %frexp_b45525
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %14
|
||||
%35 = OpLabel
|
||||
%36 = OpFunctionCall %void %frexp_b45525
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/frexp/b45525.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<private> arg_1 : vec4<i32>;
|
||||
|
||||
fn frexp_b45525() {
|
||||
var res : vec4<f32> = frexp(vec4<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_b45525();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_b45525();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_b45525();
|
||||
}
|
||||
@@ -1,35 +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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<workgroup> arg_1: vec4<i32>;
|
||||
|
||||
// fn frexp(vec<4, f32>, ptr<workgroup, vec<4, i32>, read_write>) -> vec<4, f32>
|
||||
fn frexp_b87f4e() {
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_b87f4e();
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
intrinsics/gen/frexp/b87f4e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float4 tint_frexp(float4 param_0, inout int4 param_1) {
|
||||
float4 float_exp;
|
||||
float4 significand = frexp(param_0, float_exp);
|
||||
param_1 = int4(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
groupshared int4 arg_1;
|
||||
|
||||
void frexp_b87f4e() {
|
||||
float4 res = tint_frexp(float4(0.0f, 0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol_1 {
|
||||
uint local_invocation_index : SV_GroupIndex;
|
||||
};
|
||||
|
||||
void compute_main_inner(uint local_invocation_index) {
|
||||
{
|
||||
arg_1 = int4(0, 0, 0, 0);
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
frexp_b87f4e();
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main(tint_symbol_1 tint_symbol) {
|
||||
compute_main_inner(tint_symbol.local_invocation_index);
|
||||
return;
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
intrinsics/gen/frexp/b87f4e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float4 tint_frexp(float4 param_0, threadgroup int4* param_1) {
|
||||
int4 exp;
|
||||
float4 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
void frexp_b87f4e(threadgroup int4* const tint_symbol) {
|
||||
float4 res = tint_frexp(float4(), tint_symbol);
|
||||
}
|
||||
|
||||
void compute_main_inner(uint local_invocation_index, threadgroup int4* const tint_symbol_1) {
|
||||
{
|
||||
*(tint_symbol_1) = int4();
|
||||
}
|
||||
threadgroup_barrier(mem_flags::mem_threadgroup);
|
||||
frexp_b87f4e(tint_symbol_1);
|
||||
}
|
||||
|
||||
kernel void compute_main(uint local_invocation_index [[thread_index_in_threadgroup]]) {
|
||||
threadgroup int4 tint_symbol_2;
|
||||
compute_main_inner(local_invocation_index, &(tint_symbol_2));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
intrinsics/gen/frexp/b87f4e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 33
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%15 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1
|
||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
||||
OpName %local_invocation_index_1 "local_invocation_index_1"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %frexp_b87f4e "frexp_b87f4e"
|
||||
OpName %res "res"
|
||||
OpName %compute_main_inner "compute_main_inner"
|
||||
OpName %local_invocation_index "local_invocation_index"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
|
||||
%uint = OpTypeInt 32 0
|
||||
%_ptr_Input_uint = OpTypePointer Input %uint
|
||||
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
|
||||
%int = OpTypeInt 32 1
|
||||
%v4int = OpTypeVector %int 4
|
||||
%_ptr_Workgroup_v4int = OpTypePointer Workgroup %v4int
|
||||
%arg_1 = OpVariable %_ptr_Workgroup_v4int Workgroup
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%16 = OpConstantNull %v4float
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%20 = OpTypeFunction %void %uint
|
||||
%24 = OpConstantNull %v4int
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_264 = OpConstant %uint 264
|
||||
%frexp_b87f4e = OpFunction %void None %8
|
||||
%11 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_v4float Function %16
|
||||
%12 = OpExtInst %v4float %15 Frexp %16 %arg_1
|
||||
OpStore %res %12
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main_inner = OpFunction %void None %20
|
||||
%local_invocation_index = OpFunctionParameter %uint
|
||||
%23 = OpLabel
|
||||
OpStore %arg_1 %24
|
||||
OpControlBarrier %uint_2 %uint_2 %uint_264
|
||||
%28 = OpFunctionCall %void %frexp_b87f4e
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %8
|
||||
%30 = OpLabel
|
||||
%32 = OpLoad %uint %local_invocation_index_1
|
||||
%31 = OpFunctionCall %void %compute_main_inner %32
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,14 +0,0 @@
|
||||
intrinsics/gen/frexp/b87f4e.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec4<f32> = frexp(vec4<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<workgroup> arg_1 : vec4<i32>;
|
||||
|
||||
fn frexp_b87f4e() {
|
||||
var res : vec4<f32> = frexp(vec4<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_b87f4e();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<3, f32>, ptr<function, vec<3, i32>, write>) -> vec<3, f32>
|
||||
fn frexp_b9e4de() {
|
||||
var arg_1: vec3<i32>;
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_b9e4de();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_b9e4de();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_b9e4de();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/b9e4de.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float3 tint_frexp(float3 param_0, inout int3 param_1) {
|
||||
float3 float_exp;
|
||||
float3 significand = frexp(param_0, float_exp);
|
||||
param_1 = int3(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_b9e4de() {
|
||||
int3 arg_1 = int3(0, 0, 0);
|
||||
float3 res = tint_frexp(float3(0.0f, 0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_b9e4de();
|
||||
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() {
|
||||
frexp_b9e4de();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_b9e4de();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/b9e4de.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float3 tint_frexp(float3 param_0, thread int3* param_1) {
|
||||
int3 exp;
|
||||
float3 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_b9e4de() {
|
||||
int3 arg_1 = 0;
|
||||
float3 res = tint_frexp(float3(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_b9e4de();
|
||||
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() {
|
||||
frexp_b9e4de();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_b9e4de();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/b9e4de.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_b9e4de "frexp_b9e4de"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v3int = OpTypeVector %int 3
|
||||
%_ptr_Function_v3int = OpTypePointer Function %v3int
|
||||
%17 = OpConstantNull %v3int
|
||||
%v3float = OpTypeVector %float 3
|
||||
%21 = OpConstantNull %v3float
|
||||
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_b9e4de = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v3int Function %17
|
||||
%res = OpVariable %_ptr_Function_v3float Function %21
|
||||
%18 = OpExtInst %v3float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_b9e4de
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_b9e4de
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_b9e4de
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/b9e4de.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec3<f32> = frexp(vec3<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_b9e4de() {
|
||||
var arg_1 : vec3<i32>;
|
||||
var res : vec3<f32> = frexp(vec3<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_b9e4de();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_b9e4de();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_b9e4de();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var<private> arg_1: vec2<i32>;
|
||||
|
||||
// fn frexp(vec<2, f32>, ptr<private, vec<2, i32>, read_write>) -> vec<2, f32>
|
||||
fn frexp_c084e3() {
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_c084e3();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_c084e3();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_c084e3();
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
intrinsics/gen/frexp/c084e3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float2 tint_frexp(float2 param_0, inout int2 param_1) {
|
||||
float2 float_exp;
|
||||
float2 significand = frexp(param_0, float_exp);
|
||||
param_1 = int2(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
static int2 arg_1 = int2(0, 0);
|
||||
|
||||
void frexp_c084e3() {
|
||||
float2 res = tint_frexp(float2(0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_c084e3();
|
||||
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() {
|
||||
frexp_c084e3();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_c084e3();
|
||||
return;
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
intrinsics/gen/frexp/c084e3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float2 tint_frexp(float2 param_0, thread int2* param_1) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_c084e3(thread int2* const tint_symbol_1) {
|
||||
float2 res = tint_frexp(float2(), tint_symbol_1);
|
||||
}
|
||||
|
||||
float4 vertex_main_inner(thread int2* const tint_symbol_2) {
|
||||
frexp_c084e3(tint_symbol_2);
|
||||
return float4();
|
||||
}
|
||||
|
||||
vertex tint_symbol vertex_main() {
|
||||
thread int2 tint_symbol_3 = 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() {
|
||||
thread int2 tint_symbol_4 = 0;
|
||||
frexp_c084e3(&(tint_symbol_4));
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
thread int2 tint_symbol_5 = 0;
|
||||
frexp_c084e3(&(tint_symbol_5));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/c084e3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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_1 "arg_1"
|
||||
OpName %frexp_c084e3 "frexp_c084e3"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
||||
%_ptr_Output_float = OpTypePointer Output %float
|
||||
%8 = OpConstantNull %float
|
||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
||||
%int = OpTypeInt 32 1
|
||||
%v2int = OpTypeVector %int 2
|
||||
%_ptr_Private_v2int = OpTypePointer Private %v2int
|
||||
%13 = OpConstantNull %v2int
|
||||
%arg_1 = OpVariable %_ptr_Private_v2int Private %13
|
||||
%void = OpTypeVoid
|
||||
%14 = OpTypeFunction %void
|
||||
%v2float = OpTypeVector %float 2
|
||||
%21 = OpConstantNull %v2float
|
||||
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_c084e3 = OpFunction %void None %14
|
||||
%17 = OpLabel
|
||||
%res = OpVariable %_ptr_Function_v2float Function %21
|
||||
%18 = OpExtInst %v2float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_c084e3
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %14
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %14
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_c084e3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %14
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_c084e3
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,25 +0,0 @@
|
||||
intrinsics/gen/frexp/c084e3.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
var<private> arg_1 : vec2<i32>;
|
||||
|
||||
fn frexp_c084e3() {
|
||||
var res : vec2<f32> = frexp(vec2<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_c084e3();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_c084e3();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_c084e3();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(vec<2, f32>, ptr<function, vec<2, i32>, read>) -> vec<2, f32>
|
||||
fn frexp_d06c2c() {
|
||||
var arg_1: vec2<i32>;
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_d06c2c();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_d06c2c();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_d06c2c();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/d06c2c.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
float2 tint_frexp(float2 param_0, inout int2 param_1) {
|
||||
float2 float_exp;
|
||||
float2 significand = frexp(param_0, float_exp);
|
||||
param_1 = int2(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_d06c2c() {
|
||||
int2 arg_1 = int2(0, 0);
|
||||
float2 res = tint_frexp(float2(0.0f, 0.0f), arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_d06c2c();
|
||||
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() {
|
||||
frexp_d06c2c();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_d06c2c();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/d06c2c.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float2 tint_frexp(float2 param_0, thread int2* param_1) {
|
||||
int2 exp;
|
||||
float2 sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_d06c2c() {
|
||||
int2 arg_1 = 0;
|
||||
float2 res = tint_frexp(float2(), &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_d06c2c();
|
||||
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() {
|
||||
frexp_d06c2c();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_d06c2c();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
intrinsics/gen/frexp/d06c2c.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 39
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%20 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_d06c2c "frexp_d06c2c"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%v2int = OpTypeVector %int 2
|
||||
%_ptr_Function_v2int = OpTypePointer Function %v2int
|
||||
%17 = OpConstantNull %v2int
|
||||
%v2float = OpTypeVector %float 2
|
||||
%21 = OpConstantNull %v2float
|
||||
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
||||
%25 = OpTypeFunction %v4float
|
||||
%float_1 = OpConstant %float 1
|
||||
%frexp_d06c2c = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_v2int Function %17
|
||||
%res = OpVariable %_ptr_Function_v2float Function %21
|
||||
%18 = OpExtInst %v2float %20 Frexp %21 %arg_1
|
||||
OpStore %res %18
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %25
|
||||
%27 = OpLabel
|
||||
%28 = OpFunctionCall %void %frexp_d06c2c
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%30 = OpLabel
|
||||
%31 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %31
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_d06c2c
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%37 = OpLabel
|
||||
%38 = OpFunctionCall %void %frexp_d06c2c
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/d06c2c.wgsl:29:24 warning: use of deprecated intrinsic
|
||||
var res: vec2<f32> = frexp(vec2<f32>(), &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_d06c2c() {
|
||||
var arg_1 : vec2<i32>;
|
||||
var res : vec2<f32> = frexp(vec2<f32>(), &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_d06c2c();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_d06c2c();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_d06c2c();
|
||||
}
|
||||
@@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// fn frexp(f32, ptr<function, i32, write>) -> f32
|
||||
fn frexp_e061dd() {
|
||||
var arg_1: i32;
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_e061dd();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_e061dd();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_e061dd();
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
intrinsics/gen/frexp/e061dd.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
float tint_frexp(float param_0, inout int param_1) {
|
||||
float float_exp;
|
||||
float significand = frexp(param_0, float_exp);
|
||||
param_1 = int(float_exp);
|
||||
return significand;
|
||||
}
|
||||
|
||||
void frexp_e061dd() {
|
||||
int arg_1 = 0;
|
||||
float res = tint_frexp(1.0f, arg_1);
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value : SV_Position;
|
||||
};
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_e061dd();
|
||||
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() {
|
||||
frexp_e061dd();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
frexp_e061dd();
|
||||
return;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
intrinsics/gen/frexp/e061dd.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
float tint_frexp(float param_0, thread int* param_1) {
|
||||
int exp;
|
||||
float sig = frexp(param_0, exp);
|
||||
*param_1 = exp;
|
||||
return sig;
|
||||
}
|
||||
|
||||
struct tint_symbol {
|
||||
float4 value [[position]];
|
||||
};
|
||||
|
||||
void frexp_e061dd() {
|
||||
int arg_1 = 0;
|
||||
float res = tint_frexp(1.0f, &(arg_1));
|
||||
}
|
||||
|
||||
float4 vertex_main_inner() {
|
||||
frexp_e061dd();
|
||||
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() {
|
||||
frexp_e061dd();
|
||||
return;
|
||||
}
|
||||
|
||||
kernel void compute_main() {
|
||||
frexp_e061dd();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
intrinsics/gen/frexp/e061dd.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 36
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%18 = OpExtInstImport "GLSL.std.450"
|
||||
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 %frexp_e061dd "frexp_e061dd"
|
||||
OpName %arg_1 "arg_1"
|
||||
OpName %res "res"
|
||||
OpName %vertex_main_inner "vertex_main_inner"
|
||||
OpName %vertex_main "vertex_main"
|
||||
OpName %fragment_main "fragment_main"
|
||||
OpName %compute_main "compute_main"
|
||||
OpDecorate %value BuiltIn Position
|
||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
||||
%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
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%16 = OpConstantNull %int
|
||||
%float_1 = OpConstant %float 1
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%23 = OpTypeFunction %v4float
|
||||
%frexp_e061dd = OpFunction %void None %9
|
||||
%12 = OpLabel
|
||||
%arg_1 = OpVariable %_ptr_Function_int Function %16
|
||||
%res = OpVariable %_ptr_Function_float Function %8
|
||||
%17 = OpExtInst %float %18 Frexp %float_1 %arg_1
|
||||
OpStore %res %17
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%vertex_main_inner = OpFunction %v4float None %23
|
||||
%25 = OpLabel
|
||||
%26 = OpFunctionCall %void %frexp_e061dd
|
||||
OpReturnValue %5
|
||||
OpFunctionEnd
|
||||
%vertex_main = OpFunction %void None %9
|
||||
%28 = OpLabel
|
||||
%29 = OpFunctionCall %v4float %vertex_main_inner
|
||||
OpStore %value %29
|
||||
OpStore %vertex_point_size %float_1
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%fragment_main = OpFunction %void None %9
|
||||
%31 = OpLabel
|
||||
%32 = OpFunctionCall %void %frexp_e061dd
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%compute_main = OpFunction %void None %9
|
||||
%34 = OpLabel
|
||||
%35 = OpFunctionCall %void %frexp_e061dd
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,24 +0,0 @@
|
||||
intrinsics/gen/frexp/e061dd.wgsl:29:18 warning: use of deprecated intrinsic
|
||||
var res: f32 = frexp(1.0, &arg_1);
|
||||
^^^^^
|
||||
|
||||
fn frexp_e061dd() {
|
||||
var arg_1 : i32;
|
||||
var res : f32 = frexp(1.0, &(arg_1));
|
||||
}
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
||||
frexp_e061dd();
|
||||
return vec4<f32>();
|
||||
}
|
||||
|
||||
[[stage(fragment)]]
|
||||
fn fragment_main() {
|
||||
frexp_e061dd();
|
||||
}
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn compute_main() {
|
||||
frexp_e061dd();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user