mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 20:54:10 +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
63 lines
2.5 KiB
JavaScript
63 lines
2.5 KiB
JavaScript
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos Glslang Reference Front End; 1
|
|
; Bound: 36
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpCapability SampledBuffer
|
|
OpCapability ImageBuffer
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %_entryPointOutput
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %main "main"
|
|
OpName %_main_ "@main("
|
|
OpName %storeTemp "storeTemp"
|
|
OpName %RWTex "RWTex"
|
|
OpName %Tex "Tex"
|
|
OpName %_entryPointOutput "@entryPointOutput"
|
|
OpDecorate %RWTex DescriptorSet 0
|
|
OpDecorate %Tex DescriptorSet 0
|
|
OpDecorate %RWTex Binding 0
|
|
OpDecorate %Tex Binding 1
|
|
OpDecorate %_entryPointOutput Location 0
|
|
%void = OpTypeVoid
|
|
%3 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%8 = OpTypeFunction %v4float
|
|
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
|
%13 = OpConstant %float 1
|
|
%14 = OpConstant %float 2
|
|
%15 = OpConstant %float 3
|
|
%16 = OpConstant %float 4
|
|
%17 = OpConstantComposite %v4float %13 %14 %15 %16
|
|
%18 = OpTypeImage %float Buffer 0 0 0 2 Rgba32f
|
|
%_ptr_UniformConstant_18 = OpTypePointer UniformConstant %18
|
|
%RWTex = OpVariable %_ptr_UniformConstant_18 UniformConstant
|
|
%int = OpTypeInt 32 1
|
|
%23 = OpConstant %int 20
|
|
%25 = OpTypeImage %float Buffer 0 0 0 1 Rgba32f
|
|
%_ptr_UniformConstant_25 = OpTypePointer UniformConstant %25
|
|
%Tex = OpVariable %_ptr_UniformConstant_25 UniformConstant
|
|
%29 = OpConstant %int 10
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%_entryPointOutput = OpVariable %_ptr_Output_v4float Output
|
|
%main = OpFunction %void None %3
|
|
%5 = OpLabel
|
|
%35 = OpFunctionCall %v4float %_main_
|
|
OpStore %_entryPointOutput %35
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%_main_ = OpFunction %v4float None %8
|
|
%10 = OpLabel
|
|
%storeTemp = OpVariable %_ptr_Function_v4float Function
|
|
OpStore %storeTemp %17
|
|
%21 = OpLoad %18 %RWTex
|
|
%24 = OpLoad %v4float %storeTemp
|
|
OpImageWrite %21 %23 %24
|
|
%28 = OpLoad %25 %Tex
|
|
%30 = OpImageFetch %v4float %28 %29
|
|
OpReturnValue %30
|
|
OpFunctionEnd
|