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

Method makeEntryPoint

SPIRV/SpvBuilder.cpp:2677–2694  ·  view source on GitHub ↗

Comments in header

Source from the content-addressed store, hash-verified

2675
2676// Comments in header
2677Function* Builder::makeEntryPoint(const char* entryPoint)
2678{
2679 assert(! entryPointFunction);
2680
2681 auto const returnType = makeVoidType();
2682
2683 restoreNonSemanticShaderDebugInfo = emitNonSemanticShaderDebugInfo;
2684 if(sourceLang == spv::SourceLanguage::HLSL) {
2685 emitNonSemanticShaderDebugInfo = false;
2686 }
2687
2688 Block* entry = nullptr;
2689 entryPointFunction = makeFunctionEntry(NoPrecision, returnType, entryPoint, LinkageType::Max, {}, {}, &entry);
2690
2691 emitNonSemanticShaderDebugInfo = restoreNonSemanticShaderDebugInfo;
2692
2693 return entryPointFunction;
2694}
2695
2696// Comments in header
2697Function* Builder::makeFunctionEntry(Decoration precision, Id returnType, const char* name, LinkageType linkType,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected