| 2204 | return set_block(0); |
| 2205 | } |
| 2206 | void leave_function() override |
| 2207 | { |
| 2208 | assert(_current_function != nullptr && _last_block != 0); |
| 2209 | |
| 2210 | _blocks.emplace(_current_function->id, _current_function_declaration + "{\n" + _blocks.at(_last_block) + "}\n"); |
| 2211 | |
| 2212 | _current_function = nullptr; |
| 2213 | _current_function_declaration.clear(); |
| 2214 | } |
| 2215 | }; |
| 2216 | |
| 2217 | #ifndef RESHADEFX_CODEGEN_HLSL_INLINE |
no test coverage detected