metal: work towards shader uniform implementation.

Misc cleanup.
This commit is contained in:
Alex Szpakowski
2020-10-24 00:33:02 -03:00
parent 5b4de2308d
commit 4b9c648c8b
10 changed files with 262 additions and 151 deletions
+3 -1
View File
@@ -49,7 +49,7 @@ public:
love::graphics::Buffer *newBuffer(const Buffer::Settings &settings, const std::vector<Buffer::DataDeclaration> &format, const void *data, size_t size, size_t arraylength) override;
void setViewportSize(int width, int height, int pixelwidth, int pixelheight) override;
bool setMode(void *context, int width, int height, int pixelwidth, int pixelheight, bool windowhasstencil) override;
bool setMode(void *context, int width, int height, int pixelwidth, int pixelheight, bool backbufferstencil, int backbufferdepth) override;
void unSetMode() override;
void setActive(bool active) override;
@@ -195,6 +195,8 @@ private:
std::map<uint64, void *> cachedSamplers;
std::unordered_map<uint64, void *> cachedDepthStencilStates;
std::atomic<int64> completeCommandBufferIndex;
}; // Graphics
} // metal