Replace FormatElement with ShaderConstant/ShaderVariableType

* FormatElement is now a static BufferFormatter class to help generate and parse
  buffer formatting strings
This commit is contained in:
baldurk
2019-11-28 14:29:00 +00:00
parent 4214aa45bf
commit b3979262a5
21 changed files with 929 additions and 666 deletions
+1 -1
View File
@@ -3622,7 +3622,7 @@ void TextureViewer::on_viewTexBuffer_clicked()
{
IBufferViewer *viewer =
m_Ctx.ViewTextureAsBuffer(texptr->resourceId, m_TexDisplay.subresource,
FormatElement::GenerateTextureBufferFormat(*texptr));
BufferFormatter::GetTextureFormatString(*texptr));
m_Ctx.AddDockWindow(viewer->Widget(), DockReference::AddTo, this);
}