RetroArch/deps/SPIRV-Cross/shaders/asm/comp/op-phi-swap.asm.comp
twinaphex 420b7913d4 Squashed 'deps/SPIRV-Cross/' changes from 8aa6731925..2820ab0b51
2820ab0b51 Merge pull request #1076 from KhronosGroup/bitcast-pre-330-glsl
63bcbd511e GLSL: Need extension to use bitcast on GLSL < 330.
9f3bebe3d0 Merge pull request #1075 from lifpan/master
b11c20fc1d Remove unreasonable assertion for OpTypeImage Sampled parameter.
1a592b7c0f Merge pull request #1067 from cdavis5e/msl-scalar-block-layout
28454facbb MSL: Handle packed matrices.
ea5c0ed82f MSL: Fix alignment of packed types.
44f688bf0b Merge pull request #1070 from KhronosGroup/fix-1066
25c74b324e Forget loop variable enables after emitting block chain.
6b010e0cbc Merge pull request #1069 from KhronosGroup/fix-1053
f6f849397e MSL: Re-roll array expressions in initializers.
e5fa7edfd6 MSL: Support scalar block layout.

git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: 2820ab0b51bf5e4187435d904b34e762b988f48b
2019-07-11 20:37:45 +02:00

64 lines
2.6 KiB
Plaintext

; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 39
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %gl_GlobalInvocationID
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %gl_GlobalInvocationID "gl_GlobalInvocationID"
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
OpDecorate %_struct_3 BufferBlock
OpDecorate %4 DescriptorSet 0
OpDecorate %4 Binding 0
OpDecorate %5 DescriptorSet 0
OpDecorate %5 Binding 1
OpDecorate %_runtimearr_float ArrayStride 4
OpMemberDecorate %_struct_3 0 Offset 0
%bool = OpTypeBool
%void = OpTypeVoid
%9 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%int = OpTypeInt 32 1
%float = OpTypeFloat 32
%v3uint = OpTypeVector %uint 3
%v3float = OpTypeVector %float 3
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
%_ptr_Uniform_int = OpTypePointer Uniform %int
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_runtimearr_int = OpTypeRuntimeArray %int
%_runtimearr_float = OpTypeRuntimeArray %float
%_struct_3 = OpTypeStruct %_runtimearr_float
%_ptr_Uniform__struct_3 = OpTypePointer Uniform %_struct_3
%4 = OpVariable %_ptr_Uniform__struct_3 Uniform
%5 = OpVariable %_ptr_Uniform__struct_3 Uniform
%_ptr_Function_float = OpTypePointer Function %float
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
%true = OpConstantTrue %bool
%false = OpConstantFalse %bool
%int_0 = OpConstant %int 0
%float_8_5 = OpConstant %float 8.5
%main = OpFunction %void None %9
%25 = OpLabel
%26 = OpVariable %_ptr_Function_float Function %float_8_5
%27 = OpLoad %v3uint %gl_GlobalInvocationID
%28 = OpCompositeExtract %uint %27 0
%29 = OpAccessChain %_ptr_Uniform_float %4 %int_0 %28
%30 = OpAccessChain %_ptr_Uniform_float %5 %int_0 %28
%31 = OpLoad %float %29
%32 = OpLoad %float %26
OpBranch %33
%33 = OpLabel
%34 = OpPhi %bool %true %25 %false %33
%35 = OpPhi %float %31 %25 %36 %33
%36 = OpPhi %float %32 %25 %35 %33
OpLoopMerge %37 %33 None
OpBranchConditional %34 %33 %37
%37 = OpLabel
%38 = OpFSub %float %35 %36
OpStore %30 %38
OpReturn
OpFunctionEnd