MCPcopy Create free account
hub / github.com/Inori/GPCS4 / allocId

Method allocId

GPCS4/Graphics/SpirV/SpirvCodeBuffer.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44 uint32_t SpirvCodeBuffer::allocId() {
45 constexpr size_t BoundIdsOffset = 3;
46
47 if (m_code.size() <= BoundIdsOffset)
48 return 0;
49
50 return m_code[BoundIdsOffset]++;
51 }
52
53
54 void SpirvCodeBuffer::append(const SpirvCodeBuffer& other) {

Callers 1

eliminateInputMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected