| 2573 | return set_block(0); |
| 2574 | } |
| 2575 | void leave_function() override |
| 2576 | { |
| 2577 | assert(is_in_function()); // Can only leave if there was a function to begin with |
| 2578 | |
| 2579 | _current_function_blocks->definition = _block_data[_last_block]; |
| 2580 | |
| 2581 | // Append function end instruction |
| 2582 | add_instruction_without_result(spv::OpFunctionEnd, _current_function_blocks->definition); |
| 2583 | |
| 2584 | _current_function = nullptr; |
| 2585 | _current_function_blocks = nullptr; |
| 2586 | } |
| 2587 | }; |
| 2588 | |
| 2589 | #ifndef RESHADEFX_CODEGEN_SPIRV_INLINE |
no test coverage detected