-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGLPShader+CompiledShader.h
21 lines (15 loc) · 1.3 KB
/
GLPShader+CompiledShader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#import "GLPShader.h"
@interface GLPShader (CompiledShader)
+ (instancetype)compiledShaderWithSource:(NSString *)source type:(GLenum)type error:(NSError **)error;
+ (instancetype)compiledVertexShaderWithSource:(NSString *)source error:(NSError **)error;
+ (instancetype)compiledFragmentShaderWithSource:(NSString *)source error:(NSError **)error;
+ (instancetype)compiledShaderWithContentsOfFile:(NSString *)path type:(GLenum)type error:(NSError **)error;
+ (instancetype)compiledVertexShaderWithContentsOfFile:(NSString *)path error:(NSError **)error;
+ (instancetype)compiledFragmentShaderWithContentsOfFile:(NSString *)path error:(NSError **)error;
+ (instancetype)compiledShaderWithContentsOfURL:(NSURL *)URL type:(GLenum)type error:(NSError **)error;
+ (instancetype)compiledVertexShaderWithContentsOfURL:(NSURL *)URL error:(NSError **)error;
+ (instancetype)compiledFragmentShaderWithContentsOfURL:(NSURL *)URL error:(NSError **)error;
+ (instancetype)compiledShaderWithResource:(NSString *)resource bundle:(NSBundle *)bundle type:(GLenum)type error:(NSError **)error;
+ (instancetype)compiledVertexShaderWithResource:(NSString *)resource bundle:(NSBundle *)bundle error:(NSError **)error;
+ (instancetype)compiledFragmentShaderWithResource:(NSString *)resource bundle:(NSBundle *)bundle error:(NSError **)error;
@end