GPUOcelot
|
ATI memory allocation. More...
#include <ATIGPUDevice.h>
Public Member Functions | |
MemoryAllocation (CALresource *resource, const CALdeviceptr basePtr, size_t size) | |
Construct an allocation for a particular resource. | |
unsigned int | flags () const |
Get the flags if this is a host pointer. | |
void * | mappedPointer () const |
Get a host pointer if for a host allocation. | |
void * | pointer () const |
Get a device pointer to the base. | |
size_t | size () const |
The size of the allocation. | |
void | copy (size_t offset, const void *host, size_t size) |
Copy from an external host pointer. | |
void | copy (void *host, size_t offset, size_t size) const |
Copy to an external host pointer. | |
void | memset (size_t offset, int value, size_t size) |
Memset the allocation. | |
void | copy (Device::MemoryAllocation *a, size_t toOffset, size_t fromOffset, size_t size) const |
Copy to another allocation. |
ATI memory allocation.
executive::ATIGPUDevice::MemoryAllocation::MemoryAllocation | ( | CALresource * | resource, |
const CALdeviceptr | basePtr, | ||
size_t | size | ||
) |
Construct an allocation for a particular resource.
void executive::ATIGPUDevice::MemoryAllocation::copy | ( | size_t | offset, |
const void * | host, | ||
size_t | size | ||
) | [virtual] |
Copy from an external host pointer.
Implements executive::Device::MemoryAllocation.
void executive::ATIGPUDevice::MemoryAllocation::copy | ( | Device::MemoryAllocation * | a, |
size_t | toOffset, | ||
size_t | fromOffset, | ||
size_t | size | ||
) | const [virtual] |
Copy to another allocation.
Implements executive::Device::MemoryAllocation.
void executive::ATIGPUDevice::MemoryAllocation::copy | ( | void * | host, |
size_t | offset, | ||
size_t | size | ||
) | const [virtual] |
Copy to an external host pointer.
Implements executive::Device::MemoryAllocation.
unsigned int executive::ATIGPUDevice::MemoryAllocation::flags | ( | ) | const [virtual] |
Get the flags if this is a host pointer.
Implements executive::Device::MemoryAllocation.
void * executive::ATIGPUDevice::MemoryAllocation::mappedPointer | ( | ) | const [virtual] |
Get a host pointer if for a host allocation.
Implements executive::Device::MemoryAllocation.
void executive::ATIGPUDevice::MemoryAllocation::memset | ( | size_t | offset, |
int | value, | ||
size_t | size | ||
) | [virtual] |
Memset the allocation.
Implements executive::Device::MemoryAllocation.
void * executive::ATIGPUDevice::MemoryAllocation::pointer | ( | ) | const [virtual] |
Get a device pointer to the base.
Implements executive::Device::MemoryAllocation.
size_t executive::ATIGPUDevice::MemoryAllocation::size | ( | ) | const [virtual] |
The size of the allocation.
Implements executive::Device::MemoryAllocation.