tests: Add minimal constant buffer constructor
Most of the time we have everything needed to allocate and fill
a constant buffer. But occasionally want to create the constBufferObj
and fill in the details later.
diff --git a/tests/xglrenderframework.cpp b/tests/xglrenderframework.cpp
index 202c49f..c6cef4d 100644
--- a/tests/xglrenderframework.cpp
+++ b/tests/xglrenderframework.cpp
@@ -791,6 +791,17 @@
}
+/*
+ * Basic ConstantBuffer constructor. Then use create methods to fill in the details.
+ */
+XglConstantBufferObj::XglConstantBufferObj(XglDevice *device)
+{
+ m_device = device;
+
+ memset(&m_constantBufferView,0,sizeof(m_constantBufferView));
+ memset(&m_constantBufferMem,0,sizeof(m_constantBufferMem));
+}
+
XglConstantBufferObj::XglConstantBufferObj(XglDevice *device, int constantCount, int constantSize, const void* data)
{
XGL_RESULT err = XGL_SUCCESS;