2021-06-03 11:26:17 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-07-26 14:27:25 +00:00
|
|
|
; Bound: 16
|
2021-06-03 11:26:17 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
|
|
OpExecutionMode %fragment_main OriginUpperLeft
|
|
|
|
OpName %fwidth_b83ebb "fwidth_b83ebb"
|
|
|
|
OpName %res "res"
|
|
|
|
OpName %fragment_main "fragment_main"
|
|
|
|
%void = OpTypeVoid
|
2021-06-22 20:19:49 +00:00
|
|
|
%1 = OpTypeFunction %void
|
|
|
|
%float = OpTypeFloat 32
|
2021-06-03 11:26:17 +00:00
|
|
|
%v2float = OpTypeVector %float 2
|
2022-07-26 14:27:25 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%9 = OpConstantComposite %v2float %float_1 %float_1
|
2021-06-03 11:26:17 +00:00
|
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
2022-07-26 14:27:25 +00:00
|
|
|
%12 = OpConstantNull %v2float
|
2021-06-22 20:19:49 +00:00
|
|
|
%fwidth_b83ebb = OpFunction %void None %1
|
|
|
|
%4 = OpLabel
|
2022-07-26 14:27:25 +00:00
|
|
|
%res = OpVariable %_ptr_Function_v2float Function %12
|
|
|
|
%5 = OpFwidth %v2float %9
|
2021-06-22 20:19:49 +00:00
|
|
|
OpStore %res %5
|
2021-06-03 11:26:17 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-06-22 20:19:49 +00:00
|
|
|
%fragment_main = OpFunction %void None %1
|
2022-07-26 14:27:25 +00:00
|
|
|
%14 = OpLabel
|
|
|
|
%15 = OpFunctionCall %void %fwidth_b83ebb
|
2021-06-03 11:26:17 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|