| 2391 | return set_block(0); |
| 2392 | } |
| 2393 | void leave_function() override |
| 2394 | { |
| 2395 | assert(_current_function != nullptr && _last_block != 0); |
| 2396 | |
| 2397 | _blocks.emplace(_current_function->id, _current_function_declaration + "{\n" + _blocks.at(_last_block) + "}\n"); |
| 2398 | |
| 2399 | _current_function = nullptr; |
| 2400 | _current_function_declaration.clear(); |
| 2401 | } |
| 2402 | }; |
| 2403 | |
| 2404 | #ifndef RESHADEFX_CODEGEN_GLSL_INLINE |
no test coverage detected