61 return sizeof(uint16_t);
329 size_t new_size =
num;
388 T *
alloc(
const size_t width,
const size_t height = 0)
390 size_t new_size =
size(width, height);
409 T *
resize(
const size_t width,
const size_t height = 0)
411 size_t new_size =
size(width, height);
418 for (
size_t i = 0;
i < min_size;
i++) {
422 ((
T *)new_ptr)[
i] =
T();
551 size_t size(
const size_t width,
const size_t height)
553 return width * ((height == 0) ? 1 : height);
598 void *
alloc(
const size_t width,
const size_t height);
605 size_t size(
const size_t width,
const size_t height)
607 return width * ((height == 0) ? 1 : height);
ATTR_WARN_UNUSED_RESULT const size_t num
unsigned long long int uint64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
bool is_resident(Device *sub_device) const
void * host_alloc(const size_t size)
device_memory(const device_memory &)=delete
size_t original_device_size
void swap_device(Device *new_device, const size_t new_device_size, device_ptr new_device_ptr)
size_t memory_elements_size(const int elements)
device_ptr original_device_ptr
void host_and_device_free()
bool is_shared(Device *sub_device) const
device_memory(device_memory &&other) noexcept=delete
device_ptr device_pointer
void device_move_to_host()
device_memory & operator=(const device_memory &)=delete
device_memory & operator=(device_memory &&)=delete
friend class OneapiDevice
void device_copy_from(const size_t y, const size_t w, size_t h, const size_t elem)
~device_only_memory() override
void alloc_to_device(const size_t num, bool shrink_to_fit=true)
device_only_memory(device_only_memory &&other) noexcept
device_only_memory(Device *device, const char *name, bool allow_host_memory_fallback=false)
device_sub_ptr(device_memory &mem, const size_t offset, const size_t size)
device_sub_ptr & operator=(const device_sub_ptr &)
device_ptr operator*() const
~device_texture() override
void * alloc(const size_t width, const size_t height)
size_t size(const size_t width, const size_t height)
device_texture(Device *device, const char *name, const uint slot, ImageDataType image_data_type, InterpolationType interpolation, ExtensionType extension)
device_vector(Device *device, const char *name, MemoryType type)
void copy_to_device_if_modified()
T * alloc(const size_t width, const size_t height=0)
size_t size(const size_t width, const size_t height)
T * resize(const size_t width, const size_t height=0)
void steal_data(array< T > &from)
void free_if_need_realloc(bool force_free)
~device_vector() override
void copy_from_device(const size_t y, const size_t w, size_t h)
static constexpr size_t datatype_size(DataType datatype)
#define CCL_NAMESPACE_END
#define assert(assertion)
static const size_t num_elements
static const DataType data_type
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const size_t num_elements
static const DataType data_type
static const DataType data_type
static const size_t num_elements
static const size_t num_elements
static const DataType data_type
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const DataType data_type
static const size_t num_elements
static const size_t num_elements
static const DataType data_type
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const size_t num_elements
static const DataType data_type
static const size_t num_elements
static const DataType data_type
static const DataType data_type
static const size_t num_elements
static const size_t num_elements
static const DataType data_type