Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Examples/OpenGL/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ describe(OfxImageEffectHandle effect)
// we support OpenGL rendering (could also say "needed" here)
gPropHost->propSetString(effectProps, kOfxImageEffectPropOpenGLRenderSupported, 0, "true");

// we do NOT support CPU rendering
gPropHost->propSetString(effectProps, kOfxImageEffectPropCPURenderSupported, 0, "false");

{
char *s = NULL;
stat = gPropHost->propGetString(gHost->host, kOfxImageEffectPropOpenGLRenderSupported, 0, &s);
Expand Down
16 changes: 16 additions & 0 deletions include/ofxGPURender.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,22 @@ texture by the host
#define kOfxImageEffectPropOpenGLTextureTarget "OfxImageEffectPropOpenGLTextureTarget"


/** @brief Indicates whether a host or plug-in can (or more importantly cannot)
support CPU rendering.

- Type - C string X 1
- Property Set - plug-in descriptor (read/write), host descriptor (read
only) - plug-in instance change (read/write)
- Default - "true" for host and plug-in
- Valid Values - This must be one of
- "false" - in which case the host or plug-in does not support CPU
rendering
- "true" - which means a host or plug-in can support CPU rendering

*/
#define kOfxImageEffectPropCPURenderSupported "OfxImageEffectPropCPURenderSupported"


/** @name StatusReturnValues
OfxStatus returns indicating that a OpenGL render error has occurred:

Expand Down
Loading