2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:29:41 +00:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2017-02-01 04:29:29 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLUtil.h"
|
|
|
|
|
2018-04-29 08:52:30 +00:00
|
|
|
#include "VideoCommon/TextureCacheBase.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoCommon/VideoCommon.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2011-01-29 20:16:51 +00:00
|
|
|
namespace OGL
|
|
|
|
{
|
|
|
|
// Converts textures between formats using shaders
|
2008-12-08 04:46:09 +00:00
|
|
|
// TODO: support multiple texture formats
|
|
|
|
namespace TextureConverter
|
|
|
|
{
|
|
|
|
void Init();
|
|
|
|
void Shutdown();
|
|
|
|
|
2011-12-30 00:00:34 +00:00
|
|
|
// returns size of the encoded data (in bytes)
|
2018-04-29 08:52:30 +00:00
|
|
|
void EncodeToRamFromTexture(
|
|
|
|
u8* dest_ptr, const EFBCopyParams& params, u32 native_width, u32 bytes_per_row,
|
|
|
|
u32 num_blocks_y, u32 memory_stride, const EFBRectangle& src_rect, bool scale_by_half,
|
|
|
|
float y_scale, float gamma, float clamp_top, float clamp_bottom,
|
|
|
|
const TextureCacheBase::CopyFilterCoefficientArray& filter_coefficients);
|
2008-12-08 04:46:09 +00:00
|
|
|
}
|
|
|
|
|
2011-01-29 20:16:51 +00:00
|
|
|
} // namespace OGL
|