jcuda.driver
Class CUDA_RESOURCE_DESC

java.lang.Object
  extended by jcuda.driver.CUDA_RESOURCE_DESC

public class CUDA_RESOURCE_DESC
extends java.lang.Object

CUDA Resource descriptor. NOTE: The structure of this class should be considered as being preliminary. In the C version, the internal fields are stored as a union. Depending on whether the union storage had a reason, the structure of this class might change accordingly.


Field Summary
 CUarray array_hArray
          CUDA array for CUresourcetype.CU_RESOURCE_TYPE_ARRAY
 int flags
          Flags (must be zero)
 CUdeviceptr linear_devPtr
          Device pointer for CUresourcetype.CU_RESOURCE_TYPE_LINEAR
 int linear_format
          Array format for CUresourcetype.CU_RESOURCE_TYPE_LINEAR
 int linear_numChannels
          Channels per array element for CUresourcetype.CU_RESOURCE_TYPE_LINEAR
 long linear_sizeInBytes
          Size in bytes for CUresourcetype.CU_RESOURCE_TYPE_LINEAR
 CUmipmappedArray mipmap_hMipmappedArray
          CUDA mipmapped array for CUresourcetype.CU_RESOURCE_TYPE_MIPMAPPED_ARRAY
 CUdeviceptr pitch2D_devPtr
          Device pointer for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D
 int pitch2D_format
          Array format for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D
 long pitch2D_height
          Height of the array in elements for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D
 int pitch2D_numChannels
          Channels per array element for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D
 long pitch2D_pitchInBytes
          Pitch between two rows in bytes for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D
 long pitch2D_width
          Width of the array in elements for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D
 int resType
          Resource type
 
Constructor Summary
CUDA_RESOURCE_DESC()
          Creates a new, uninitialized CUDA_RESOURCE_DESC
 
Method Summary
 java.lang.String toFormattedString()
          Creates and returns a formatted (aligned, multi-line) String representation of this object
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resType

public int resType
Resource type

See Also:
CUresourcetype

flags

public int flags
Flags (must be zero)


array_hArray

public CUarray array_hArray
CUDA array for CUresourcetype.CU_RESOURCE_TYPE_ARRAY


mipmap_hMipmappedArray

public CUmipmappedArray mipmap_hMipmappedArray
CUDA mipmapped array for CUresourcetype.CU_RESOURCE_TYPE_MIPMAPPED_ARRAY


linear_devPtr

public CUdeviceptr linear_devPtr
Device pointer for CUresourcetype.CU_RESOURCE_TYPE_LINEAR


linear_format

public int linear_format
Array format for CUresourcetype.CU_RESOURCE_TYPE_LINEAR

See Also:
CUarray_format

linear_numChannels

public int linear_numChannels
Channels per array element for CUresourcetype.CU_RESOURCE_TYPE_LINEAR


linear_sizeInBytes

public long linear_sizeInBytes
Size in bytes for CUresourcetype.CU_RESOURCE_TYPE_LINEAR


pitch2D_devPtr

public CUdeviceptr pitch2D_devPtr
Device pointer for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D


pitch2D_format

public int pitch2D_format
Array format for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D

See Also:
CUarray_format

pitch2D_numChannels

public int pitch2D_numChannels
Channels per array element for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D


pitch2D_width

public long pitch2D_width
Width of the array in elements for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D


pitch2D_height

public long pitch2D_height
Height of the array in elements for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D


pitch2D_pitchInBytes

public long pitch2D_pitchInBytes
Pitch between two rows in bytes for CUresourcetype.CU_RESOURCE_TYPE_PITCH2D

Constructor Detail

CUDA_RESOURCE_DESC

public CUDA_RESOURCE_DESC()
Creates a new, uninitialized CUDA_RESOURCE_DESC

Method Detail

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of this object.

toFormattedString

public java.lang.String toFormattedString()
Creates and returns a formatted (aligned, multi-line) String representation of this object

Returns:
A formatted String representation of this object