metal: initial pixel format support implementation

This commit is contained in:
Alex Szpakowski
2021-03-27 17:37:09 -03:00
parent 3744f8b939
commit 5f888be64a
3 changed files with 258 additions and 9 deletions
+11
View File
@@ -161,6 +161,15 @@ private:
Shader *shader;
};
struct DeviceFamilies
{
// All arrays are 1-indexed for convenience
bool apple[7+1];
bool mac[2+1];
bool common[3+1];
bool macCatalyst[2+1];
};
love::graphics::ShaderStage *newShaderStageInternal(ShaderStage::StageType stage, const std::string &cachekey, const std::string &source, bool gles) override;
love::graphics::Shader *newShaderInternal(love::graphics::ShaderStage *vertex, love::graphics::ShaderStage *pixel) override;
love::graphics::StreamBuffer *newStreamBuffer(BufferUsage usage, size_t size) override;
@@ -200,6 +209,8 @@ private:
std::atomic<int64> completeCommandBufferIndex;
DeviceFamilies families;
}; // Graphics
} // metal