17 #ifndef __DEVICE_MEMORY_H__
18 #define __DEVICE_MEMORY_H__
292 size_t new_size = num;
606 void *
alloc(
const size_t width,
const size_t height,
const size_t depth = 0);
typedef float(TangentPoint)[2]
_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 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.
void set_data(T *ptr_, size_t datasize)
bool is_resident(Device *sub_device) const
device_memory & operator=(const device_memory &)=delete
size_t memory_elements_size(int elements)
device_memory(const device_memory &)=delete
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_only_memory(device_only_memory &&other) noexcept
virtual ~device_only_memory()
void alloc_to_device(size_t num, bool shrink_to_fit=true)
device_only_memory(Device *device, const char *name, bool allow_host_memory_fallback=false)
T * copy_from_device(int y, int w, int h)
void alloc_to_device(size_t width, size_t height, size_t depth=0)
device_pixels(Device *device, const char *name)
device_sub_ptr & operator=(const device_sub_ptr &)
device_ptr operator*() const
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)
T * alloc(size_t width, size_t height=0, size_t depth=0)
device_vector(Device *device, const char *name, MemoryType type)
void copy_to_device_if_modified()
void copy_from_device(int y, int w, int h)
size_t size(size_t width, size_t height, size_t depth)
void move_device(Device *new_device)
void give_data(array< T > &to)
T * resize(size_t width, size_t height=0, size_t depth=0)
void steal_data(array< T > &from)
void free_if_need_realloc(bool force_free)
static size_t datatype_size(DataType datatype)
#define CCL_NAMESPACE_END
unsigned __int64 uint64_t
static const DataType data_type
static const int num_elements