metal: check for depth compare mode support before setting it on a texture.

This commit is contained in:
Sasha Szpakowski
2024-01-01 15:41:31 -04:00
parent 9b537ede2b
commit 0523aa6f8f
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -137,6 +137,8 @@ public:
id<MTLSamplerState> getCachedSampler(const SamplerState &s);
bool isDepthCompareSamplerSupported() const;
StreamBuffer *getUniformBuffer() const { return uniformBuffer; }
Buffer *getDefaultAttributesBuffer() const { return defaultAttributesBuffer; }