diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-19 02:50:00 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:30 +0100 |
commit | 16017ac4503603bcf8189583120ad8888242b0e1 (patch) | |
tree | 6ce351a11c53df3134efde1ca821aa2145bd9342 /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | gl_texture_cache: Fix depth and integer format scaling blits (diff) | |
download | yuzu-16017ac4503603bcf8189583120ad8888242b0e1.tar yuzu-16017ac4503603bcf8189583120ad8888242b0e1.tar.gz yuzu-16017ac4503603bcf8189583120ad8888242b0e1.tar.bz2 yuzu-16017ac4503603bcf8189583120ad8888242b0e1.tar.lz yuzu-16017ac4503603bcf8189583120ad8888242b0e1.tar.xz yuzu-16017ac4503603bcf8189583120ad8888242b0e1.tar.zst yuzu-16017ac4503603bcf8189583120ad8888242b0e1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index dc850e7b0..c75386e37 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -395,33 +395,6 @@ OGLTexture MakeImage(const VideoCommon::ImageInfo& info, GLenum gl_internal_form UNREACHABLE_MSG("Invalid image format={}", format); return GL_R32UI; } - -[[nodiscard]] bool IsPixelFormatInteger(PixelFormat format) { - switch (format) { - case PixelFormat::A8B8G8R8_SINT: - case PixelFormat::A8B8G8R8_UINT: - case PixelFormat::A2B10G10R10_UINT: - case PixelFormat::R8_SINT: - case PixelFormat::R8_UINT: - case PixelFormat::R16G16B16A16_SINT: - case PixelFormat::R16G16B16A16_UINT: - case PixelFormat::R32G32B32A32_UINT: - case PixelFormat::R32G32B32A32_SINT: - case PixelFormat::R32G32_SINT: - case PixelFormat::R16_UINT: - case PixelFormat::R16_SINT: - case PixelFormat::R16G16_UINT: - case PixelFormat::R16G16_SINT: - case PixelFormat::R8G8_SINT: - case PixelFormat::R8G8_UINT: - case PixelFormat::R32G32_UINT: - case PixelFormat::R32_UINT: - case PixelFormat::R32_SINT: - return true; - default: - return false; - } -} } // Anonymous namespace ImageBufferMap::~ImageBufferMap() { |