2020-08-04 18:22:14 -04:00
|
|
|
//
|
|
|
|
// ScanTarget.h
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 02/08/2020.
|
|
|
|
// Copyright © 2020 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2020-08-04 19:44:56 -04:00
|
|
|
#import <MetalKit/MetalKit.h>
|
2020-08-04 18:22:14 -04:00
|
|
|
|
|
|
|
/*!
|
|
|
|
Provides a ScanTarget that uses Metal as its back-end.
|
|
|
|
*/
|
2020-08-04 19:44:56 -04:00
|
|
|
@interface CSScanTarget : NSObject <MTKViewDelegate>
|
2020-08-04 18:22:14 -04:00
|
|
|
|
2020-08-04 19:44:56 -04:00
|
|
|
- (nonnull instancetype)initWithView:(nonnull MTKView *)view;
|
2020-08-04 18:22:14 -04:00
|
|
|
|
2020-08-15 21:24:10 -04:00
|
|
|
// Draws all scans currently residing at the scan target to the backing store,
|
|
|
|
// ready for output when next requested.
|
|
|
|
- (void)updateFrameBuffer;
|
|
|
|
|
2020-08-04 18:22:14 -04:00
|
|
|
@end
|