MCPcopy Create free account
hub / github.com/baldurk/renderdoc / DeclareFunction

Method DeclareFunction

renderdoc/driver/shaders/dxil/dxil_bytecode_editor.cpp:347–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347Function *ProgramEditor::DeclareFunction(const rdcstr &name, const Type *retType,
348 rdcarray<const Type *> params, Attribute desiredAttrs)
349{
350 Function *ret = GetFunctionByName(name);
351
352 if(!ret)
353 {
354 const Type *funcType = CreateFunctionType(retType, params);
355
356 Function functionDef;
357 functionDef.name = name;
358 functionDef.type = funcType;
359 functionDef.external = true;
360 functionDef.attrs = GetAttributeSet(desiredAttrs);
361
362 ret = DeclareFunction(functionDef);
363 }
364
365 return ret;
366}
367
368Block *ProgramEditor::CreateBlock()
369{

Callers 5

AnnotateDXILShaderFunction · 0.80
PayloadBufferCopyFunction · 0.80

Calls 5

emptyMethod · 0.45
push_backMethod · 0.45
backMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected