Public Types | Public Member Functions | Public Attributes | List of all members
PxGpuCopyDesc Struct Reference

Input descriptor for the GpuDispatcher's built-in copy kernel. More...

#include <PxGpuCopyDesc.h>

Public Types

enum  CopyType {
  HostToDevice,
  DeviceToHost,
  DeviceToDevice,
  DeviceMemset32
}
 Input descriptor for the GpuDispatcher's built-in copy kernel. More...
 

Public Member Functions

PX_INLINE bool isValid ()
 Copy is optimally performed as 64bit words, requires 64bit alignment. But it can gracefully degrade to 32bit copies if necessary. More...
 

Public Attributes

size_t dest
 the destination More...
 
size_t source
 the source (32bit value when type == DeviceMemset) More...
 
size_t bytes
 the size in bytes More...
 
CopyType type
 the memory transaction type More...
 

Detailed Description

Input descriptor for the GpuDispatcher's built-in copy kernel.

All host memory involved in copy transactions must be page-locked. If more than one descriptor is passed to the copy kernel in one launch, the descriptors themselves must be in page-locked memory.

Member Enumeration Documentation

Input descriptor for the GpuDispatcher's built-in copy kernel.

Enumerator
HostToDevice 
DeviceToHost 
DeviceToDevice 
DeviceMemset32 

Member Function Documentation

PX_INLINE bool PxGpuCopyDesc::isValid ( )
inline

Copy is optimally performed as 64bit words, requires 64bit alignment. But it can gracefully degrade to 32bit copies if necessary.

References bytes.

Referenced by PxGpuCopyDescQueue::enqueue().

Member Data Documentation

size_t PxGpuCopyDesc::bytes

the size in bytes

Referenced by PxGpuCopyDescQueue::enqueue().

size_t PxGpuCopyDesc::dest

the destination

size_t PxGpuCopyDesc::source

the source (32bit value when type == DeviceMemset)

CopyType PxGpuCopyDesc::type

the memory transaction type


The documentation for this struct was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com