mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
420b7913d4
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
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos Glslang Reference Front End; 7
|
|
; Bound: 29
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %FragColor %vFloat
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpSource GLSL 450
|
|
OpName %main "main"
|
|
OpName %FragColor "FragColor"
|
|
OpName %vFloat "vFloat"
|
|
OpName %undef "undef"
|
|
OpDecorate %FragColor Location 0
|
|
OpDecorate %vFloat Location 0
|
|
%void = OpTypeVoid
|
|
%3 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%FragColor = OpVariable %_ptr_Output_v4float Output
|
|
%_ptr_Input_v4float = OpTypePointer Input %v4float
|
|
%vFloat = OpVariable %_ptr_Input_v4float Input
|
|
%v2float = OpTypeVector %float 2
|
|
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
|
%undef = OpUndef %v4float
|
|
%uint = OpTypeInt 32 0
|
|
%uint_2 = OpConstant %uint 2
|
|
%_ptr_Private_float = OpTypePointer Private %float
|
|
%uint_3 = OpConstant %uint 3
|
|
%_ptr_Input_float = OpTypePointer Input %float
|
|
%main = OpFunction %void None %3
|
|
%5 = OpLabel
|
|
%13 = OpLoad %v4float %vFloat
|
|
%26 = OpVectorShuffle %v4float %13 %undef 4 1 0xffffffff 3
|
|
%27 = OpVectorShuffle %v4float %13 %13 2 1 0xffffffff 3
|
|
%28 = OpFAdd %v4float %26 %27
|
|
OpStore %FragColor %28
|
|
OpReturn
|
|
OpFunctionEnd
|