summaryrefslogtreecommitdiff
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/surface.h')
-rw-r--r--src/video_core/surface.h20
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
110static constexpr std::size_t MaxPixelFormat = static_cast<std::size_t>(PixelFormat::Max); 109static constexpr std::size_t MaxPixelFormat = static_cast<std::size_t>(PixelFormat::Max);
111 110
112enum class ComponentType {
113 Invalid = 0,
114 SNorm = 1,
115 UNorm = 2,
116 SInt = 3,
117 UInt = 4,
118 Float = 5,
119};
120
121enum class SurfaceType { 111enum 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
610PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format); 600PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format);
611 601
612PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format,
613 Tegra::Texture::ComponentType component_type,
614 bool is_srgb);
615
616ComponentType ComponentTypeFromTexture(Tegra::Texture::ComponentType type);
617
618ComponentType ComponentTypeFromRenderTarget(Tegra::RenderTargetFormat format);
619
620PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format); 602PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format);
621 603
622ComponentType ComponentTypeFromDepthFormat(Tegra::DepthFormat format);
623
624SurfaceType GetFormatType(PixelFormat pixel_format); 604SurfaceType GetFormatType(PixelFormat pixel_format);
625 605
626bool IsPixelFormatASTC(PixelFormat format); 606bool IsPixelFormatASTC(PixelFormat format);