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

Function create_block

source/effect_codegen_glsl.cpp:2295–2304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2293 }
2294
2295 id create_block() override
2296 {
2297 const id res = make_id();
2298
2299 std::string &block = _blocks.emplace(res, std::string()).first->second;
2300 // Reserve a decently big enough memory block to avoid frequent reallocations
2301 block.reserve(4096);
2302
2303 return res;
2304 }
2305 id set_block(id id) override
2306 {
2307 _last_block = _current_block;

Callers 4

define_entry_pointMethod · 0.70
define_samplerMethod · 0.70
define_storageMethod · 0.70
define_entry_pointMethod · 0.70

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected