MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetDebugName

Method GetDebugName

Source/Engine/Graphics/Shaders/GPUShader.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#if !BUILD_RELEASE
29
30void GPUShaderProgram::GetDebugName(DebugName& name) const
31{
32 StringView ownerName = StringUtils::GetFileNameWithoutExtension(_owner->GetName());
33 name.AddUninitialized(ownerName.Length() + _name.Length() + 2);
34 char* dst = name.Get();
35 for (int32 i = 0; i < ownerName.Length(); i++)
36 dst[i] = (char)ownerName.Get()[i];
37 dst += ownerName.Length();
38 *dst = ':';
39 dst++;
40 for (int32 i = 0; i < _name.Length(); i++)
41 dst[i] = _name.Get()[i];
42 dst[_name.Length()] = 0;
43}
44
45#endif
46

Callers

nothing calls this directly

Calls 4

AddUninitializedMethod · 0.80
GetNameMethod · 0.45
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected