|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use cudaGraphicsResource | |
|---|---|
| jcuda.runtime | Contains the classes related to the JCuda runtime API. |
| Uses of cudaGraphicsResource in jcuda.runtime |
|---|
| Methods in jcuda.runtime with parameters of type cudaGraphicsResource | |
|---|---|
static int |
JCuda.cudaGraphicsGLRegisterBuffer(cudaGraphicsResource resource,
int buffer,
int Flags)
Registers the buffer object specified by buffer for access by CUDA. |
static int |
JCuda.cudaGraphicsGLRegisterImage(cudaGraphicsResource resource,
int image,
int target,
int Flags)
Registers the texture or renderbuffer object specified by image for access by CUDA. |
static int |
JCuda.cudaGraphicsMapResources(int count,
cudaGraphicsResource[] resources,
cudaStream_t stream)
Maps the count graphics resources in resources for access by CUDA. The resources in resources may be accessed by CUDA until they are unmapped. |
static int |
JCuda.cudaGraphicsResourceGetMappedPointer(Pointer devPtr,
long[] size,
cudaGraphicsResource resource)
Returns in *devPtr a pointer through which the mapped graphics resource resource may be accessed. |
static int |
JCuda.cudaGraphicsResourceSetMapFlags(cudaGraphicsResource resource,
int flags)
Set flags for mapping the graphics resource resource. Changes to flags will take effect the next time resource is mapped. |
static int |
JCuda.cudaGraphicsSubResourceGetMappedArray(cudaArray arrayPtr,
cudaGraphicsResource resource,
int arrayIndex,
int mipLevel)
Returns in *array an array through which the subresource of the mapped graphics resource resource which corresponds to array index arrayIndex and mipmap level mipLevel may be accessed. |
static int |
JCuda.cudaGraphicsUnmapResources(int count,
cudaGraphicsResource[] resources,
cudaStream_t stream)
Unmaps the count graphics resources in resources. Once unmapped, the resources in resources may not be accessed by CUDA until they are mapped again. This function provides the synchronization guarantee that any CUDA work issued in stream before cudaGraphicsUnmapResources() will complete before any subsequently issued graphics work begins. If resources contains any duplicate entries then cudaErrorInvalidResourceHandle is returned. |
static int |
JCuda.cudaGraphicsUnregisterResource(cudaGraphicsResource resource)
Unregisters the graphics resource resource so it is not accessible by CUDA unless registered again. If resource is invalid then cudaErrorInvalidResourceHandle is returned. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||