diff options
author | bunnei <bunneidev@gmail.com> | 2021-09-30 01:10:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 01:10:56 +0200 |
commit | 91341b421d23e3f1674bd0c2354636ff6b3c9180 (patch) | |
tree | f9f69fafb399eda88e177472e485add140a7c69a /src/video_core/renderer_opengl/util_shaders.h | |
parent | Merge pull request #7106 from astrelsky/invalid_iterator_fix (diff) | |
parent | host_shaders: Remove opengl_copy_bgra.comp (diff) | |
download | yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.tar yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.tar.gz yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.tar.bz2 yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.tar.lz yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.tar.xz yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.tar.zst yuzu-91341b421d23e3f1674bd0c2354636ff6b3c9180.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/util_shaders.h')
-rw-r--r-- | src/video_core/renderer_opengl/util_shaders.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/video_core/renderer_opengl/util_shaders.h b/src/video_core/renderer_opengl/util_shaders.h index ef881e35f..5de95ea7a 100644 --- a/src/video_core/renderer_opengl/util_shaders.h +++ b/src/video_core/renderer_opengl/util_shaders.h @@ -19,22 +19,6 @@ class ProgramManager; struct ImageBufferMap; -class Bgr565CopyPass { -public: - Bgr565CopyPass() = default; - ~Bgr565CopyPass() = default; - - void Execute(const Image& dst_image, const Image& src_image, - const VideoCommon::ImageCopy& copy); - -private: - [[nodiscard]] bool CopyBufferCreationNeeded(const VideoCommon::ImageCopy& copy); - void CreateNewCopyBuffer(const VideoCommon::ImageCopy& copy, GLenum target, GLuint format); - - OGLBuffer bgr16_pbo; - size_t bgr16_pbo_size{}; -}; - class UtilShaders { public: explicit UtilShaders(ProgramManager& program_manager); @@ -55,9 +39,6 @@ public: void CopyBC4(Image& dst_image, Image& src_image, std::span<const VideoCommon::ImageCopy> copies); - void CopyBGR(Image& dst_image, Image& src_image, - std::span<const VideoCommon::ImageCopy> copies); - private: ProgramManager& program_manager; @@ -67,10 +48,7 @@ private: OGLProgram block_linear_unswizzle_2d_program; OGLProgram block_linear_unswizzle_3d_program; OGLProgram pitch_unswizzle_program; - OGLProgram copy_bgra_program; OGLProgram copy_bc4_program; - - Bgr565CopyPass bgr_copy_pass; }; GLenum StoreFormat(u32 bytes_per_block); |