Commit 99c1633e authored by Marek Olšák's avatar Marek Olšák

texwrap: test EXT_texture_snorm

parent 2c841b34
......@@ -1151,6 +1151,22 @@ ext_texture_snorm = Group()
spec['EXT_texture_snorm'] = ext_texture_snorm
add_fbo_generatemipmap_extension(ext_texture_snorm, 'GL_EXT_texture_snorm', 'fbo-generatemipmap-formats')
add_fbo_clear_extension(ext_texture_snorm, 'GL_EXT_texture_snorm', 'fbo-clear-formats')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_R8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_RG8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_RGB8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_RGBA8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_R16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_RG16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_RGB16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_RGBA16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_ALPHA8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_LUMINANCE8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_LUMINANCE8_ALPHA8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_INTENSITY8_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_ALPHA16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_LUMINANCE16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_LUMINANCE16_ALPHA16_SNORM')
add_texwrap_test2(ext_texture_snorm, '2D', 'GL_INTENSITY16_SNORM')
ext_texture_srgb = Group()
spec['EXT_texture_sRGB'] = ext_texture_srgb
......
......@@ -256,6 +256,40 @@ struct format {
{FORMAT(GL_COMPRESSED_LUMINANCE_ALPHA_3DC), 0, 0, 0, 4, 4, 0, 0, 0, 1, 999,
{"GL_ATI_texture_compression_3dc"}},
/* EXT_texture_snorm */
{FORMAT(GL_R8_SNORM), 8, 0, 0, 0, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_RG8_SNORM), 8, 8, 0, 0, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_RGB8_SNORM), 8, 8, 8, 0, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_RGBA8_SNORM), 8, 8, 8, 8, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_R16_SNORM), 16, 0, 0, 0, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_RG16_SNORM), 16, 16, 0, 0, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_RGB16_SNORM), 16, 16, 16, 0, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_RGBA16_SNORM), 16, 16, 16, 16, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_ALPHA8_SNORM), 0, 0, 0, 8, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_ALPHA16_SNORM), 0, 0, 0, 16, 0, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_LUMINANCE8_SNORM), 0, 0, 0, 0, 8, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_LUMINANCE16_SNORM), 0, 0, 0, 0, 16, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_LUMINANCE8_ALPHA8_SNORM), 0, 0, 0, 8, 8, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_LUMINANCE16_ALPHA16_SNORM),0, 0, 0, 16, 16, 0, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_INTENSITY8_SNORM), 0, 0, 0, 0, 0, 8, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{FORMAT(GL_INTENSITY16_SNORM), 0, 0, 0, 0, 0, 16, 0, 0, 0, 3.1,
{"GL_EXT_texture_snorm"}},
{0}
};
......
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