mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
metal: initial pixel format support implementation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user