Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 4 | ; Bound: 24 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability DerivativeControl |
| 8 | OpMemoryModel Logical GLSL450 |
| 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 10 | OpExecutionMode %fragment_main OriginUpperLeft |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 11 | OpName %prevent_dce_block "prevent_dce_block" |
| 12 | OpMemberName %prevent_dce_block 0 "inner" |
| 13 | OpName %prevent_dce "prevent_dce" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 14 | OpName %dpdyFine_1fb7ab "dpdyFine_1fb7ab" |
| 15 | OpName %res "res" |
| 16 | OpName %fragment_main "fragment_main" |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 17 | OpDecorate %prevent_dce_block Block |
| 18 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 19 | OpDecorate %prevent_dce DescriptorSet 2 |
| 20 | OpDecorate %prevent_dce Binding 0 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 21 | %float = OpTypeFloat 32 |
| 22 | %v3float = OpTypeVector %float 3 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 23 | %prevent_dce_block = OpTypeStruct %v3float |
| 24 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 25 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| 26 | %void = OpTypeVoid |
| 27 | %6 = OpTypeFunction %void |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 28 | %float_1 = OpConstant %float 1 |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 29 | %12 = OpConstantComposite %v3float %float_1 %float_1 %float_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 30 | %_ptr_Function_v3float = OpTypePointer Function %v3float |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 31 | %15 = OpConstantNull %v3float |
| 32 | %uint = OpTypeInt 32 0 |
| 33 | %uint_0 = OpConstant %uint 0 |
| 34 | %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| 35 | %dpdyFine_1fb7ab = OpFunction %void None %6 |
| 36 | %9 = OpLabel |
| 37 | %res = OpVariable %_ptr_Function_v3float Function %15 |
| 38 | %10 = OpDPdyFine %v3float %12 |
| 39 | OpStore %res %10 |
| 40 | %19 = OpAccessChain %_ptr_StorageBuffer_v3float %prevent_dce %uint_0 |
| 41 | %20 = OpLoad %v3float %res |
| 42 | OpStore %19 %20 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 43 | OpReturn |
| 44 | OpFunctionEnd |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 45 | %fragment_main = OpFunction %void None %6 |
| 46 | %22 = OpLabel |
| 47 | %23 = OpFunctionCall %void %dpdyFine_1fb7ab |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 48 | OpReturn |
| 49 | OpFunctionEnd |