Skip to content

Commit f4750c7

Browse files
authored
Merge pull request #222 from barretpj/issue212-CPURenderSupported
issue 212 Add kOfxImageEffectPropCPURenderSupported
2 parents 342e7a0 + c89dc67 commit f4750c7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Examples/OpenGL/opengl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,9 @@ describe(OfxImageEffectHandle effect)
563563
// we support OpenGL rendering (could also say "needed" here)
564564
gPropHost->propSetString(effectProps, kOfxImageEffectPropOpenGLRenderSupported, 0, "true");
565565

566+
// we do NOT support CPU rendering
567+
gPropHost->propSetString(effectProps, kOfxImageEffectPropCPURenderSupported, 0, "false");
568+
566569
{
567570
char *s = NULL;
568571
stat = gPropHost->propGetString(gHost->host, kOfxImageEffectPropOpenGLRenderSupported, 0, &s);

include/ofxGPURender.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,22 @@ texture by the host
150150
#define kOfxImageEffectPropOpenGLTextureTarget "OfxImageEffectPropOpenGLTextureTarget"
151151

152152

153+
/** @brief Indicates whether a host or plug-in can (or more importantly cannot)
154+
support CPU rendering.
155+
156+
- Type - C string X 1
157+
- Property Set - plug-in descriptor (read/write), host descriptor (read
158+
only) - plug-in instance change (read/write)
159+
- Default - "true" for host and plug-in
160+
- Valid Values - This must be one of
161+
- "false" - in which case the host or plug-in does not support CPU
162+
rendering
163+
- "true" - which means a host or plug-in can support CPU rendering
164+
165+
*/
166+
#define kOfxImageEffectPropCPURenderSupported "OfxImageEffectPropCPURenderSupported"
167+
168+
153169
/** @name StatusReturnValues
154170
OfxStatus returns indicating that a OpenGL render error has occurred:
155171

0 commit comments

Comments
 (0)