diff options
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/TextureEncoder.h')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/TextureEncoder.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/TextureEncoder.h b/Source/Core/VideoBackends/Vulkan/TextureEncoder.h index daea8b59ff..c3fa68c752 100644 --- a/Source/Core/VideoBackends/Vulkan/TextureEncoder.h +++ b/Source/Core/VideoBackends/Vulkan/TextureEncoder.h @@ -15,7 +15,6 @@ namespace Vulkan { class StagingTexture2D; -class StateTracker; class Texture2D; class TextureEncoder @@ -24,15 +23,19 @@ public: TextureEncoder(); ~TextureEncoder(); + VkRenderPass GetEncodingRenderPass() const { return m_encoding_render_pass; } + Texture2D* GetEncodingTexture() const { return m_encoding_texture.get(); } + VkFramebuffer GetEncodingTextureFramebuffer() const { return m_encoding_texture_framebuffer; } + StagingTexture2D* GetDownloadTexture() const { return m_download_texture.get(); } bool Initialize(); // Uses an encoding shader to copy src_texture to dest_ptr. // Assumes that no render pass is currently in progress. // WARNING: Executes the current command buffer. - void EncodeTextureToRam(StateTracker* state_tracker, VkImageView src_texture, u8* dest_ptr, - u32 format, u32 native_width, u32 bytes_per_row, u32 num_blocks_y, - u32 memory_stride, PEControl::PixelFormat src_format, bool is_intensity, - int scale_by_half, const EFBRectangle& source); + void EncodeTextureToRam(VkImageView src_texture, u8* dest_ptr, u32 format, u32 native_width, + u32 bytes_per_row, u32 num_blocks_y, u32 memory_stride, + PEControl::PixelFormat src_format, bool is_intensity, int scale_by_half, + const EFBRectangle& source); private: // From OGL. |
