Skip to content

Commit

Permalink
Simplified how we render error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
latenitefilms committed Oct 19, 2024
1 parent a5dd1d4 commit 66981e4
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 273 deletions.
12 changes: 11 additions & 1 deletion Source/Gyroflow/Plugin/GyroflowConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,17 @@ enum {
kFxError_PlugInStateIsNil, // Plugin State is `nil`
kFxError_UnsupportedPixelFormat, // Unsupported Pixel Format
kFxError_FailedToCreatePluginState, // Failed to create plugin state
kFxError_CommandQueueWasNilDuringShowErrorMessage // Command Queue was `nil` during a show error message render.
kFxError_CommandQueueWasNilDuringShowErrorMessage, // Command Queue was `nil` during a show error message render.

//---------------------------------------------------------
// Error Messages:
//---------------------------------------------------------
kFxError_AssetLoadFailed, // Failed to load error message asset
kFxError_ImageCreationFailed, // Failed to create image for error messages
kFxError_CIContextCreationFailed, // Failed to create Core Image context for error messages
kFxError_IOSurfaceCreationFailed, // Failed to create IOSurface for error messages
kFxError_MetalDeviceNotFound, // Failed to get Metal Device for error messages
kFxError_CommandBufferCreationFailed, // Failed to create Command Buffer for error messages
};

#endif /* GyroflowConstants_h */
2 changes: 2 additions & 0 deletions Source/Gyroflow/Plugin/GyroflowPlugIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
#import <Metal/Metal.h>
#import <AVFoundation/AVFoundation.h>

#import <CoreImage/CoreImage.h>

//---------------------------------------------------------
// Metal Performance Shaders for scaling:
//---------------------------------------------------------
Expand Down
Loading

0 comments on commit 66981e4

Please sign in to comment.