Skip to content
Snippets Groups Projects
Commit f517949c authored by Philip Trettner's avatar Philip Trettner
Browse files

Updated glow

parent 95e9e615
No related branches found
No related tags found
No related merge requests found
glow @ 310e27f7
Subproject commit b25ffaee5d4ce32fc618a52278282e436d3fbdb3
Subproject commit 310e27f766f17c16dcda25a14f3eb8bbaccf0800
......@@ -33,3 +33,20 @@ GLOW_TEST(Texture2D, Data)
t.setData(GL_R32F, img);
ASSERT_EQ(t.getData<float>(), std::vector<float>({1, 2, 3, -1, -2, -3}));
}
GLOW_TEST(Texture2D, DataImmutable)
{
auto tex = Texture2D::createStorageImmutable(4, 2, GL_R8);
auto t = tex->bind();
t.setData<uint8_t>(GL_R8, 4, 2, {1, 2, 3, 4, 5, 6, 7, 8});
ASSERT_EQ(t.getData<uint8_t>(), std::vector<uint8_t>({1, 2, 3, 4, 5, 6, 7, 8}));
}
GLOW_TEST(Texture2D, FormatResize)
{
Texture2D::create(2, 2, GL_R8UI);
Texture2D::create(2, 2, GL_RG32I);
Texture2D::create(2, 2, GL_RGB16F);
Texture2D::create(2, 2, GL_RGBA8);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment