devtools: fix not showing entire user data

This commit is contained in:
Vinicius Rangel 2024-11-30 12:27:25 -03:00
parent 35b397eae7
commit be930aa055
No known key found for this signature in database
GPG Key ID: A5B154D904B761D9

View File

@ -85,7 +85,7 @@ void RegView::ProcessShader(int shader_id) {
MemoryEditor hex_view; MemoryEditor hex_view;
hex_view.Open = true; hex_view.Open = true;
hex_view.ReadOnly = true; hex_view.ReadOnly = true;
hex_view.Cols = 8; hex_view.Cols = 16;
hex_view.OptShowAscii = false; hex_view.OptShowAscii = false;
hex_view.OptShowOptions = false; hex_view.OptShowOptions = false;
@ -376,7 +376,9 @@ void RegView::Draw() {
if (!shader) { if (!shader) {
Text("Stage not selected"); Text("Stage not selected");
} else { } else {
shader->hex_view.DrawContents(shader->user_data.data(), shader->user_data.size()); shader->hex_view.DrawContents(shader->user_data.data(),
shader->user_data.size() *
sizeof(Vulkan::Liverpool::UserData::value_type));
} }
} }
End(); End();