diff options
Diffstat (limited to 'src/video_core/surface.h')
| -rw-r--r-- | src/video_core/surface.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h index d3bcd38c5..0d17a93ed 100644 --- a/src/video_core/surface.h +++ b/src/video_core/surface.h | |||
| @@ -106,18 +106,8 @@ enum class PixelFormat { | |||
| 106 | Max = MaxDepthStencilFormat, | 106 | Max = MaxDepthStencilFormat, |
| 107 | Invalid = 255, | 107 | Invalid = 255, |
| 108 | }; | 108 | }; |
| 109 | |||
| 110 | static constexpr std::size_t MaxPixelFormat = static_cast<std::size_t>(PixelFormat::Max); | 109 | static constexpr std::size_t MaxPixelFormat = static_cast<std::size_t>(PixelFormat::Max); |
| 111 | 110 | ||
| 112 | enum class ComponentType { | ||
| 113 | Invalid = 0, | ||
| 114 | SNorm = 1, | ||
| 115 | UNorm = 2, | ||
| 116 | SInt = 3, | ||
| 117 | UInt = 4, | ||
| 118 | Float = 5, | ||
| 119 | }; | ||
| 120 | |||
| 121 | enum class SurfaceType { | 111 | enum class SurfaceType { |
| 122 | ColorTexture = 0, | 112 | ColorTexture = 0, |
| 123 | Depth = 1, | 113 | Depth = 1, |
| @@ -609,18 +599,8 @@ PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format); | |||
| 609 | 599 | ||
| 610 | PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format); | 600 | PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format); |
| 611 | 601 | ||
| 612 | PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format, | ||
| 613 | Tegra::Texture::ComponentType component_type, | ||
| 614 | bool is_srgb); | ||
| 615 | |||
| 616 | ComponentType ComponentTypeFromTexture(Tegra::Texture::ComponentType type); | ||
| 617 | |||
| 618 | ComponentType ComponentTypeFromRenderTarget(Tegra::RenderTargetFormat format); | ||
| 619 | |||
| 620 | PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format); | 602 | PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format); |
| 621 | 603 | ||
| 622 | ComponentType ComponentTypeFromDepthFormat(Tegra::DepthFormat format); | ||
| 623 | |||
| 624 | SurfaceType GetFormatType(PixelFormat pixel_format); | 604 | SurfaceType GetFormatType(PixelFormat pixel_format); |
| 625 | 605 | ||
| 626 | bool IsPixelFormatASTC(PixelFormat format); | 606 | bool IsPixelFormatASTC(PixelFormat format); |