rasterizer_cache: Touch up MatchFlags comments

This commit is contained in:
emufan4568
2022-09-06 22:32:16 +03:00
committed by GPUCode
parent 5ab5fdcc22
commit 623293d272
4 changed files with 26 additions and 44 deletions

View File

@ -89,4 +89,22 @@ ClearValue MakeClearValue(Aspect aspect, PixelFormat format, const u8* fill_data
return result;
}
Aspect ToAspect(SurfaceType type) {
switch (type) {
case SurfaceType::Color:
case SurfaceType::Texture:
case SurfaceType::Fill:
return Aspect::Color;
case SurfaceType::Depth:
return Aspect::Depth;
case SurfaceType::DepthStencil:
return Aspect::DepthStencil;
default:
LOG_CRITICAL(Render_OpenGL, "Unknown SurfaceType {}", type);
UNREACHABLE();
}
return Aspect::Color;
}
} // namespace OpenGL