@ -180,17 +180,13 @@ constexpr UnsignedByte CompressedData[]{
const struct {
const struct {
const char * name ;
const char * name ;
Containers : : ArrayView < const UnsignedByte > data ;
Containers : : ArrayView < const UnsignedByte > data ;
# ifndef MAGNUM_TARGET_GLES
CompressedPixelStorage storage ;
CompressedPixelStorage storage ;
# endif
Containers : : ArrayView < const UnsignedByte > dataSparse ;
Containers : : ArrayView < const UnsignedByte > dataSparse ;
std : : size_t offset ;
std : : size_t offset ;
} CompressedPixelStorageData [ ] {
} CompressedPixelStorageData [ ] {
{ " default pixel storage " ,
{ " default pixel storage " ,
Containers : : arrayView ( CompressedData ) . exceptPrefix ( 16 * 4 ) ,
Containers : : arrayView ( CompressedData ) . exceptPrefix ( 16 * 4 ) ,
# ifndef MAGNUM_TARGET_GLES
{ } ,
{ } ,
# endif
Containers : : arrayView ( CompressedData ) . exceptPrefix ( 16 * 4 ) , 0 } ,
Containers : : arrayView ( CompressedData ) . exceptPrefix ( 16 * 4 ) , 0 } ,
# ifndef MAGNUM_TARGET_GLES
# ifndef MAGNUM_TARGET_GLES
{ " skip Z " ,
{ " skip Z " ,
@ -253,17 +249,13 @@ constexpr UnsignedByte CompressedSubData[] = {
const struct {
const struct {
const char * name ;
const char * name ;
Containers : : ArrayView < const UnsignedByte > data ;
Containers : : ArrayView < const UnsignedByte > data ;
# ifndef MAGNUM_TARGET_GLES
CompressedPixelStorage storage ;
CompressedPixelStorage storage ;
# endif
Containers : : ArrayView < const UnsignedByte > dataSparse ;
Containers : : ArrayView < const UnsignedByte > dataSparse ;
std : : size_t offset ;
std : : size_t offset ;
} CompressedSubPixelStorageData [ ] {
} CompressedSubPixelStorageData [ ] {
{ " default pixel storage " ,
{ " default pixel storage " ,
Containers : : arrayView ( CompressedSubData ) . exceptPrefix ( 16 * 4 ) ,
Containers : : arrayView ( CompressedSubData ) . exceptPrefix ( 16 * 4 ) ,
# ifndef MAGNUM_TARGET_GLES
{ } ,
{ } ,
# endif
Containers : : arrayView ( CompressedSubData ) . exceptPrefix ( 16 * 4 ) , 0 } ,
Containers : : arrayView ( CompressedSubData ) . exceptPrefix ( 16 * 4 ) , 0 } ,
# ifndef MAGNUM_TARGET_GLES
# ifndef MAGNUM_TARGET_GLES
{ " skip Z " ,
{ " skip Z " ,
@ -843,9 +835,7 @@ void CubeMapTextureArrayGLTest::compressedImage() {
CubeMapTextureArray texture ;
CubeMapTextureArray texture ;
texture . setCompressedImage ( 0 , CompressedImageView3D {
texture . setCompressedImage ( 0 , CompressedImageView3D {
# ifndef MAGNUM_TARGET_GLES
data . storage ,
data . storage ,
# endif
CompressedPixelFormat : : RGBAS3tcDxt3 , { 4 , 4 , 6 } ,
CompressedPixelFormat : : RGBAS3tcDxt3 , { 4 , 4 , 6 } ,
data . dataSparse } ) ;
data . dataSparse } ) ;
@ -890,9 +880,7 @@ void CubeMapTextureArrayGLTest::compressedImageBuffer() {
CubeMapTextureArray texture ;
CubeMapTextureArray texture ;
texture . setCompressedImage ( 0 , CompressedBufferImage3D {
texture . setCompressedImage ( 0 , CompressedBufferImage3D {
# ifndef MAGNUM_TARGET_GLES
data . storage ,
data . storage ,
# endif
CompressedPixelFormat : : RGBAS3tcDxt3 , { 4 , 4 , 6 } ,
CompressedPixelFormat : : RGBAS3tcDxt3 , { 4 , 4 , 6 } ,
data . dataSparse ,
data . dataSparse ,
BufferUsage : : StaticDraw } ) ;
BufferUsage : : StaticDraw } ) ;
@ -928,9 +916,7 @@ void CubeMapTextureArrayGLTest::compressedImageQueryView() {
CubeMapTextureArray texture ;
CubeMapTextureArray texture ;
texture . setCompressedImage ( 0 , CompressedImageView3D {
texture . setCompressedImage ( 0 , CompressedImageView3D {
# ifndef MAGNUM_TARGET_GLES
data . storage ,
data . storage ,
# endif
CompressedPixelFormat : : RGBAS3tcDxt3 , { 4 , 4 , 6 } ,
CompressedPixelFormat : : RGBAS3tcDxt3 , { 4 , 4 , 6 } ,
data . dataSparse } ) ;
data . dataSparse } ) ;
@ -1238,9 +1224,7 @@ void CubeMapTextureArrayGLTest::compressedSubImage() {
texture . setCompressedImage ( 0 , CompressedImageView3D { CompressedPixelFormat : : RGBAS3tcDxt3 ,
texture . setCompressedImage ( 0 , CompressedImageView3D { CompressedPixelFormat : : RGBAS3tcDxt3 ,
{ 12 , 12 , 6 } , CompressedZero } ) ;
{ 12 , 12 , 6 } , CompressedZero } ) ;
texture . setCompressedSubImage ( 0 , { 4 , 4 , 1 } , CompressedImageView3D {
texture . setCompressedSubImage ( 0 , { 4 , 4 , 1 } , CompressedImageView3D {
# ifndef MAGNUM_TARGET_GLES
data . storage ,
data . storage ,
# endif
CompressedPixelFormat : : RGBAS3tcDxt3 , Vector3i { 4 } ,
CompressedPixelFormat : : RGBAS3tcDxt3 , Vector3i { 4 } ,
data . dataSparse } ) ;
data . dataSparse } ) ;
@ -1286,9 +1270,7 @@ void CubeMapTextureArrayGLTest::compressedSubImageBuffer() {
texture . setCompressedImage ( 0 , CompressedImageView3D { CompressedPixelFormat : : RGBAS3tcDxt3 ,
texture . setCompressedImage ( 0 , CompressedImageView3D { CompressedPixelFormat : : RGBAS3tcDxt3 ,
{ 12 , 12 , 6 } , CompressedZero } ) ;
{ 12 , 12 , 6 } , CompressedZero } ) ;
texture . setCompressedSubImage ( 0 , { 4 , 4 , 1 } , CompressedBufferImage3D {
texture . setCompressedSubImage ( 0 , { 4 , 4 , 1 } , CompressedBufferImage3D {
# ifndef MAGNUM_TARGET_GLES
data . storage ,
data . storage ,
# endif
CompressedPixelFormat : : RGBAS3tcDxt3 , Vector3i { 4 } ,
CompressedPixelFormat : : RGBAS3tcDxt3 , Vector3i { 4 } ,
data . dataSparse ,
data . dataSparse ,
BufferUsage : : StaticDraw } ) ;
BufferUsage : : StaticDraw } ) ;