dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
Peter McNeeley | 52deb2f | 2024-10-17 19:01:27 +0000 | [diff] [blame] | 4 | ; Bound: 39 |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
Peter McNeeley | 52deb2f | 2024-10-17 19:01:27 +0000 | [diff] [blame] | 7 | %18 = OpExtInstImport "GLSL.std.450" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 8 | OpMemoryModel Logical GLSL450 |
| 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 10 | OpExecutionMode %fragment_main OriginUpperLeft |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 11 | OpMemberName %prevent_dce_block 0 "inner" |
| 12 | OpName %prevent_dce_block "prevent_dce_block" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 13 | 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 Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 18 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 19 | OpDecorate %prevent_dce_block Block |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 20 | OpDecorate %1 DescriptorSet 0 |
| 21 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 22 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 23 | 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 Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 29 | %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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 32 | %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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 39 | %float_1 = OpConstant %float 1 |
Peter McNeeley | 52deb2f | 2024-10-17 19:01:27 +0000 | [diff] [blame] | 40 | %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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 45 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 46 | %void = OpTypeVoid |
Peter McNeeley | 52deb2f | 2024-10-17 19:01:27 +0000 | [diff] [blame] | 47 | %32 = OpTypeFunction %void |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 48 | %_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 sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 54 | %15 = OpLoad %8 %arg_0 None |
| 55 | %16 = OpLoad %11 %arg_1 None |
Peter McNeeley | 52deb2f | 2024-10-17 19:01:27 +0000 | [diff] [blame] | 56 | %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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 62 | OpFunctionEnd |
Peter McNeeley | 52deb2f | 2024-10-17 19:01:27 +0000 | [diff] [blame] | 63 | %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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 68 | OpReturn |
| 69 | OpFunctionEnd |