MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / SetDebugName

Function SetDebugName

amd_geometryfx/src/GeometryFXUtility_Internal.h:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42template <typename T> void SetDebugName(T pObject, const char *s, ...)
43{
44 char buffer[512] = {};
45 va_list args;
46 va_start(args, s);
47 vsprintf_s(buffer, s, args);
48 va_end(args);
49 pObject->SetPrivateData(WKPDID_D3DDebugObjectName,
50 static_cast<UINT> (::strlen (buffer) - 1), buffer);
51}
52
53struct ShaderType
54{

Calls

no outgoing calls

Tested by

no test coverage detected