lgc/elfLinker/NullFragmentShader.cpp
Module *NullFragmentShader::generateEmptyModule() const {
  Module *module = new Module("nullFragmentShader", getContext());
  TargetMachine *targetMachine = m_lgcContext->getTargetMachine();
  module->setTargetTriple(targetMachine->getTargetTriple().getTriple());
  module->setDataLayout(targetMachine->createDataLayout());
  return module;
}
// =====================================================================================================================
// Creates an empty module to be used for generating the null fragment shader.
//
// @returns : The new module.
Creates an empty module to be used for generating the null fragment shader.
Creates an empty module to be used for generating the null fragment shader .
Module *NullFragmentShader::generateEmptyModule() const {
  Module *module = new Module("nullFragmentShader", getContext());
  TargetMachine *targetMachine = m_lgcContext->getTargetMachine();
  module->setTargetTriple(targetMachine->getTargetTriple().getTriple());
  module->setDataLayout(targetMachine->createDataLayout());
  return module;
}
Module * NullFragmentShader :: generateEmptyModule ( ) const { Module * module = new Module ( " " , getContext ( ) ) ; TargetMachine * targetMachine = m_lgcContext -> getTargetMachine ( ) ; module -> setTargetTriple ( targetMachine -> getTargetTriple ( ) . getTriple ( ) ) ; module -> setDataLayout ( targetMachine -> createDataLayout ( ) ) ; return module ; }
Creates an empty module to be used for generating the null fragment shader.
Creates an empty module to be used for generating the null fragment shader .