Comments in header
| 2675 | |
| 2676 | // Comments in header |
| 2677 | Function* 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 |
| 2697 | Function* Builder::makeFunctionEntry(Decoration precision, Id returnType, const char* name, LinkageType linkType, |
no outgoing calls
no test coverage detected