int main() { int Error(0); std::vector<gli::format> FormatsA; FormatsA.push_back(gli::FORMAT_RGBA8_UNORM); FormatsA.push_back(gli::FORMAT_RGB8_UNORM); FormatsA.push_back(gli::FORMAT_RGB_DXT1_UNORM); FormatsA.push_back(gli::FORMAT_RGBA_BP_UNORM); FormatsA.push_back(gli::FORMAT_RGBA32_SFLOAT); std::vector<gli::format> FormatsB; FormatsB.push_back(gli::FORMAT_RGBA8_UNORM); FormatsB.push_back(gli::FORMAT_RGB8_UNORM); FormatsB.push_back(gli::FORMAT_RGBA32_SFLOAT); std::size_t const TextureSize = 32; Error += test_texture1D(FormatsB, gli::texture1D::texelcoord_type(TextureSize)); Error += test_texture1DArray(FormatsB, gli::texture1DArray::texelcoord_type(TextureSize)); Error += test_texture2D(FormatsA, gli::texture2D::texelcoord_type(TextureSize)); Error += test_texture2DArray(FormatsA, gli::texture2DArray::texelcoord_type(TextureSize)); Error += test_texture3D(FormatsA, gli::texture3D::texelcoord_type(TextureSize)); Error += test_textureCube(FormatsA, gli::textureCube::texelcoord_type(TextureSize)); Error += test_textureCubeArray(FormatsA, gli::textureCubeArray::texelcoord_type(TextureSize)); return Error; }
int main() { int Error(0); std::vector<gli::format> FormatsA; FormatsA.push_back(gli::FORMAT_RGBA8_UNORM_PACK8); FormatsA.push_back(gli::FORMAT_RGB8_UNORM_PACK8); FormatsA.push_back(gli::FORMAT_RGB_DXT1_UNORM_BLOCK8); FormatsA.push_back(gli::FORMAT_RGBA_BP_UNORM_BLOCK16); FormatsA.push_back(gli::FORMAT_RGBA32_SFLOAT_PACK32); std::vector<gli::format> FormatsB; FormatsB.push_back(gli::FORMAT_RGBA8_UNORM_PACK8); FormatsB.push_back(gli::FORMAT_RGB8_UNORM_PACK8); FormatsB.push_back(gli::FORMAT_RGBA32_SFLOAT_PACK32); std::size_t const TextureSize = 32; Error += test_texture1D(FormatsB, gli::texture1d::extent_type(TextureSize)); Error += test_texture1DArray(FormatsB, gli::texture1d_array::extent_type(TextureSize)); Error += test_texture2D(FormatsA, gli::texture2d::extent_type(TextureSize)); Error += test_texture2DArray(FormatsA, gli::texture2d_array::extent_type(TextureSize)); Error += test_texture3D(FormatsA, gli::texture3d::extent_type(TextureSize)); Error += test_textureCube(FormatsA, gli::texture_cube::extent_type(TextureSize)); Error += test_textureCubeArray(FormatsA, gli::texture_cube_array::extent_type(TextureSize)); return Error; }
int main() { int Error(0); std::vector<gli::format> Formats; Formats.push_back(gli::RGBA8_UNORM); Formats.push_back(gli::RGB8_UNORM); Formats.push_back(gli::RGB_DXT1); Formats.push_back(gli::RGB_BP_UNORM); Formats.push_back(gli::RGBA32F); std::size_t const TextureSize = 32; Error += test_textureCubeArray(Formats, gli::textureCubeArray::dim_type(TextureSize)); Error += test_texture1D(Formats, gli::texture1D::dim_type(TextureSize)); Error += test_texture1DArray(Formats, gli::texture1DArray::dim_type(TextureSize)); Error += test_texture2D(Formats, gli::texture2D::dim_type(TextureSize)); Error += test_texture2DArray(Formats, gli::texture2DArray::dim_type(TextureSize)); Error += test_texture3D(Formats, gli::texture3D::dim_type(TextureSize)); Error += test_textureCube(Formats, gli::textureCube::dim_type(TextureSize)); return Error; }