|
|
@ -214,23 +214,16 @@ PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SurfaceType GetFormatType(PixelFormat pixel_format) {
|
|
|
|
SurfaceType GetFormatType(PixelFormat pixel_format) {
|
|
|
|
if (static_cast<std::size_t>(pixel_format) <
|
|
|
|
if (pixel_format < PixelFormat::MaxColorFormat) {
|
|
|
|
static_cast<std::size_t>(PixelFormat::MaxColorFormat)) {
|
|
|
|
|
|
|
|
return SurfaceType::ColorTexture;
|
|
|
|
return SurfaceType::ColorTexture;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pixel_format < PixelFormat::MaxDepthFormat) {
|
|
|
|
if (static_cast<std::size_t>(pixel_format) <
|
|
|
|
|
|
|
|
static_cast<std::size_t>(PixelFormat::MaxDepthFormat)) {
|
|
|
|
|
|
|
|
return SurfaceType::Depth;
|
|
|
|
return SurfaceType::Depth;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pixel_format < PixelFormat::MaxStencilFormat) {
|
|
|
|
if (static_cast<std::size_t>(pixel_format) <
|
|
|
|
|
|
|
|
static_cast<std::size_t>(PixelFormat::MaxStencilFormat)) {
|
|
|
|
|
|
|
|
return SurfaceType::Stencil;
|
|
|
|
return SurfaceType::Stencil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pixel_format < PixelFormat::MaxDepthStencilFormat) {
|
|
|
|
if (static_cast<std::size_t>(pixel_format) <
|
|
|
|
|
|
|
|
static_cast<std::size_t>(PixelFormat::MaxDepthStencilFormat)) {
|
|
|
|
|
|
|
|
return SurfaceType::DepthStencil;
|
|
|
|
return SurfaceType::DepthStencil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|