MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / createUndefined

Method createUndefined

SPIRV/SpvBuilder.cpp:3045–3050  ·  view source on GitHub ↗

Comments in header

Source from the content-addressed store, hash-verified

3043
3044// Comments in header
3045Id Builder::createUndefined(Id type)
3046{
3047 Instruction* inst = new Instruction(getUniqueId(), type, Op::OpUndef);
3048 addInstruction(std::unique_ptr<Instruction>(inst));
3049 return inst->getResultId();
3050}
3051
3052// av/vis/nonprivate are unnecessary and illegal for some storage classes.
3053spv::MemoryAccessMask Builder::sanitizeMemoryAccessForStorageClass(spv::MemoryAccessMask memoryAccess, StorageClass sc)

Callers

nothing calls this directly

Calls 1

getResultIdMethod · 0.80

Tested by

no test coverage detected