llpc/tool/llpcGraphicsPipelineBuilder.cpp
Error GraphicsPipelineBuilder::build() {
  CompileInfo &compileInfo = getCompileInfo();

  Expected<BinaryData> pipelineOrErr = buildGraphicsPipeline();
  if (Error err = pipelineOrErr.takeError())
    return err;

  Result result = decodePipelineBinary(&*pipelineOrErr, &compileInfo);
  if (result != Result::Success)
    return createResultError(result, "Failed to decode pipeline");

  return Error::success();
}
// =====================================================================================================================
// Builds pipeline using the provided build info and performs linking.
//
// @returns : `llvm::ErrorSuccess` on success, `llpc::ResultError` on failure.
Builds pipeline using the provided build info and performs linking.
Builds pipeline using the provided build info and performs linking .
Error GraphicsPipelineBuilder::build() {
  CompileInfo &compileInfo = getCompileInfo();
  Expected<BinaryData> pipelineOrErr = buildGraphicsPipeline();
  if (Error err = pipelineOrErr.takeError())
    return err;
  Result result = decodePipelineBinary(&*pipelineOrErr, &compileInfo);
  if (result != Result::Success)
    return createResultError(result, "Failed to decode pipeline");
  return Error::success();
}
Error GraphicsPipelineBuilder :: build ( ) { CompileInfo & compileInfo = getCompileInfo ( ) ; Expected < BinaryData > pipelineOrErr = buildGraphicsPipeline ( ) ; if ( Error err = pipelineOrErr . takeError ( ) ) return err ; Result result = decodePipelineBinary ( & * pipelineOrErr , & compileInfo ) ; if ( result != Result :: Success ) return createResultError ( result , " " ) ; return Error :: success ( ) ; }
Builds pipeline using the provided build info and performs linking.
Builds pipeline using the provided build info and performs linking .