Fix mistaken YCBCR format support indication.
MVKVkFormatDesc::chromaSubsamplingPlaneCount must be > 1 to be considered supported.
This commit is contained in:
parent
0dd329398a
commit
bd497fe713
@ -20,6 +20,7 @@ Released TBD
|
||||
|
||||
- Fix crash on descriptor update with out-of-bounds descriptor count data.
|
||||
- Work around `MTLCounterSet` crash on additional Intel Iris Plus Graphics devices.
|
||||
- Fix mistaken YCBCR format support indication.
|
||||
- Document new linkage model used by *Xcode 14* and later, and how to link **MoltenVK**
|
||||
to an app or game using *Xcode 13* or earlier.
|
||||
- Support *Xcode 14.1* build settings.
|
||||
|
@ -154,7 +154,7 @@ typedef struct MVKVkFormatDesc {
|
||||
|
||||
inline double bytesPerTexel() const { return (double)bytesPerBlock / (double)(blockTexelSize.width * blockTexelSize.height); };
|
||||
|
||||
inline bool isSupported() const { return (mtlPixelFormat != MTLPixelFormatInvalid || chromaSubsamplingPlaneCount > 0); };
|
||||
inline bool isSupported() const { return (mtlPixelFormat != MTLPixelFormatInvalid || chromaSubsamplingPlaneCount > 1); };
|
||||
inline bool isSupportedOrSubstitutable() const { return isSupported() || (mtlPixelFormatSubstitute != MTLPixelFormatInvalid); };
|
||||
|
||||
inline bool vertexIsSupported() const { return (mtlVertexFormat != MTLVertexFormatInvalid); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user