This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2018-11-25 02:53:17 +00:00
|
|
|
// Copyright 2018 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "video_core/surface.h"
|
|
|
|
|
|
|
|
namespace VideoCore {
|
|
|
|
|
|
|
|
enum class MortonSwizzleMode { MortonToLinear, LinearToMorton };
|
|
|
|
|
|
|
|
void MortonSwizzle(MortonSwizzleMode mode, VideoCore::Surface::PixelFormat format, u32 stride,
|
2018-11-16 17:01:54 +00:00
|
|
|
u32 block_height, u32 height, u32 block_depth, u32 depth, u32 tile_width_spacing,
|
2019-02-24 05:15:35 +00:00
|
|
|
u8* buffer, u8* addr);
|
2018-11-25 02:53:17 +00:00
|
|
|
|
2019-03-13 19:32:33 +00:00
|
|
|
void MortonCopyPixels128(MortonSwizzleMode mode, u32 width, u32 height, u32 bytes_per_pixel,
|
|
|
|
u32 linear_bytes_per_pixel, u8* morton_data, u8* linear_data);
|
2018-11-25 02:53:17 +00:00
|
|
|
|
2018-11-16 17:01:54 +00:00
|
|
|
} // namespace VideoCore
|