11 #ifndef __CE_Snippet__
12 #define __CE_Snippet__
228 const char *kernelsig,
const char *writebacksig,
254 bool &firstwriteable_forced,
258 bool fieldsarealigned,
264 RunOver runover,
bool singleworkgroup,
265 bool filedsarealigned,
bool prefixbound);
275 bool singleworkgroup,
bool fieldsarealigned,
276 bool firstname_forced,
bool prefixbound,
UT_StringHolder attribute
UT_StringHolder fieldname
CE_API UT_StringHolder computeSyntax(const char *code)
CE_API UT_StringHolder loadImport(const char *path, bool searchcwd, UT_ErrorManager *error)
Loads an import, searching the include path to locate it.
GLsizei const GLchar *const * path
CE_API const char * bindingLayerBorderToString(BindingLayerBorder type)
CE_API UT_StringHolder findIncludeFile(const char *path, bool searchcwd, UT_ErrorManager *error)
CE_API bool parseType(const UT_StringRef &attribtypename, BindingAttribType &attribtype, BindingPrecision &precision, int &tuplesize)
CE_API const char * bindingAttribClassToString(BindingAttribClass type)
UT_StringHolder optionname
CE_API UT_StringHolder expandImportDirectives(UT_StringHolder code, UT_ErrorManager *error)
Expands all #import directives.
CE_API UT_StringHolder protectAts(UT_StringHolder code)
CE_API const char * bindingVDBTypeToString(BindingVDBType type)
UT_Vector2D UT_Vector3D v3val
BindingOptionType optiontype
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
CE_API const char * bindingAttribTypeToString(BindingAttribType type)
BindingLayerType layertype
SYS_FORCE_INLINE const UT_StringHolder & UTmakeUnsafeRef(const UT_StringRef &ref)
Convert a UT_StringRef into a UT_StringHolder that is a shallow reference.
CE_API UT_StringHolder restoreAts(UT_StringHolder code)
Restore protected to be @ again.
CE_API void buildArgumentSign(const Binding &binding, int p, int maxparam, UT_WorkBuffer &sign, UT_StringHolder &firstwriteable, bool &firstwriteable_forced, BindingVDBType &firstvdbtype, bool prefixbound, RunOver runover, bool fieldsarealigned, UT_WorkBuffer ¶minitcode)
Append into sign the argument signature for a binding.
GLuint const GLchar * name
IMATH_HOSTDEVICE constexpr int sign(T a) IMATH_NOEXCEPT
UT_SharedPtr< UT_Ramp > ramp
BindingAttribClass attribclass
CE_API void addKernelArgument(UT_WorkBuffer &signature, const char *type, const char *name, bool prefixbound)
BindingLayerBorder layerborder
GLenum GLint GLint * precision
A map of string to various well defined value types.
CE_API const char * bindingOptionTypeToString(BindingOptionType type)
CE_API void buildKernelRunOverCode(UT_WorkBuffer &signature, RunOver runover, BindingVDBType firstvdbtype, bool singleworkgroup, bool fieldsarealigned, bool firstname_forced, bool prefixbound, UT_StringRef firstname)
Append into sign the code to start the provided runover mode.
BindingAttribType attribtype
CE_API UT_StringHolder extractBindings(UT_StringHolder code, UT_Array< Binding > &bindings, UT_ErrorManager *error)
CE_API UT_StringHolder generateAtCode(UT_StringHolder code, RunOver runover, UT_Options *opt, UT_StringMap< UT_StringHolder > *globals, UT_StringMap< UT_StringHolder > *missing_globals, const UT_Array< Binding > &bindings, const char *kernelsig, const char *writebacksig, UT_ErrorManager *error)
A global error manager scope.
CE_API void buildKernelRunOverArguments(UT_WorkBuffer &signature, RunOver runover, bool singleworkgroup, bool filedsarealigned, bool prefixbound)
UT_Array< float > rampdata
CE_API const char * bindingTypeToString(BindingType type)
CE_API const char * bindingPrecisionToString(BindingPrecision type)
CE_API const char * bindingRampTypeToString(BindingRampType type)
CE_API const char * bindingLayerTypeToString(BindingLayerType type)
BindingTimescale timescale
CE_API const char * bindingTimescaleToString(BindingTimescale type)