• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; SPIR-V
2; Version: 1.0
3; Generator: Khronos Glslang Reference Front End; 7
4; Bound: 25
5; Schema: 0
6               OpCapability Shader
7               OpCapability StorageInputOutput16
8               OpCapability Float16
9               OpExtension "SPV_KHR_16bit_storage"
10          %1 = OpExtInstImport "GLSL.std.450"
11               OpMemoryModel Logical GLSL450
12               OpEntryPoint Fragment %main "main" %FragColor %UV
13               OpExecutionMode %main OriginUpperLeft
14               OpSource GLSL 450
15               OpSourceExtension "GL_EXT_shader_explicit_arithmetic_types_float16"
16               OpName %main "main"
17               OpName %FragColor "FragColor"
18               OpName %uTexture "uTexture"
19               OpName %UV "UV"
20               OpDecorate %FragColor Location 0
21               OpDecorate %uTexture DescriptorSet 0
22               OpDecorate %uTexture Binding 0
23               OpDecorate %UV Location 0
24       %void = OpTypeVoid
25          %3 = OpTypeFunction %void
26       %half = OpTypeFloat 16
27       %float = OpTypeFloat 32
28     %v4half = OpTypeVector %half 4
29     %v4float = OpTypeVector %float 4
30%_ptr_Output_v4half = OpTypePointer Output %v4half
31  %FragColor = OpVariable %_ptr_Output_v4half Output
32         %11 = OpTypeImage %float 2D 0 0 0 1 Unknown
33         %12 = OpTypeSampledImage %11
34%_ptr_UniformConstant_12 = OpTypePointer UniformConstant %12
35   %uTexture = OpVariable %_ptr_UniformConstant_12 UniformConstant
36     %v2half = OpTypeVector %half 2
37%_ptr_Input_v2half = OpTypePointer Input %v2half
38         %UV = OpVariable %_ptr_Input_v2half Input
39       %main = OpFunction %void None %3
40          %5 = OpLabel
41         %15 = OpLoad %12 %uTexture
42         %19 = OpLoad %v2half %UV
43         %23 = OpImageSampleImplicitLod %v4float %15 %19
44		 %24 = OpFConvert %v4half %23
45               OpStore %FragColor %24
46               OpReturn
47               OpFunctionEnd
48