diff options
| author | ruki <[email protected]> | 2021-08-22 19:20:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-22 19:20:21 +0800 |
| commit | 0b3a790a6e1e81b25ff4e2d7a53c73bc42b47e26 (patch) | |
| tree | 69a495dd29015e91313c7416aaf82f62f6a41175 /tests/projects/objc/metal_app/Application/AAPLViewController.h | |
| parent | 0c7df1fe002288cf91601a941d02988428e2c6d0 (diff) | |
add metal app test
Diffstat (limited to 'tests/projects/objc/metal_app/Application/AAPLViewController.h')
| -rw-r--r-- | tests/projects/objc/metal_app/Application/AAPLViewController.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/projects/objc/metal_app/Application/AAPLViewController.h b/tests/projects/objc/metal_app/Application/AAPLViewController.h new file mode 100644 index 000000000..f9ecea64f --- /dev/null +++ b/tests/projects/objc/metal_app/Application/AAPLViewController.h @@ -0,0 +1,23 @@ +/* +See LICENSE folder for this sample’s licensing information. + +Abstract: +Header for our our cross-platform view controller +*/ + +#if defined(TARGET_IOS) || defined(TARGET_TVOS) +@import UIKit; +#define PlatformViewController UIViewController +#else +@import AppKit; +#define PlatformViewController NSViewController +#endif + +@import MetalKit; + +#import "AAPLRenderer.h" + +// Our view controller +@interface AAPLViewController : PlatformViewController + +@end |
