Beispiel #1
0
int test_image_ctor()
{
    int Error(0);

    gli::image ImageA(gli::FORMAT_RGBA8_UINT, gli::image::dim_type(4, 4, 1));
    gli::image ImageB(gli::FORMAT_RGBA8_UINT, gli::image::dim_type(4, 4, 1));
    gli::image ImageC = ImageA;
    gli::image ImageD(ImageA, gli::FORMAT_RGBA8_UNORM);
    gli::image ImageE(ImageD, gli::FORMAT_RGBA8_UNORM);

    Error += ImageA == ImageB ? 0 : 1;
    Error += ImageC == ImageB ? 0 : 1;
    Error += ImageA == ImageE ? 0 : 1;

    return Error;
}
Beispiel #2
0
int test_image_ctor()
{
	int Error(0);

	gli::image ImageA(
		gli::RGBA8U,
		gli::image::dimensions_type(4, 4, 1));
	gli::image ImageB(
		gli::image::dimensions_type(4, 4, 1), 
		4, 
		gli::image::dimensions_type(1));
	gli::image ImageC = ImageA;

	Error += ImageA == ImageB ? 0 : 1;
	Error += ImageC == ImageB ? 0 : 1;

	return Error;
}