int run() { int Error(0); gli::texture Texture(gli::TARGET_1D, gli::FORMAT_RGBA8_UNORM_PACK8, gli::texture::extent_type(1), 1, 1, 1); gli::texture1d Texture1D(Texture); gli::texture1d_array Texture1DArray(Texture); gli::texture2d Texture2D(Texture); gli::texture2d_array Texture2DArray(Texture); gli::texture3d Texture3D(Texture); gli::texture_cube TextureCube(Texture); gli::texture_cube_array TextureCubeArray(Texture); Error += Texture == Texture1D ? 0 : 1; Error += Texture != Texture1DArray ? 0 : 1; Error += Texture != Texture2D ? 0 : 1; Error += Texture != Texture2DArray ? 0 : 1; Error += Texture != Texture3D ? 0 : 1; Error += Texture != TextureCube ? 0 : 1; Error += Texture != TextureCubeArray ? 0 : 1; gli::texture Texture1D_B(Texture1D); gli::texture Texture1DArray_B(Texture1DArray); gli::texture Texture2D_B(Texture2D); gli::texture Texture2DArray_B(Texture2DArray); gli::texture Texture3D_B(Texture3D); gli::texture TextureCube_B(TextureCube); gli::texture TextureCubeArray_B(TextureCubeArray); Error += Texture == Texture1D_B ? 0 : 1; Error += Texture != Texture1DArray_B ? 0 : 1; Error += Texture != Texture2D_B ? 0 : 1; Error += Texture != Texture2DArray_B ? 0 : 1; Error += Texture != Texture3D_B ? 0 : 1; Error += Texture != TextureCube_B ? 0 : 1; Error += Texture != TextureCubeArray_B ? 0 : 1; Error += Texture1D == Texture1D_B ? 0 : 1; Error += Texture1DArray == Texture1DArray_B ? 0 : 1; Error += Texture2D == Texture2D_B ? 0 : 1; Error += Texture2DArray == Texture2DArray_B ? 0 : 1; Error += Texture3D == Texture3D_B ? 0 : 1; Error += TextureCube == TextureCube_B ? 0 : 1; Error += TextureCubeArray == TextureCubeArray_B ? 0 : 1; return Error; }
int run() { int Error(0); gli::texture Texture(gli::TARGET_1D, gli::FORMAT_RGBA8_UNORM, gli::texture::texelcoord_type(1), 1, 1, 1); gli::texture1D Texture1D(Texture); gli::texture1DArray Texture1DArray(Texture); gli::texture2D Texture2D(Texture); gli::texture2DArray Texture2DArray(Texture); gli::texture3D Texture3D(Texture); gli::textureCube TextureCube(Texture); gli::textureCubeArray TextureCubeArray(Texture); Error += Texture == Texture1D ? 0 : 1; Error += Texture != Texture1DArray ? 0 : 1; Error += Texture != Texture2D ? 0 : 1; Error += Texture != Texture2DArray ? 0 : 1; Error += Texture != Texture3D ? 0 : 1; Error += Texture != TextureCube ? 0 : 1; Error += Texture != TextureCubeArray ? 0 : 1; gli::texture Texture1D_B(Texture1D); gli::texture Texture1DArray_B(Texture1DArray); gli::texture Texture2D_B(Texture2D); gli::texture Texture2DArray_B(Texture2DArray); gli::texture Texture3D_B(Texture3D); gli::texture TextureCube_B(TextureCube); gli::texture TextureCubeArray_B(TextureCubeArray); Error += Texture == Texture1D_B ? 0 : 1; Error += Texture != Texture1DArray_B ? 0 : 1; Error += Texture != Texture2D_B ? 0 : 1; Error += Texture != Texture2DArray_B ? 0 : 1; Error += Texture != Texture3D_B ? 0 : 1; Error += Texture != TextureCube_B ? 0 : 1; Error += Texture != TextureCubeArray_B ? 0 : 1; Error += Texture1D == Texture1D_B ? 0 : 1; Error += Texture1DArray == Texture1DArray_B ? 0 : 1; Error += Texture2D == Texture2D_B ? 0 : 1; Error += Texture2DArray == Texture2DArray_B ? 0 : 1; Error += Texture3D == Texture3D_B ? 0 : 1; Error += TextureCube == TextureCube_B ? 0 : 1; Error += TextureCubeArray == TextureCubeArray_B ? 0 : 1; return Error; }