+/** @brief Prepare texture data for the auxiliary texture.
+ *
+ * @tparam D Texture dimensions.
+ *
+ * @note parameters as passed to compressedTexImage*
+ */
+template <>
+void CompressedSubImageTest::CompressedTexImage<1>(glw::GLint internalformat)
+{
+ /* Shortcut for GL functionality. */
+ const glw::Functions& gl = m_context.getRenderContext().getFunctions();
+
+ gl.compressedTexImage1D(TextureTarget<1>(), 0, internalformat, s_texture_width, 0, m_reference_size,
+ m_compressed_texture_data);
+ GLU_EXPECT_NO_ERROR(gl.getError(), "glCompressedTexImage1D has failed");
+}
+
+/** @brief Prepare texture data for the auxiliary texture.
+ *
+ * @tparam D Texture dimensions.
+ *
+ * @note parameters as passed to compressedTexImage*
+ */
+template <>
+void CompressedSubImageTest::CompressedTexImage<2>(glw::GLint internalformat)
+{
+ /* Shortcut for GL functionality. */
+ const glw::Functions& gl = m_context.getRenderContext().getFunctions();
+
+ gl.compressedTexImage2D(TextureTarget<2>(), 0, internalformat, s_texture_width, s_texture_height, 0,
+ m_reference_size, m_compressed_texture_data);
+ GLU_EXPECT_NO_ERROR(gl.getError(), "glCompressedTexImage2D has failed");
+}
+
+/** @brief Prepare texture data for the auxiliary texture.
+ *
+ * @tparam D Texture dimensions.
+ *
+ * @note parameters as passed to compressedTexImage*
+ */
+template <>
+void CompressedSubImageTest::CompressedTexImage<3>(glw::GLint internalformat)
+{
+ /* Shortcut for GL functionality. */
+ const glw::Functions& gl = m_context.getRenderContext().getFunctions();
+
+ gl.compressedTexImage3D(TextureTarget<3>(), 0, internalformat, s_texture_width, s_texture_height, s_texture_depth,
+ 0, m_reference_size, m_compressed_texture_data);
+ GLU_EXPECT_NO_ERROR(gl.getError(), "glCompressedTexImage3D has failed");
+}
+