MCPcopy Create free account
hub / github.com/crosire/reshade / leave_function

Function leave_function

source/effect_codegen_hlsl.cpp:2206–2214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

define_entry_pointFunction · 0.70

Calls 3

emplaceMethod · 0.80
atMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected