mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-18 04:42:45 +01:00
18 lines
562 B
C++
18 lines
562 B
C++
// 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,
|
|
u32 block_height, u32 height, u32 block_depth, u32 depth, u32 tile_width_spacing,
|
|
u8* buffer, u8* addr);
|
|
|
|
} // namespace VideoCore
|