Add support for raw buffer views (not mesh output)

This commit is contained in:
baldurk
2017-01-26 23:31:58 +00:00
parent bac0c011cd
commit 9690db525b
9 changed files with 561 additions and 331 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ BufferViewer *CaptureContext::meshPreview()
if(m_MeshPreview)
return m_MeshPreview;
m_MeshPreview = new BufferViewer(this, m_MainWindow);
m_MeshPreview = new BufferViewer(this, true, m_MainWindow);
m_MeshPreview->setObjectName("meshPreview");
setupDockWindow(m_MeshPreview);
+1 -1
View File
@@ -759,7 +759,7 @@ ShaderVariable FormatElement::GetShaderVar(const byte *&data, const byte *end) c
return ret;
}
uint32_t FormatElement::byteSize()
uint32_t FormatElement::byteSize() const
{
uint32_t vecSize = format.compByteWidth * format.compCount;
+1 -1
View File
@@ -373,7 +373,7 @@ struct FormatElement
QString ElementString(const QVariant &var);
uint32_t byteSize();
uint32_t byteSize() const;
QString name;
int buffer;