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

Function leave_function

source/effect_codegen_spirv.cpp:2575–2586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

define_entry_pointMethod · 0.70

Calls 1

is_in_functionFunction · 0.85

Tested by

no test coverage detected