mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-30 11:41:21 -08:00
574e89d924
# Conflicts: # src/video_core/engines/kepler_memory.cpp # src/video_core/engines/maxwell_3d.cpp # src/video_core/morton.cpp # src/video_core/morton.h # src/video_core/renderer_opengl/gl_global_cache.cpp # src/video_core/renderer_opengl/gl_global_cache.h # src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
22 lines
744 B
C++
22 lines
744 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);
|
|
|
|
void MortonCopyPixels128(MortonSwizzleMode mode, u32 width, u32 height, u32 bytes_per_pixel,
|
|
u32 linear_bytes_per_pixel, u8* morton_data, u8* linear_data);
|
|
|
|
} // namespace VideoCore
|