Only include resolutions with 2 buffers

FossilOrigin-Name: 657aecaa88446eb91d1a58fff2169d8c698528c22a4b5ba9197fb0a1316d70cc
This commit is contained in:
Jonathan Schleifer 2022-12-25 19:24:13 +00:00
parent ccef3f6323
commit bee59f3938
4 changed files with 47 additions and 12 deletions

View file

@ -17,16 +17,10 @@
OF_ASSUME_NONNULL_BEGIN
#ifdef __cplusplus
extern "C" {
#endif
extern OFString *const O3DRendererDeviceIndex;
#ifdef __cplusplus
}
#endif
typedef OFPair OF_GENERIC(OFValue *, OFNumber *) *O3DResolution;
@protocol O3DRenderer <OFObject>
@property (readonly, nonatomic) OFSet OF_GENERIC(OFPair OF_GENERIC(OFValue *,
@property (readonly, nonatomic) OFArray OF_GENERIC(OFPair OF_GENERIC(OFValue *,
OFNumber *) *) *availableResolutions;
+ (instancetype)alloc;
@ -34,4 +28,14 @@ extern OFString *const O3DRendererDeviceIndex;
(nullable OFDictionary OF_GENERIC(OFString *, id) *)options;
@end
#ifdef __cplusplus
extern "C" {
#endif
extern OFString *const O3DRendererDeviceIndex;
extern OFComparisonResult O3DCompareResolution(id _Nullable left,
id _Nullable right, void *_Nullable context);
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END