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

Function create_block

source/effect_codegen_hlsl.cpp:2106–2115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2104 }
2105
2106 id create_block() override
2107 {
2108 const id res = make_id();
2109
2110 std::string &block = _blocks.emplace(res, std::string()).first->second;
2111 // Reserve a decently big enough memory block to avoid frequent reallocations
2112 block.reserve(4096);
2113
2114 return res;
2115 }
2116 id set_block(id id) override
2117 {
2118 _last_block = _current_block;

Callers 3

define_samplerFunction · 0.70
define_storageFunction · 0.70
define_entry_pointFunction · 0.70

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected