| 383 | } |
| 384 | |
| 385 | bool Shader::LoadFromCache(const char* shaderName, std::uint64_t shaderVersion, Introspection introspection) |
| 386 | { |
| 387 | ZoneScopedC(0x81A861); |
| 388 | if (shaderName != nullptr) { |
| 389 | // When Tracy is disabled the statement body is empty and braces are needed |
| 390 | ZoneText(shaderName, std::strlen(shaderName)); |
| 391 | } |
| 392 | |
| 393 | glShaderProgram_->Reset(); |
| 394 | glShaderProgram_->SetObjectLabel(shaderName); |
| 395 | return RenderResources::GetBinaryShaderCache().LoadFromCache(shaderName, shaderVersion, glShaderProgram_.get(), shaderToShaderProgramIntrospection(introspection)); |
| 396 | } |
| 397 | |
| 398 | bool Shader::SaveToCache(const char* shaderName, std::uint64_t shaderVersion) const |
| 399 | { |
no test coverage detected