summaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h
index f4ef7c73e..85b7e9f7b 100644
--- a/src/video_core/textures/decoders.h
+++ b/src/video_core/textures/decoders.h
@@ -22,19 +22,20 @@ inline std::size_t GetGOBSize() {
22void UnswizzleTexture(u8* unswizzled_data, VAddr address, u32 tile_size_x, u32 tile_size_y, 22void UnswizzleTexture(u8* unswizzled_data, VAddr address, u32 tile_size_x, u32 tile_size_y,
23 u32 bytes_per_pixel, u32 width, u32 height, u32 depth, 23 u32 bytes_per_pixel, u32 width, u32 height, u32 depth,
24 u32 block_height = TICEntry::DefaultBlockHeight, 24 u32 block_height = TICEntry::DefaultBlockHeight,
25 u32 block_depth = TICEntry::DefaultBlockHeight); 25 u32 block_depth = TICEntry::DefaultBlockHeight, u32 width_spacing = 0);
26/** 26/**
27 * Unswizzles a swizzled texture without changing its format. 27 * Unswizzles a swizzled texture without changing its format.
28 */ 28 */
29std::vector<u8> UnswizzleTexture(VAddr address, u32 tile_size_x, u32 tile_size_y, 29std::vector<u8> UnswizzleTexture(VAddr address, u32 tile_size_x, u32 tile_size_y,
30 u32 bytes_per_pixel, u32 width, u32 height, u32 depth, 30 u32 bytes_per_pixel, u32 width, u32 height, u32 depth,
31 u32 block_height = TICEntry::DefaultBlockHeight, 31 u32 block_height = TICEntry::DefaultBlockHeight,
32 u32 block_depth = TICEntry::DefaultBlockHeight); 32 u32 block_depth = TICEntry::DefaultBlockHeight,
33 u32 width_spacing = 0);
33 34
34/// Copies texture data from a buffer and performs swizzling/unswizzling as necessary. 35/// Copies texture data from a buffer and performs swizzling/unswizzling as necessary.
35void CopySwizzledData(u32 width, u32 height, u32 depth, u32 bytes_per_pixel, 36void CopySwizzledData(u32 width, u32 height, u32 depth, u32 bytes_per_pixel,
36 u32 out_bytes_per_pixel, u8* swizzled_data, u8* unswizzled_data, 37 u32 out_bytes_per_pixel, u8* swizzled_data, u8* unswizzled_data,
37 bool unswizzle, u32 block_height, u32 block_depth); 38 bool unswizzle, u32 block_height, u32 block_depth, u32 width_spacing);
38 39
39/** 40/**
40 * Decodes an unswizzled texture into a A8R8G8B8 texture. 41 * Decodes an unswizzled texture into a A8R8G8B8 texture.