|
Blender
V2.93
|
#include <device_memory.h>
Inherits device_vector< T >.
Public Member Functions | |
| device_pixels (Device *device, const char *name) | |
| void | alloc_to_device (size_t width, size_t height, size_t depth=0) |
| T * | copy_from_device (int y, int w, int h) |
Public Member Functions inherited from device_vector< T > | |
| device_vector (Device *device, const char *name, MemoryType type) | |
| virtual | ~device_vector () |
| T * | alloc (size_t width, size_t height=0, size_t depth=0) |
| T * | resize (size_t width, size_t height=0, size_t depth=0) |
| void | steal_data (array< T > &from) |
| void | give_data (array< T > &to) |
| void | free () |
| void | free_if_need_realloc (bool force_free) |
| bool | is_modified () const |
| bool | need_realloc () |
| void | tag_modified () |
| void | tag_realloc () |
| size_t | size () const |
| T * | data () |
| T & | operator[] (size_t i) |
| void | copy_to_device () |
| void | copy_to_device_if_modified () |
| void | clear_modified () |
| void | copy_from_device () |
| void | copy_from_device (int y, int w, int h) |
| void | zero_to_device () |
| void | move_device (Device *new_device) |
Public Member Functions inherited from device_memory | |
| size_t | memory_size () |
| size_t | memory_elements_size (int elements) |
| virtual | ~device_memory () |
| void | swap_device (Device *new_device, size_t new_device_size, device_ptr new_device_ptr) |
| void | restore_device () |
| bool | is_resident (Device *sub_device) const |
Definition at line 543 of file device_memory.h.
|
inline |
Definition at line 545 of file device_memory.h.
|
inline |
Definition at line 549 of file device_memory.h.
References device_vector< T >::alloc(), device_memory::device_alloc(), device_memory::device_pointer, height, and width.
Referenced by DisplayBuffer::reset().
|
inline |
Definition at line 558 of file device_memory.h.
References device_vector< T >::data(), device_memory::device_copy_from(), T, w(), and y.
Referenced by Session::~Session().