RetroArch
Filter.h
Go to the documentation of this file.
1 //
2 // Filter.h
3 // MetalByExampleObjC
4 //
5 // Created by Stuart Carnie on 5/15/18.
6 // Copyright © 2018 Stuart Carnie. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <Metal/Metal.h>
11 
12 @protocol FilterDelegate
13 - (void)configure:(id<MTLCommandEncoder>)encoder;
14 @end
15 
16 @interface Filter : NSObject
17 
18 @property (nonatomic, readwrite) id<FilterDelegate> delegate;
19 @property (nonatomic, readonly) id<MTLSamplerState> sampler;
20 
21 - (void)apply:(id<MTLCommandBuffer>)cb in:(id<MTLTexture>)tin out:(id<MTLTexture>)tout;
22 - (void)apply:(id<MTLCommandBuffer>)cb inBuf:(id<MTLBuffer>)tin outTex:(id<MTLTexture>)tout;
23 
24 + (instancetype)newFilterWithFunctionName:(NSString *)name device:(id<MTLDevice>)device library:(id<MTLLibrary>)library error:(NSError **)error;
25 
26 @end
Definition: Filter.h:12
GLenum GLuint id
Definition: glext.h:6233
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
id< FilterDelegate > delegate
Definition: Filter.h:18
Definition: Filter.h:16
GLuint sampler
Definition: glext.h:7950