Add new EGL enum negative case to robustness tests am: c77b3cf9f3
[platform/upstream/VK-GL-CTS.git] / framework / referencerenderer / rrVertexAttrib.hpp
index 7e7debf..74846db 100644 (file)
@@ -123,7 +123,27 @@ struct VertexAttrib
                , pointer                       (DE_NULL)
        {
        }
-};
+
+       VertexAttrib (VertexAttribType type_, int size_, int stride_, int instanceDivisor_, const void* pointer_)
+               : type                          (type_)
+               , size                          (size_)
+               , stride                        (stride_)
+               , instanceDivisor       (instanceDivisor_)
+               , pointer                       (pointer_)
+       {
+       }
+
+       template<typename ScalarType>
+       explicit VertexAttrib (const tcu::Vector<ScalarType, 4>& generic_)
+               : type                          (VERTEXATTRIBTYPE_DONT_CARE)
+               , size                          (0)
+               , stride                        (0)
+               , instanceDivisor       (0)
+               , pointer                       (DE_NULL)
+               , generic                       (generic_)
+       {
+       }
+} DE_WARN_UNUSED_TYPE;
 
 bool           isValidVertexAttrib             (const VertexAttrib& vertexAttrib);
 // \todo [2013-04-01 pyry] Queries: isReadFloatValid(), isReadIntValid() ...