mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +00:00
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
45 lines
1.8 KiB
JavaScript
45 lines
1.8 KiB
JavaScript
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Google spiregg; 0
|
|
; Bound: 29
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %in_var_TEXCOORD0 %out_var_SV_Target0
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpSource HLSL 600
|
|
OpName %type_2d_image "type.2d.image"
|
|
OpName %Tex "Tex"
|
|
OpName %in_var_TEXCOORD0 "in.var.TEXCOORD0"
|
|
OpName %out_var_SV_Target0 "out.var.SV_Target0"
|
|
OpName %main "main"
|
|
OpDecorate %in_var_TEXCOORD0 Flat
|
|
OpDecorate %in_var_TEXCOORD0 Location 0
|
|
OpDecorate %out_var_SV_Target0 Location 0
|
|
OpDecorate %Tex DescriptorSet 0
|
|
OpDecorate %Tex Binding 0
|
|
%int = OpTypeInt 32 1
|
|
%int_2 = OpConstant %int 2
|
|
%float = OpTypeFloat 32
|
|
%type_2d_image = OpTypeImage %float 2D 2 0 0 1 Unknown
|
|
%_ptr_UniformConstant_type_2d_image = OpTypePointer UniformConstant %type_2d_image
|
|
%uint = OpTypeInt 32 0
|
|
%v3uint = OpTypeVector %uint 3
|
|
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%void = OpTypeVoid
|
|
%16 = OpTypeFunction %void
|
|
%Tex = OpVariable %_ptr_UniformConstant_type_2d_image UniformConstant
|
|
%in_var_TEXCOORD0 = OpVariable %_ptr_Input_v3uint Input
|
|
%out_var_SV_Target0 = OpVariable %_ptr_Output_v4float Output
|
|
%main = OpFunction %void None %16
|
|
%19 = OpLabel
|
|
%20 = OpLoad %v3uint %in_var_TEXCOORD0
|
|
%21 = OpCompositeExtract %uint %20 2
|
|
%27 = OpLoad %type_2d_image %Tex
|
|
%28 = OpImageFetch %v4float %27 %20 Lod %21
|
|
OpStore %out_var_SV_Target0 %28
|
|
OpReturn
|
|
OpFunctionEnd
|