jak-project/game/graphics/opengl_renderer/SkyBlendCPU.h
Tyler Wilding e0bc7ce732
Get the project compiling on Apple Silicon macOS natively (arm64) (#2827)
I havn't tested it yet, but I can almost guarantee that atleast `goalc`
will not work in the slightest!

But the project is atleast fully compiling. My hope is to start
translating some AVX to NEON next / get `goalc` working...eventually.
2023-07-16 11:13:48 -04:00

28 lines
698 B
C++

#pragma once
#include "common/dma/dma_chain_read.h"
#include "game/graphics/opengl_renderer/BucketRenderer.h"
#include "game/graphics/opengl_renderer/SkyBlendCommon.h"
#include "game/graphics/pipelines/opengl.h"
class SkyBlendCPU {
public:
SkyBlendCPU();
~SkyBlendCPU();
SkyBlendStats do_sky_blends(DmaFollower& dma,
SharedRenderState* render_state,
ScopedProfilerNode& prof);
void init_textures(TexturePool& tex_pool, GameVersion version);
private:
static constexpr int m_sizes[2] = {32, 64};
std::vector<u8> m_texture_data[2];
struct TexInfo {
GLuint gl;
u32 tbp;
GpuTexture* tex;
} m_textures[2];
};