Better pipeline descriptions in shader viewer (shorter in overview, longer after click)

This commit is contained in:
Henrik Rydgård committed 2023-01-09 11:22:35 +01:00
1 parent c8a71894e3
commit 7672556e5c
5 files changed
+118 -92

No files matched your search

+1
View File
@@ -1157,6 +1157,7 @@ int ShaderListScreen::ListShaders(DebugShaderType shaderType, UI::LinearLayout *
for (const auto &id : shaderIds_) {
Choice *choice = view->Add(new Choice(gpu->DebugGetShaderString(id, shaderType, SHADER_STRING_SHORT_DESC)));
choice->SetTag(id);
choice->SetDrawTextFlags(FLAG_DYNAMIC_ASCII);
choice->OnClick.Handle(this, &ShaderListScreen::OnShaderClick);
count++;
}