aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/astc.h
blob: 95c2c7ffea934de2bcfd5c0e94b1f5b6aecbf173 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

namespace Tegra::Texture::ASTC {

void Decompress(std::span<const uint8_t> data, uint32_t width, uint32_t height, uint32_t depth,
                uint32_t block_width, uint32_t block_height, std::span<uint8_t> output);

/// True if no 16-byte block in `data` decodes to alpha below 1.
bool IsOpaque(std::span<const uint8_t> data);

} // namespace Tegra::Texture::ASTC