4 #ifndef __DEVICE_MEMORY_H__
5 #define __DEVICE_MEMORY_H__
315 size_t new_size = num;
607 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 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
_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
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)
device_ptr original_device_ptr
device_memory & operator=(device_memory &&)=delete
device_memory(device_memory &&other) noexcept=delete
device_ptr device_pointer
void * host_alloc(size_t size)
void device_copy_from(size_t y, size_t w, size_t h, size_t elem)
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)
device_sub_ptr(device_memory &mem, size_t offset, size_t size)
device_sub_ptr & operator=(const device_sub_ptr &)
device_ptr operator*() const
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()
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)
void copy_from_device(size_t y, size_t w, size_t h)
#define CCL_NAMESPACE_END
static constexpr size_t datatype_size(DataType datatype)
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
unsigned __int64 uint64_t
static const size_t num_elements
static const DataType data_type