| 28 | #if !BUILD_RELEASE |
| 29 | |
| 30 | void 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 |
nothing calls this directly
no test coverage detected