mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-27 08:05:42 +00:00
When opening buffer textures, auto-generate a reasonable buffer format.
This commit is contained in:
@@ -449,7 +449,8 @@ void ResourceInspector::on_viewContents_clicked()
|
||||
{
|
||||
if(tex->type == TextureType::Buffer)
|
||||
{
|
||||
IBufferViewer *viewer = m_Ctx.ViewTextureAsBuffer(0, 0, tex->resourceId);
|
||||
IBufferViewer *viewer = m_Ctx.ViewTextureAsBuffer(
|
||||
0, 0, tex->resourceId, FormatElement::GenerateTextureBufferFormat(*tex));
|
||||
|
||||
m_Ctx.AddDockWindow(viewer->Widget(), DockReference::AddTo, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user