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
@@ -451,7 +451,7 @@ void ResourceInspector::on_viewContents_clicked()
if(tex->type == TextureType::Buffer)
{
IBufferViewer *viewer = m_Ctx.ViewTextureAsBuffer(
tex->resourceId, Subresource(), FormatElement::GenerateTextureBufferFormat(*tex));
tex->resourceId, Subresource(), BufferFormatter::GetTextureFormatString(*tex));
m_Ctx.AddDockWindow(viewer->Widget(), DockReference::AddTo, this);
}