mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Update resource.h
This commit is contained in:
parent
731d5f8f64
commit
16bef0f209
@ -152,6 +152,8 @@ enum class TilingMode : u32 {
|
|||||||
|
|
||||||
constexpr std::string_view NameOf(TilingMode type) {
|
constexpr std::string_view NameOf(TilingMode type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case TilingMode::Depth_MicroTiled:
|
||||||
|
return "Depth_MicroTiled";
|
||||||
case TilingMode::Depth_MacroTiled:
|
case TilingMode::Depth_MacroTiled:
|
||||||
return "Depth_MacroTiled";
|
return "Depth_MacroTiled";
|
||||||
case TilingMode::Display_Linear:
|
case TilingMode::Display_Linear:
|
||||||
@ -318,8 +320,7 @@ struct Image {
|
|||||||
|
|
||||||
TilingMode GetTilingMode() const {
|
TilingMode GetTilingMode() const {
|
||||||
if (tiling_index >= 0 && tiling_index <= 7) {
|
if (tiling_index >= 0 && tiling_index <= 7) {
|
||||||
return tiling_index == 5 ? TilingMode::Texture_MicroTiled
|
return tiling_index == 5 ? TilingMode::Depth_MicroTiled : TilingMode::Depth_MacroTiled;
|
||||||
: TilingMode::Depth_MacroTiled;
|
|
||||||
}
|
}
|
||||||
return static_cast<TilingMode>(tiling_index);
|
return static_cast<TilingMode>(tiling_index);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user