Fix uninitialized warning and remove header pollution (#803)
* Fix uninitialized warning and remove header pollution * Nits * IWYU * More IWYU
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include <Metal/Metal.hpp>
|
||||
|
||||
#include "helpers.hpp"
|
||||
|
||||
namespace Metal {
|
||||
struct RenderState {
|
||||
MTL::RenderPipelineState* renderPipelineState = nullptr;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "helpers.hpp"
|
||||
#include "pica_to_mtl.hpp"
|
||||
|
||||
using namespace PICA;
|
||||
@@ -17,7 +18,6 @@ namespace Metal {
|
||||
class DepthStencilCache {
|
||||
public:
|
||||
DepthStencilCache() = default;
|
||||
|
||||
~DepthStencilCache() { reset(); }
|
||||
|
||||
void set(MTL::Device* dev) { device = dev; }
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "helpers.hpp"
|
||||
#include "objc_helper.hpp"
|
||||
#include "pica_to_mtl.hpp"
|
||||
|
||||
|
||||
@@ -2,19 +2,22 @@
|
||||
|
||||
#include <Metal/Metal.hpp>
|
||||
|
||||
#include "helpers.hpp"
|
||||
|
||||
namespace Metal {
|
||||
|
||||
class LutTexture {
|
||||
public:
|
||||
LutTexture(MTL::Device* device, MTL::TextureType type, MTL::PixelFormat pixelFormat, u32 width, u32 height, const char* name);
|
||||
~LutTexture();
|
||||
u32 getNextIndex();
|
||||
class LutTexture {
|
||||
public:
|
||||
LutTexture(MTL::Device* device, MTL::TextureType type, MTL::PixelFormat pixelFormat, u32 width, u32 height, const char* name);
|
||||
~LutTexture();
|
||||
u32 getNextIndex();
|
||||
|
||||
MTL::Texture* getTexture() { return texture; }
|
||||
u32 getCurrentIndex() { return currentIndex; }
|
||||
private:
|
||||
MTL::Texture* texture;
|
||||
u32 currentIndex = 0;
|
||||
};
|
||||
MTL::Texture* getTexture() { return texture; }
|
||||
u32 getCurrentIndex() { return currentIndex; }
|
||||
|
||||
} // namespace Metal
|
||||
private:
|
||||
MTL::Texture* texture;
|
||||
u32 currentIndex = 0;
|
||||
};
|
||||
|
||||
} // namespace Metal
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "helpers.hpp"
|
||||
#include "pica_to_mtl.hpp"
|
||||
|
||||
|
||||
using namespace PICA;
|
||||
|
||||
namespace Metal {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <Metal/Metal.hpp>
|
||||
|
||||
#include "PICA/regs.hpp"
|
||||
#include "helpers.hpp"
|
||||
// TODO: remove dependency on OpenGL
|
||||
#include "opengl.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user