2018-03-19 22:45:22 +01:00
|
|
|
// Copyright 2015 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include <memory>
|
|
|
|
#include <set>
|
|
|
|
#include <tuple>
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
|
|
|
|
#endif
|
|
|
|
#include <boost/icl/interval_map.hpp>
|
|
|
|
#include <boost/icl/interval_set.hpp>
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif
|
|
|
|
#include <glad/glad.h>
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "common/common_funcs.h"
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "common/math_util.h"
|
2018-03-23 04:06:54 +01:00
|
|
|
#include "video_core/gpu.h"
|
2018-03-19 22:45:22 +01:00
|
|
|
#include "video_core/renderer_opengl/gl_resource_manager.h"
|
2018-03-27 04:46:11 +02:00
|
|
|
#include "video_core/textures/texture.h"
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
struct CachedSurface;
|
|
|
|
using Surface = std::shared_ptr<CachedSurface>;
|
|
|
|
using SurfaceSet = std::set<Surface>;
|
|
|
|
|
2018-03-23 02:13:46 +01:00
|
|
|
using SurfaceRegions = boost::icl::interval_set<VAddr>;
|
|
|
|
using SurfaceMap = boost::icl::interval_map<VAddr, Surface>;
|
|
|
|
using SurfaceCache = boost::icl::interval_map<VAddr, SurfaceSet>;
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
using SurfaceInterval = SurfaceCache::interval_type;
|
|
|
|
static_assert(std::is_same<SurfaceRegions::interval_type, SurfaceCache::interval_type>() &&
|
|
|
|
std::is_same<SurfaceMap::interval_type, SurfaceCache::interval_type>(),
|
|
|
|
"incorrect interval types");
|
|
|
|
|
|
|
|
using SurfaceRect_Tuple = std::tuple<Surface, MathUtil::Rectangle<u32>>;
|
|
|
|
using SurfaceSurfaceRect_Tuple = std::tuple<Surface, Surface, MathUtil::Rectangle<u32>>;
|
|
|
|
|
2018-03-25 04:24:45 +02:00
|
|
|
using PageMap = boost::icl::interval_map<u64, int>;
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
enum class ScaleMatch {
|
|
|
|
Exact, // only accept same res scale
|
|
|
|
Upscale, // only allow higher scale than params
|
|
|
|
Ignore // accept every scaled res
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SurfaceParams {
|
|
|
|
enum class PixelFormat {
|
2018-04-18 20:51:09 +02:00
|
|
|
ABGR8 = 0,
|
2018-04-19 01:11:14 +02:00
|
|
|
B5G6R5 = 1,
|
|
|
|
DXT1 = 2,
|
|
|
|
|
|
|
|
Max,
|
2018-03-19 22:45:22 +01:00
|
|
|
Invalid = 255,
|
|
|
|
};
|
|
|
|
|
2018-04-19 01:11:14 +02:00
|
|
|
static constexpr size_t MaxPixelFormat = static_cast<size_t>(PixelFormat::Max);
|
|
|
|
|
2018-04-18 21:17:05 +02:00
|
|
|
enum class ComponentType {
|
|
|
|
Invalid = 0,
|
|
|
|
SNorm = 1,
|
|
|
|
UNorm = 2,
|
|
|
|
SInt = 3,
|
|
|
|
UInt = 4,
|
|
|
|
Float = 5,
|
|
|
|
};
|
|
|
|
|
2018-03-19 22:45:22 +01:00
|
|
|
enum class SurfaceType {
|
2018-04-18 20:54:10 +02:00
|
|
|
ColorTexture = 0,
|
|
|
|
Depth = 1,
|
|
|
|
DepthStencil = 2,
|
|
|
|
Fill = 3,
|
|
|
|
Invalid = 4,
|
2018-03-19 22:45:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static constexpr unsigned int GetFormatBpp(PixelFormat format) {
|
2018-03-27 04:46:11 +02:00
|
|
|
if (format == PixelFormat::Invalid)
|
|
|
|
return 0;
|
|
|
|
|
2018-04-19 01:11:14 +02:00
|
|
|
constexpr std::array<unsigned int, MaxPixelFormat> bpp_table = {
|
2018-04-18 20:51:09 +02:00
|
|
|
32, // ABGR8
|
2018-04-19 01:11:14 +02:00
|
|
|
16, // B5G6R5
|
2018-03-27 04:46:11 +02:00
|
|
|
64, // DXT1
|
2018-03-19 22:45:22 +01:00
|
|
|
};
|
|
|
|
|
2018-03-27 04:46:11 +02:00
|
|
|
ASSERT(static_cast<size_t>(format) < bpp_table.size());
|
2018-03-19 22:45:22 +01:00
|
|
|
return bpp_table[static_cast<size_t>(format)];
|
|
|
|
}
|
|
|
|
unsigned int GetFormatBpp() const {
|
|
|
|
return GetFormatBpp(pixel_format);
|
|
|
|
}
|
|
|
|
|
2018-03-24 05:47:33 +01:00
|
|
|
static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) {
|
|
|
|
switch (format) {
|
|
|
|
case Tegra::RenderTargetFormat::RGBA8_UNORM:
|
2018-04-18 20:51:09 +02:00
|
|
|
return PixelFormat::ABGR8;
|
2018-03-24 05:47:33 +01:00
|
|
|
default:
|
2018-04-18 03:44:36 +02:00
|
|
|
NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
2018-03-24 05:47:33 +01:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-23 04:06:54 +01:00
|
|
|
static PixelFormat PixelFormatFromGPUPixelFormat(Tegra::FramebufferConfig::PixelFormat format) {
|
|
|
|
switch (format) {
|
|
|
|
case Tegra::FramebufferConfig::PixelFormat::ABGR8:
|
2018-04-18 20:51:09 +02:00
|
|
|
return PixelFormat::ABGR8;
|
2018-03-23 04:06:54 +01:00
|
|
|
default:
|
2018-04-18 03:44:36 +02:00
|
|
|
NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
2018-03-23 04:06:54 +01:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-27 04:46:11 +02:00
|
|
|
static PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format) {
|
|
|
|
// TODO(Subv): Properly implement this
|
|
|
|
switch (format) {
|
|
|
|
case Tegra::Texture::TextureFormat::A8R8G8B8:
|
2018-04-18 20:51:09 +02:00
|
|
|
return PixelFormat::ABGR8;
|
2018-04-19 01:11:14 +02:00
|
|
|
case Tegra::Texture::TextureFormat::B5G6R5:
|
|
|
|
return PixelFormat::B5G6R5;
|
2018-03-27 04:46:11 +02:00
|
|
|
case Tegra::Texture::TextureFormat::DXT1:
|
|
|
|
return PixelFormat::DXT1;
|
|
|
|
default:
|
2018-04-18 03:44:36 +02:00
|
|
|
NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
2018-03-27 04:46:11 +02:00
|
|
|
UNREACHABLE();
|
|
|
|
}
|
2018-04-16 02:54:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static Tegra::Texture::TextureFormat TextureFormatFromPixelFormat(PixelFormat format) {
|
|
|
|
// TODO(Subv): Properly implement this
|
|
|
|
switch (format) {
|
2018-04-18 20:51:09 +02:00
|
|
|
case PixelFormat::ABGR8:
|
2018-04-16 02:54:38 +02:00
|
|
|
return Tegra::Texture::TextureFormat::A8R8G8B8;
|
2018-04-19 01:11:14 +02:00
|
|
|
case PixelFormat::B5G6R5:
|
|
|
|
return Tegra::Texture::TextureFormat::B5G6R5;
|
2018-04-16 02:54:38 +02:00
|
|
|
case PixelFormat::DXT1:
|
|
|
|
return Tegra::Texture::TextureFormat::DXT1;
|
|
|
|
default:
|
|
|
|
UNREACHABLE();
|
|
|
|
}
|
2018-03-27 04:46:11 +02:00
|
|
|
}
|
|
|
|
|
2018-04-18 21:17:05 +02:00
|
|
|
static ComponentType ComponentTypeFromTexture(Tegra::Texture::ComponentType type) {
|
|
|
|
// TODO(Subv): Implement more component types
|
|
|
|
switch (type) {
|
|
|
|
case Tegra::Texture::ComponentType::UNORM:
|
|
|
|
return ComponentType::UNorm;
|
|
|
|
default:
|
|
|
|
NGLOG_CRITICAL(HW_GPU, "Unimplemented component type={}", static_cast<u32>(type));
|
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static ComponentType ComponentTypeFromRenderTarget(Tegra::RenderTargetFormat format) {
|
|
|
|
// TODO(Subv): Implement more render targets
|
|
|
|
switch (format) {
|
|
|
|
case Tegra::RenderTargetFormat::RGBA8_UNORM:
|
|
|
|
case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
|
|
|
|
return ComponentType::UNorm;
|
|
|
|
default:
|
|
|
|
NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static ComponentType ComponentTypeFromGPUPixelFormat(
|
|
|
|
Tegra::FramebufferConfig::PixelFormat format) {
|
|
|
|
switch (format) {
|
|
|
|
case Tegra::FramebufferConfig::PixelFormat::ABGR8:
|
|
|
|
return ComponentType::UNorm;
|
|
|
|
default:
|
|
|
|
NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
|
|
|
UNREACHABLE();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-19 22:45:22 +01:00
|
|
|
static bool CheckFormatsBlittable(PixelFormat pixel_format_a, PixelFormat pixel_format_b) {
|
|
|
|
SurfaceType a_type = GetFormatType(pixel_format_a);
|
|
|
|
SurfaceType b_type = GetFormatType(pixel_format_b);
|
|
|
|
|
2018-04-18 20:54:10 +02:00
|
|
|
if (a_type == SurfaceType::ColorTexture && b_type == SurfaceType::ColorTexture) {
|
2018-03-19 22:45:22 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (a_type == SurfaceType::Depth && b_type == SurfaceType::Depth) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (a_type == SurfaceType::DepthStencil && b_type == SurfaceType::DepthStencil) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-03-27 04:46:11 +02:00
|
|
|
static SurfaceType GetFormatType(PixelFormat pixel_format) {
|
2018-04-19 01:11:14 +02:00
|
|
|
if (static_cast<size_t>(pixel_format) < MaxPixelFormat) {
|
2018-04-18 20:54:10 +02:00
|
|
|
return SurfaceType::ColorTexture;
|
2018-03-19 22:45:22 +01:00
|
|
|
}
|
|
|
|
|
2018-03-27 04:46:11 +02:00
|
|
|
// TODO(Subv): Implement the other formats
|
|
|
|
ASSERT(false);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
return SurfaceType::Invalid;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Update the params "size", "end" and "type" from the already set "addr", "width", "height"
|
|
|
|
/// and "pixel_format"
|
|
|
|
void UpdateParams() {
|
|
|
|
if (stride == 0) {
|
|
|
|
stride = width;
|
|
|
|
}
|
|
|
|
type = GetFormatType(pixel_format);
|
|
|
|
size = !is_tiled ? BytesInPixels(stride * (height - 1) + width)
|
|
|
|
: BytesInPixels(stride * 8 * (height / 8 - 1) + width * 8);
|
|
|
|
end = addr + size;
|
|
|
|
}
|
|
|
|
|
|
|
|
SurfaceInterval GetInterval() const {
|
|
|
|
return SurfaceInterval::right_open(addr, end);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Returns the outer rectangle containing "interval"
|
|
|
|
SurfaceParams FromInterval(SurfaceInterval interval) const;
|
|
|
|
|
|
|
|
SurfaceInterval GetSubRectInterval(MathUtil::Rectangle<u32> unscaled_rect) const;
|
|
|
|
|
|
|
|
// Returns the region of the biggest valid rectange within interval
|
|
|
|
SurfaceInterval GetCopyableInterval(const Surface& src_surface) const;
|
|
|
|
|
|
|
|
u32 GetScaledWidth() const {
|
|
|
|
return width * res_scale;
|
|
|
|
}
|
|
|
|
|
|
|
|
u32 GetScaledHeight() const {
|
|
|
|
return height * res_scale;
|
|
|
|
}
|
|
|
|
|
|
|
|
MathUtil::Rectangle<u32> GetRect() const {
|
|
|
|
return {0, height, width, 0};
|
|
|
|
}
|
|
|
|
|
|
|
|
MathUtil::Rectangle<u32> GetScaledRect() const {
|
|
|
|
return {0, GetScaledHeight(), GetScaledWidth(), 0};
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 PixelsInBytes(u64 size) const {
|
|
|
|
return size * CHAR_BIT / GetFormatBpp(pixel_format);
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 BytesInPixels(u64 pixels) const {
|
|
|
|
return pixels * GetFormatBpp(pixel_format) / CHAR_BIT;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ExactMatch(const SurfaceParams& other_surface) const;
|
|
|
|
bool CanSubRect(const SurfaceParams& sub_surface) const;
|
|
|
|
bool CanExpand(const SurfaceParams& expanded_surface) const;
|
|
|
|
bool CanTexCopy(const SurfaceParams& texcopy_params) const;
|
|
|
|
|
|
|
|
MathUtil::Rectangle<u32> GetSubRect(const SurfaceParams& sub_surface) const;
|
|
|
|
MathUtil::Rectangle<u32> GetScaledSubRect(const SurfaceParams& sub_surface) const;
|
|
|
|
|
2018-03-23 00:46:37 +01:00
|
|
|
VAddr addr = 0;
|
|
|
|
VAddr end = 0;
|
2018-03-19 22:45:22 +01:00
|
|
|
u64 size = 0;
|
|
|
|
|
|
|
|
u32 width = 0;
|
|
|
|
u32 height = 0;
|
|
|
|
u32 stride = 0;
|
2018-04-16 02:55:39 +02:00
|
|
|
u32 block_height = 0;
|
2018-03-19 22:45:22 +01:00
|
|
|
u16 res_scale = 1;
|
|
|
|
|
|
|
|
bool is_tiled = false;
|
|
|
|
PixelFormat pixel_format = PixelFormat::Invalid;
|
|
|
|
SurfaceType type = SurfaceType::Invalid;
|
2018-04-18 21:17:05 +02:00
|
|
|
ComponentType component_type = ComponentType::Invalid;
|
2018-03-19 22:45:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct CachedSurface : SurfaceParams {
|
|
|
|
bool CanFill(const SurfaceParams& dest_surface, SurfaceInterval fill_interval) const;
|
|
|
|
bool CanCopy(const SurfaceParams& dest_surface, SurfaceInterval copy_interval) const;
|
|
|
|
|
|
|
|
bool IsRegionValid(SurfaceInterval interval) const {
|
|
|
|
return (invalid_regions.find(interval) == invalid_regions.end());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool IsSurfaceFullyInvalid() const {
|
|
|
|
return (invalid_regions & GetInterval()) == SurfaceRegions(GetInterval());
|
|
|
|
}
|
|
|
|
|
|
|
|
bool registered = false;
|
|
|
|
SurfaceRegions invalid_regions;
|
|
|
|
|
|
|
|
u64 fill_size = 0; /// Number of bytes to read from fill_data
|
|
|
|
std::array<u8, 4> fill_data;
|
|
|
|
|
|
|
|
OGLTexture texture;
|
|
|
|
|
|
|
|
static constexpr unsigned int GetGLBytesPerPixel(PixelFormat format) {
|
2018-03-27 04:46:11 +02:00
|
|
|
if (format == PixelFormat::Invalid)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
return SurfaceParams::GetFormatBpp(format) / 8;
|
2018-03-19 22:45:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
std::unique_ptr<u8[]> gl_buffer;
|
|
|
|
size_t gl_buffer_size = 0;
|
|
|
|
|
2018-03-23 04:06:54 +01:00
|
|
|
// Read/Write data in Switch memory to/from gl_buffer
|
2018-03-23 02:13:46 +01:00
|
|
|
void LoadGLBuffer(VAddr load_start, VAddr load_end);
|
|
|
|
void FlushGLBuffer(VAddr flush_start, VAddr flush_end);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
// Upload/Download data in gl_buffer in/to this surface's texture
|
|
|
|
void UploadGLTexture(const MathUtil::Rectangle<u32>& rect, GLuint read_fb_handle,
|
|
|
|
GLuint draw_fb_handle);
|
|
|
|
void DownloadGLTexture(const MathUtil::Rectangle<u32>& rect, GLuint read_fb_handle,
|
|
|
|
GLuint draw_fb_handle);
|
|
|
|
};
|
|
|
|
|
|
|
|
class RasterizerCacheOpenGL : NonCopyable {
|
|
|
|
public:
|
|
|
|
RasterizerCacheOpenGL();
|
|
|
|
~RasterizerCacheOpenGL();
|
|
|
|
|
|
|
|
/// Blit one surface's texture to another
|
|
|
|
bool BlitSurfaces(const Surface& src_surface, const MathUtil::Rectangle<u32>& src_rect,
|
|
|
|
const Surface& dst_surface, const MathUtil::Rectangle<u32>& dst_rect);
|
|
|
|
|
|
|
|
void ConvertD24S8toABGR(GLuint src_tex, const MathUtil::Rectangle<u32>& src_rect,
|
|
|
|
GLuint dst_tex, const MathUtil::Rectangle<u32>& dst_rect);
|
|
|
|
|
|
|
|
/// Copy one surface's region to another
|
|
|
|
void CopySurface(const Surface& src_surface, const Surface& dst_surface,
|
|
|
|
SurfaceInterval copy_interval);
|
|
|
|
|
2018-04-04 23:04:24 +02:00
|
|
|
/// Load a texture from Switch memory to OpenGL and cache it (if not already cached)
|
2018-03-19 22:45:22 +01:00
|
|
|
Surface GetSurface(const SurfaceParams& params, ScaleMatch match_res_scale,
|
|
|
|
bool load_if_create);
|
|
|
|
|
|
|
|
/// Attempt to find a subrect (resolution scaled) of a surface, otherwise loads a texture from
|
2018-04-04 23:04:24 +02:00
|
|
|
/// Switch memory to OpenGL and caches it (if not already cached)
|
2018-03-19 22:45:22 +01:00
|
|
|
SurfaceRect_Tuple GetSurfaceSubRect(const SurfaceParams& params, ScaleMatch match_res_scale,
|
|
|
|
bool load_if_create);
|
|
|
|
|
|
|
|
/// Get a surface based on the texture configuration
|
2018-03-27 04:46:11 +02:00
|
|
|
Surface GetTextureSurface(const Tegra::Texture::FullTextureInfo& config);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
/// Get the color and depth surfaces based on the framebuffer configuration
|
|
|
|
SurfaceSurfaceRect_Tuple GetFramebufferSurfaces(bool using_color_fb, bool using_depth_fb,
|
2018-03-24 05:47:33 +01:00
|
|
|
const MathUtil::Rectangle<s32>& viewport);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
/// Get a surface that matches the fill config
|
|
|
|
Surface GetFillSurface(const void* config);
|
|
|
|
|
|
|
|
/// Get a surface that matches a "texture copy" display transfer config
|
|
|
|
SurfaceRect_Tuple GetTexCopySurface(const SurfaceParams& params);
|
|
|
|
|
|
|
|
/// Write any cached resources overlapping the region back to memory (if dirty)
|
2018-03-23 02:13:46 +01:00
|
|
|
void FlushRegion(VAddr addr, u64 size, Surface flush_surface = nullptr);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
2018-04-04 23:04:24 +02:00
|
|
|
/// Mark region as being invalidated by region_owner (nullptr if Switch memory)
|
2018-03-23 02:13:46 +01:00
|
|
|
void InvalidateRegion(VAddr addr, u64 size, const Surface& region_owner);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
/// Flush all cached resources tracked by this cache manager
|
|
|
|
void FlushAll();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void DuplicateSurface(const Surface& src_surface, const Surface& dest_surface);
|
|
|
|
|
|
|
|
/// Update surface's texture for given region when necessary
|
2018-03-23 02:13:46 +01:00
|
|
|
void ValidateSurface(const Surface& surface, VAddr addr, u64 size);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
/// Create a new surface
|
|
|
|
Surface CreateSurface(const SurfaceParams& params);
|
|
|
|
|
|
|
|
/// Register surface into the cache
|
|
|
|
void RegisterSurface(const Surface& surface);
|
|
|
|
|
|
|
|
/// Remove surface from the cache
|
|
|
|
void UnregisterSurface(const Surface& surface);
|
|
|
|
|
|
|
|
/// Increase/decrease the number of surface in pages touching the specified region
|
2018-03-23 02:13:46 +01:00
|
|
|
void UpdatePagesCachedCount(VAddr addr, u64 size, int delta);
|
2018-03-19 22:45:22 +01:00
|
|
|
|
|
|
|
SurfaceCache surface_cache;
|
|
|
|
PageMap cached_pages;
|
|
|
|
SurfaceMap dirty_regions;
|
|
|
|
SurfaceSet remove_surfaces;
|
|
|
|
|
|
|
|
OGLFramebuffer read_framebuffer;
|
|
|
|
OGLFramebuffer draw_framebuffer;
|
|
|
|
|
|
|
|
OGLVertexArray attributeless_vao;
|
|
|
|
OGLBuffer d24s8_abgr_buffer;
|
|
|
|
GLsizeiptr d24s8_abgr_buffer_size;
|
2018-04-07 05:56:42 +02:00
|
|
|
OGLProgram d24s8_abgr_shader;
|
2018-03-19 22:45:22 +01:00
|
|
|
GLint d24s8_abgr_tbo_size_u_id;
|
|
|
|
GLint d24s8_abgr_viewport_u_id;
|
|
|
|
};
|