NVIDIA(R) PhysX(R) SDK 3.4 API Reference: physx::PxGpuTask Class Reference

NVIDIA PhysX SDK 3.4 API

physx::PxGpuTask Class Reference

PxTask implementation for launching CUDA work. More...

#include <PxGpuTask.h>

Inheritance diagram for physx::PxGpuTask:
Collaboration diagram for physx::PxGpuTask:

List of all members.


Public Member Functions

 PxGpuTask ()
virtual bool launchInstance (CUstream stream, int kernelIndex)=0
 iterative "run" function for a PxGpuTask
virtual PxGpuTaskHint::Enum getTaskHint () const =0
 Returns a hint indicating the function of this task.
void setCompletionTask (PxBaseTask &task)
 Specify a task that will have its reference count decremented when this task is released.
void release ()
 Release method implementation.

Protected Attributes

PxBaseTaskmComp
 A pointer to the completion task.

Detailed Description

PxTask implementation for launching CUDA work.

Constructor & Destructor Documentation

physx::PxGpuTask::PxGpuTask (  )  [inline]


Member Function Documentation

virtual PxGpuTaskHint::Enum physx::PxGpuTask::getTaskHint (  )  const [pure virtual]

Returns a hint indicating the function of this task.

virtual bool physx::PxGpuTask::launchInstance ( CUstream  stream,
int  kernelIndex 
) [pure virtual]

iterative "run" function for a PxGpuTask

The GpuDispatcher acquires the CUDA context for the duration of this function call, and it is highly recommended that the PxGpuTask use the provided CUstream for all kernels.

kernelIndex will be 0 for the initial call and incremented before each subsequent call. Once launchInstance() returns false, its PxGpuTask is considered completed and is released.

void physx::PxGpuTask::release (  )  [inline, virtual]

Release method implementation.

Reimplemented from physx::PxTask.

References mComp, and physx::PxBaseTask::removeReference().

void physx::PxGpuTask::setCompletionTask ( PxBaseTask task  )  [inline]

Specify a task that will have its reference count decremented when this task is released.

References mComp.


Member Data Documentation

A pointer to the completion task.

Referenced by release(), and setCompletionTask().


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



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