2021-12-30 19:38:18 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/dma/dma_chain_read.h"
|
2022-06-22 23:37:46 -04:00
|
|
|
|
2021-12-30 19:38:18 -05:00
|
|
|
#include "game/graphics/opengl_renderer/BucketRenderer.h"
|
|
|
|
#include "game/graphics/opengl_renderer/SkyBlendCommon.h"
|
2022-06-22 23:37:46 -04:00
|
|
|
#include "game/graphics/pipelines/opengl.h"
|
2021-12-30 19:38:18 -05:00
|
|
|
|
|
|
|
class SkyBlendCPU {
|
|
|
|
public:
|
|
|
|
SkyBlendCPU();
|
|
|
|
~SkyBlendCPU();
|
|
|
|
|
|
|
|
SkyBlendStats do_sky_blends(DmaFollower& dma,
|
|
|
|
SharedRenderState* render_state,
|
|
|
|
ScopedProfilerNode& prof);
|
2022-03-02 20:01:37 -05:00
|
|
|
void init_textures(TexturePool& tex_pool);
|
2021-12-30 19:38:18 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
static constexpr int m_sizes[2] = {32, 64};
|
|
|
|
std::vector<u8> m_texture_data[2];
|
2022-03-04 18:22:01 -05:00
|
|
|
|
|
|
|
struct TexInfo {
|
|
|
|
GLuint gl;
|
|
|
|
u32 tbp;
|
|
|
|
GpuTexture* tex;
|
|
|
|
} m_textures[2];
|
2021-12-30 19:38:18 -05:00
|
|
|
};
|