GPUOcelot
Public Member Functions

executive::ATIGPUDevice::MemoryAllocation Class Reference

ATI memory allocation. More...

#include <ATIGPUDevice.h>

Inheritance diagram for executive::ATIGPUDevice::MemoryAllocation:
Inheritance graph
[legend]
Collaboration diagram for executive::ATIGPUDevice::MemoryAllocation:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

ATI memory allocation.


Constructor & Destructor Documentation

executive::ATIGPUDevice::MemoryAllocation::MemoryAllocation ( CALresource resource,
const CALdeviceptr  basePtr,
size_t  size 
)

Construct an allocation for a particular resource.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines