mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-25 00:17:00 +02:00
fx
This commit is contained in:
parent
b82ab14aa7
commit
96412a1d7c
1 changed files with 9 additions and 2 deletions
|
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#undef PIXEL_FORMAT_LIST
|
||||||
|
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
|
|
@ -181,13 +183,18 @@ constexpr u32 BitsPerBlock(PixelFormat format) noexcept {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PIXEL_FORMAT_LIST
|
|
||||||
|
|
||||||
/// Returns the sizer in bytes of the specified pixel format
|
/// Returns the sizer in bytes of the specified pixel format
|
||||||
constexpr u32 BytesPerBlock(PixelFormat pixel_format) {
|
constexpr u32 BytesPerBlock(PixelFormat pixel_format) {
|
||||||
return BitsPerBlock(pixel_format) / CHAR_BIT;
|
return BitsPerBlock(pixel_format) / CHAR_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "video_core/gpu.h"
|
||||||
|
#include "video_core/textures/texture.h"
|
||||||
|
|
||||||
|
namespace VideoCore::Surface {
|
||||||
|
|
||||||
SurfaceTarget SurfaceTargetFromTextureType(Tegra::Texture::TextureType texture_type);
|
SurfaceTarget SurfaceTargetFromTextureType(Tegra::Texture::TextureType texture_type);
|
||||||
bool SurfaceTargetIsLayered(SurfaceTarget target);
|
bool SurfaceTargetIsLayered(SurfaceTarget target);
|
||||||
bool SurfaceTargetIsArray(SurfaceTarget target);
|
bool SurfaceTargetIsArray(SurfaceTarget target);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue