12 #ifndef __VOP_CodeGenContext__
13 #define __VOP_CodeGenContext__
30 const char *context_name = NULL,
33 bool should_output_parm_defaults =
true) :
34 myShaderContextType(context_type),
35 myShaderContextName(context_name),
36 myCodeGenFlags(cg_flags),
37 myVarMapperCtx(var_mapper_ctx),
38 myShouldOutputParmDefaults(should_output_parm_defaults),
39 myForceParmExport(false),
40 mySetParentShaderGlobals(false),
41 myShaderSpace(nullptr),
42 myExtraVarRequests(nullptr)
46 {
return myShaderContextType; }
48 {
return myShaderContextName; }
50 {
return myCodeGenFlags; }
52 {
return myVarMapperCtx; }
54 {
return myShouldOutputParmDefaults; }
57 { myForceParmExport =
force; }
59 {
return myForceParmExport; }
62 { mySetParentShaderGlobals = set; }
64 {
return mySetParentShaderGlobals; }
67 { myShaderSpace =
space; }
69 {
return myShaderSpace; }
73 { myExtraVarRequests = requests; }
75 {
return myExtraVarRequests; }
79 static bool isOpPrefixContext(
const char *opprefixpath );
80 static bool isRelativeOpPrefixContext(
81 const char *opprefixpath );
83 const char *context_name );
84 static void parseOpPrefixContext(
const char *opprefixpath,
90 bool matchesAnyShaderContextName(
114 bool myShouldOutputParmDefaults;
117 bool myForceParmExport;
121 bool mySetParentShaderGlobals;
125 #endif // __VOP_CodeGenContext__
const VOP_ExtraVarRequests * getExtraVarRequests() const
const VOP_ShaderSpaceInfo * getShaderSpace() const
void setExtraVarRequests(const VOP_ExtraVarRequests *requests)
void setSetParentShaderGlobals(bool set)
bool shouldSetParentShaderGlobals() const
VOP_CodeVarMapperContext * varMapperCtx() const
void setShaderSpace(const VOP_ShaderSpaceInfo *space)
bool shouldOutputParmDefaults() const
VEX_CodeGenFlags codeGenFlags() const
#define VOP_CONTEXT_TYPE_INVALID
VOP_ContextType shaderContextType() const
SIM_API const UT_StringHolder force
VEX_CodeGenFlags
VEX code generation flags when calling VEX_VexResolver::getVflCode.
bool isForceParmExport() const
const UT_StringHolder & shaderContextName() const
void setForceParmExport(bool force)
VOP_CodeGenContext(VOP_ContextType context_type=VOP_CONTEXT_TYPE_INVALID, const char *context_name=NULL, VEX_CodeGenFlags cg_flags=VEX_CG_DEFAULT, VOP_CodeVarMapperContext *var_mapper_ctx=NULL, bool should_output_parm_defaults=true)