35 static const char*
getName(StorageType);
57 return myBuffer() != 0;
82 void readIn(
const void*
src,
bool blocking =
true);
87 void writeOut(
void*
dst,
bool blocking =
true)
const;
102 int64 totalMemory()
const;
149 template <CE_Image::StorageType STORAGE>
getFileOption("OpenEXR:storage") storage
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
GLdouble GLdouble GLdouble z
void swap(T &lhs, T &rhs)
int getWidth() const
Returns the image's width.
int getChannels() const
Returns the number of channels per pixel.
GLint GLsizei GLsizei height
Type traits for a given storage type...
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
cl::Buffer myBuffer
OpenCL descriptor for the actual GPU buffer.
int getHeight() const
Returns the image's height.
static const int DataSize
SIM_API const UT_StringHolder force
int myWidth
Sizes of the buffer.
Kernel functor interface.
Kernel interface that implements cl_kernel.
StorageType getStorage() const
Identifies the type of data stored for each channel of every pixel.
const cl::Buffer & buffer() const
Returns this buffer descriptor.
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)