Ben Clayton | 053559d | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 1 | intrinsics/gen/modf/e38ae6.wgsl:29:18 warning: use of deprecated intrinsic |
| 2 | var res: f32 = modf(1.0, &arg_1); |
| 3 | ^^^^ |
| 4 | |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 5 | ; SPIR-V |
| 6 | ; Version: 1.3 |
| 7 | ; Generator: Google Tint Compiler; 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 8 | ; Bound: 30 |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 9 | ; Schema: 0 |
| 10 | OpCapability Shader |
Ben Clayton | 75db82c | 2021-06-18 22:44:31 +0000 | [diff] [blame] | 11 | %12 = OpExtInstImport "GLSL.std.450" |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 12 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 13 | OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1 |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 14 | OpExecutionMode %compute_main LocalSize 1 1 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 15 | OpName %local_invocation_index_1 "local_invocation_index_1" |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 16 | OpName %arg_1 "arg_1" |
| 17 | OpName %modf_e38ae6 "modf_e38ae6" |
| 18 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 19 | OpName %compute_main_inner "compute_main_inner" |
| 20 | OpName %local_invocation_index "local_invocation_index" |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 21 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 22 | OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex |
| 23 | %uint = OpTypeInt 32 0 |
| 24 | %_ptr_Input_uint = OpTypePointer Input %uint |
| 25 | %local_invocation_index_1 = OpVariable %_ptr_Input_uint Input |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 26 | %float = OpTypeFloat 32 |
| 27 | %_ptr_Workgroup_float = OpTypePointer Workgroup %float |
| 28 | %arg_1 = OpVariable %_ptr_Workgroup_float Workgroup |
| 29 | %void = OpTypeVoid |
Ben Clayton | 75db82c | 2021-06-18 22:44:31 +0000 | [diff] [blame] | 30 | %7 = OpTypeFunction %void |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 31 | %float_1 = OpConstant %float 1 |
| 32 | %_ptr_Function_float = OpTypePointer Function %float |
Ben Clayton | 75db82c | 2021-06-18 22:44:31 +0000 | [diff] [blame] | 33 | %17 = OpConstantNull %float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 34 | %18 = OpTypeFunction %void %uint |
Ben Clayton | 75db82c | 2021-06-18 22:44:31 +0000 | [diff] [blame] | 35 | %uint_2 = OpConstant %uint 2 |
| 36 | %uint_264 = OpConstant %uint 264 |
| 37 | %modf_e38ae6 = OpFunction %void None %7 |
| 38 | %10 = OpLabel |
| 39 | %res = OpVariable %_ptr_Function_float Function %17 |
| 40 | %11 = OpExtInst %float %12 Modf %float_1 %arg_1 |
| 41 | OpStore %res %11 |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 42 | OpReturn |
| 43 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 44 | %compute_main_inner = OpFunction %void None %18 |
| 45 | %local_invocation_index = OpFunctionParameter %uint |
| 46 | %21 = OpLabel |
Ben Clayton | 75db82c | 2021-06-18 22:44:31 +0000 | [diff] [blame] | 47 | OpStore %arg_1 %17 |
Ben Clayton | 75db82c | 2021-06-18 22:44:31 +0000 | [diff] [blame] | 48 | OpControlBarrier %uint_2 %uint_2 %uint_264 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 49 | %25 = OpFunctionCall %void %modf_e38ae6 |
| 50 | OpReturn |
| 51 | OpFunctionEnd |
| 52 | %compute_main = OpFunction %void None %7 |
| 53 | %27 = OpLabel |
| 54 | %29 = OpLoad %uint %local_invocation_index_1 |
| 55 | %28 = OpFunctionCall %void %compute_main_inner %29 |
Ben Clayton | 433b4ec | 2021-06-18 18:56:13 +0000 | [diff] [blame] | 56 | OpReturn |
| 57 | OpFunctionEnd |