summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture/texture_decode.h
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-01-12 04:07:44 +0100
committerJames Rowe <jroweboy@gmail.com>2018-01-13 03:11:03 +0100
commit1d28b2e142f845773e2b90e267d9632e196a99b9 (patch)
tree027a3586a0fc927731afb3711c328c6dafc8551f /src/video_core/texture/texture_decode.h
parentMassive removal of unused modules (diff)
downloadyuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.gz
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.bz2
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.lz
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.xz
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.zst
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.zip
Diffstat (limited to 'src/video_core/texture/texture_decode.h')
-rw-r--r--src/video_core/texture/texture_decode.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/video_core/texture/texture_decode.h b/src/video_core/texture/texture_decode.h
deleted file mode 100644
index 8507cfeb8..000000000
--- a/src/video_core/texture/texture_decode.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2017 Citra Emulator Project
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#pragma once
-
-#include "common/common_types.h"
-#include "common/vector_math.h"
-#include "video_core/regs_texturing.h"
-
-namespace Pica {
-namespace Texture {
-
-/// Returns the byte size of a 8*8 tile of the specified texture format.
-size_t CalculateTileSize(TexturingRegs::TextureFormat format);
-
-struct TextureInfo {
- PAddr physical_address;
- unsigned int width;
- unsigned int height;
- ptrdiff_t stride;
- TexturingRegs::TextureFormat format;
-
- static TextureInfo FromPicaRegister(const TexturingRegs::TextureConfig& config,
- const TexturingRegs::TextureFormat& format);
-
- /// Calculates stride from format and width, assuming that the entire texture is contiguous.
- void SetDefaultStride() {
- stride = CalculateTileSize(format) * (width / 8);
- }
-};
-
-/**
- * Lookup texel located at the given coordinates and return an RGBA vector of its color.
- * @param source Source pointer to read data from
- * @param x,y Texture coordinates to read from
- * @param info TextureInfo object describing the texture setup
- * @param disable_alpha This is used for debug widgets which use this method to display textures
- * without providing a good way to visualize alpha by themselves. If true, this will return 255 for
- * the alpha component, and either drop the information entirely or store it in an "unused" color
- * channel.
- * @todo Eventually we should get rid of the disable_alpha parameter.
- */
-Math::Vec4<u8> LookupTexture(const u8* source, unsigned int x, unsigned int y,
- const TextureInfo& info, bool disable_alpha = false);
-
-/**
- * Looks up a texel from a single 8x8 texture tile.
- *
- * @param source Pointer to the beginning of the tile.
- * @param x, y In-tile coordinates to read from. Must be < 8.
- * @param info TextureInfo describing the texture format.
- * @param disable_alpha Used for debugging. Sets the result alpha to 255 and either discards the
- * real alpha or inserts it in an otherwise unused channel.
- */
-Math::Vec4<u8> LookupTexelInTile(const u8* source, unsigned int x, unsigned int y,
- const TextureInfo& info, bool disable_alpha);
-
-} // namespace Texture
-} // namespace Pica