blob: 275ac63f0eb593d3a06196c57129ad7f3ff14985 [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
Peter McNeeley52deb2f2024-10-17 19:01:27 +00004; Bound: 39
dan sinclair1b77b6c2024-08-06 15:47:05 +00005; Schema: 0
6 OpCapability Shader
Peter McNeeley52deb2f2024-10-17 19:01:27 +00007 %18 = OpExtInstImport "GLSL.std.450"
dan sinclair1b77b6c2024-08-06 15:47:05 +00008 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpExecutionMode %fragment_main OriginUpperLeft
James Price71c1d542024-10-10 23:01:19 +000011 OpMemberName %prevent_dce_block 0 "inner"
12 OpName %prevent_dce_block "prevent_dce_block"
dan sinclair1b77b6c2024-08-06 15:47:05 +000013 OpName %arg_0 "arg_0"
14 OpName %arg_1 "arg_1"
15 OpName %textureSampleBias_d3fa1b "textureSampleBias_d3fa1b"
16 OpName %res "res"
17 OpName %fragment_main "fragment_main"
James Price71c1d542024-10-10 23:01:19 +000018 OpMemberDecorate %prevent_dce_block 0 Offset 0
19 OpDecorate %prevent_dce_block Block
dan sinclair1b77b6c2024-08-06 15:47:05 +000020 OpDecorate %1 DescriptorSet 0
21 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000022 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000023 OpDecorate %arg_0 DescriptorSet 1
24 OpDecorate %arg_0 Binding 0
25 OpDecorate %arg_1 DescriptorSet 1
26 OpDecorate %arg_1 Binding 1
27 %float = OpTypeFloat 32
28 %v4float = OpTypeVector %float 4
James Price71c1d542024-10-10 23:01:19 +000029%prevent_dce_block = OpTypeStruct %v4float
30%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
31 %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
dan sinclair1b77b6c2024-08-06 15:47:05 +000032 %8 = OpTypeImage %float 3D 0 0 0 1 Unknown
33%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
34 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
35 %11 = OpTypeSampler
36%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
37 %arg_1 = OpVariable %_ptr_UniformConstant_11 UniformConstant
38 %13 = OpTypeFunction %v4float
dan sinclair1b77b6c2024-08-06 15:47:05 +000039 %float_1 = OpConstant %float 1
Peter McNeeley52deb2f2024-10-17 19:01:27 +000040 %float_n16 = OpConstant %float -16
41%float_15_9899998 = OpConstant %float 15.9899998
42 %23 = OpTypeSampledImage %8
43 %v3float = OpTypeVector %float 3
44 %25 = OpConstantComposite %v3float %float_1 %float_1 %float_1
dan sinclair1b77b6c2024-08-06 15:47:05 +000045%_ptr_Function_v4float = OpTypePointer Function %v4float
46 %void = OpTypeVoid
Peter McNeeley52deb2f2024-10-17 19:01:27 +000047 %32 = OpTypeFunction %void
dan sinclair1b77b6c2024-08-06 15:47:05 +000048%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
49 %uint = OpTypeInt 32 0
50 %uint_0 = OpConstant %uint 0
51%textureSampleBias_d3fa1b = OpFunction %v4float None %13
52 %14 = OpLabel
53 %res = OpVariable %_ptr_Function_v4float Function
dan sinclair50260412024-08-28 19:43:27 +000054 %15 = OpLoad %8 %arg_0 None
55 %16 = OpLoad %11 %arg_1 None
Peter McNeeley52deb2f2024-10-17 19:01:27 +000056 %17 = OpExtInst %float %18 NClamp %float_1 %float_n16 %float_15_9899998
57 %22 = OpSampledImage %23 %15 %16
58 %24 = OpImageSampleImplicitLod %v4float %22 %25 Bias %17
59 OpStore %res %24
60 %29 = OpLoad %v4float %res None
61 OpReturnValue %29
dan sinclair1b77b6c2024-08-06 15:47:05 +000062 OpFunctionEnd
Peter McNeeley52deb2f2024-10-17 19:01:27 +000063%fragment_main = OpFunction %void None %32
64 %33 = OpLabel
65 %34 = OpFunctionCall %v4float %textureSampleBias_d3fa1b
66 %35 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0
67 OpStore %35 %34 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000068 OpReturn
69 OpFunctionEnd