MCPcopy Create free account
hub / github.com/Inori/GPCS4 / defFunctionType

Method defFunctionType

GPCS4/Graphics/SpirV/SpirvModule.cpp:802–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800
801
802 uint32_t SpirvModule::defFunctionType(
803 uint32_t returnType,
804 uint32_t argCount,
805 const uint32_t* argTypes) {
806 std::vector<uint32_t> args;
807 args.push_back(returnType);
808
809 for (uint32_t i = 0; i < argCount; i++)
810 args.push_back(argTypes[i]);
811
812 return this->defType(spv::OpTypeFunction,
813 args.size(), args.data());
814 }
815
816
817 uint32_t SpirvModule::defStructType(

Callers 5

emitMainFunctionBeginMethod · 0.80
emitVsInitMethod · 0.80
emitPsInitMethod · 0.80
emitCsInitMethod · 0.80
emitFetchInputMethod · 0.80

Calls 4

defTypeMethod · 0.95
push_backMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected