Commit 2844ce82 authored by Marek Olšák's avatar Marek Olšák

texwrap: test ARB_texture_compression

parent 86184439
......@@ -1050,6 +1050,12 @@ add_texwrap_test2(arb_depth_buffer_float, '2D', 'GL_DEPTH32F_STENCIL8')
arb_texture_compression = Group()
spec['ARB_texture_compression'] = arb_texture_compression
add_fbo_generatemipmap_extension(arb_texture_compression, 'GL_ARB_texture_compression', 'fbo-generatemipmap-formats')
add_texwrap_test2(arb_texture_compression, '2D', 'GL_COMPRESSED_ALPHA')
add_texwrap_test2(arb_texture_compression, '2D', 'GL_COMPRESSED_LUMINANCE')
add_texwrap_test2(arb_texture_compression, '2D', 'GL_COMPRESSED_LUMINANCE_ALPHA')
add_texwrap_test2(arb_texture_compression, '2D', 'GL_COMPRESSED_INTENSITY')
add_texwrap_test2(arb_texture_compression, '2D', 'GL_COMPRESSED_RGB')
add_texwrap_test2(arb_texture_compression, '2D', 'GL_COMPRESSED_RGBA')
ext_packed_depth_stencil = Group()
spec['EXT_packed_depth_stencil'] = ext_packed_depth_stencil
......
......@@ -220,6 +220,20 @@ struct format {
{FORMAT(GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2), 0, 0, 0, 4, 4, 0, 0, 0, 1, 999,
{"GL_EXT_texture_compression_latc"}},
/* ARB_texture_compression */
{FORMAT(GL_COMPRESSED_ALPHA), 0, 0, 0, 4, 0, 0, 0, 0, 1, 1.3,
{"GL_ARB_texture_compression"}},
{FORMAT(GL_COMPRESSED_LUMINANCE), 0, 0, 0, 0, 4, 0, 0, 0, 1, 1.3,
{"GL_ARB_texture_compression"}},
{FORMAT(GL_COMPRESSED_LUMINANCE_ALPHA), 0, 0, 0, 4, 4, 0, 0, 0, 1, 1.3,
{"GL_ARB_texture_compression"}},
{FORMAT(GL_COMPRESSED_INTENSITY), 0, 0, 0, 0, 0, 4, 0, 0, 1, 1.3,
{"GL_ARB_texture_compression"}},
{FORMAT(GL_COMPRESSED_RGB), 4, 4, 4, 0, 0, 0, 0, 0, 1, 1.3,
{"GL_ARB_texture_compression"}},
{FORMAT(GL_COMPRESSED_RGBA), 4, 4, 4, 4, 0, 0, 0, 0, 1, 1.3,
{"GL_ARB_texture_compression"}},
/* EXT_texture_compression_s3tc */
{FORMAT(GL_COMPRESSED_RGB_S3TC_DXT1), 4, 4, 4, 0, 0, 0, 0, 0, 1, 999,
{"GL_EXT_texture_compression_s3tc"}},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment