// // Copyright 2022 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // AstcDecompressorTestUtils.h: Utility functions for ASTC decompression tests #include <vector> #include "common/debug.h" namespace testing { struct Rgba { … }; static_assert …; // Creates a checkerboard image of a given size. The top left pixel will be black, and the remaining // pixels will alternate between black and white. // Note that both width and height must be multiples of 8 std::vector<Rgba> makeCheckerboard(int width, int height) { … } // Similar to makeCheckerboard(), but returns an ASTC-encoded image instead, with 8x8 block size. std::vector<uint8_t> makeAstcCheckerboard(int width, int height) { … } } // namespace testing