39 original_device_ptr(0),
40 original_device_size(0),
48 : data_type(other.data_type),
49 data_elements(other.data_elements),
50 data_size(other.data_size),
51 device_size(other.device_size),
52 data_width(other.data_width),
53 data_height(other.data_height),
54 data_depth(other.data_depth),
58 device_pointer(other.device_pointer),
59 host_pointer(other.host_pointer),
60 shared_pointer(other.shared_pointer),
61 shared_counter(other.shared_counter),
62 original_device_ptr(other.original_device_ptr),
63 original_device_size(other.original_device_size),
64 original_device(other.original_device),
65 need_realloc_(other.need_realloc_),
66 modified(other.modified)
68 other.data_elements = 0;
70 other.device_size = 0;
72 other.data_height = 0;
75 other.device_pointer = 0;
76 other.host_pointer = 0;
77 other.shared_pointer = 0;
78 other.shared_counter = 0;
79 other.original_device_ptr = 0;
80 other.original_device_size = 0;
81 other.original_device = 0;
82 other.need_realloc_ =
false;
83 other.modified =
false;
104 throw std::bad_alloc();
153 size_t new_device_size,
199 switch (image_data_type) {
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
virtual bool is_resident(device_ptr, Device *sub_device)
virtual device_ptr mem_alloc_sub_ptr(device_memory &, int, int)
virtual void mem_zero(device_memory &mem)=0
virtual void mem_copy_from(device_memory &mem, int y, int w, int h, int elem)=0
virtual void mem_free_sub_ptr(device_ptr)
virtual void mem_free(device_memory &mem)=0
virtual void mem_copy_to(device_memory &mem)=0
virtual void mem_alloc(device_memory &mem)=0
bool is_resident(Device *sub_device) const
size_t original_device_size
device_memory(Device *device, const char *name, MemoryType type)
void device_copy_from(int y, int w, int h, int elem)
device_ptr original_device_ptr
device_ptr device_pointer
void * host_alloc(size_t size)
void swap_device(Device *new_device, size_t new_device_size, device_ptr new_device_ptr)
device_sub_ptr(device_memory &mem, int offset, int size)
size_t size(const size_t width, const size_t height, const size_t depth)
void * alloc(const size_t width, const size_t height, const size_t depth=0)
device_texture(Device *device, const char *name, const uint slot, ImageDataType image_data_type, InterpolationType interpolation, ExtensionType extension)
static size_t datatype_size(DataType datatype)
#define CCL_NAMESPACE_END
void util_aligned_free(void *ptr)
CCL_NAMESPACE_BEGIN void * util_aligned_malloc(size_t size, int alignment)
#define MIN_ALIGNMENT_CPU_DATA_TYPES
void util_guarded_mem_free(size_t n)
void util_guarded_mem_alloc(size_t n)
@ IMAGE_DATA_TYPE_USHORT4
@ IMAGE_DATA_TYPE_NANOVDB_FLOAT
@ IMAGE_DATA_TYPE_NANOVDB_FLOAT3