jcuda.runtime
Class cudaResourceDesc

java.lang.Object
  extended by jcuda.runtime.cudaResourceDesc

public class cudaResourceDesc
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
 cudaArray array_array
          CUDA array for cudaResourceType.cudaResourceTypeArray
 cudaChannelFormatDesc linear_desc
          Channel descriptor for cudaResourceType.cudaResourceTypeLinear
 Pointer linear_devPtr
          Device pointer for cudaResourceType.cudaResourceTypeLinear
 long linear_sizeInBytes
          Size in bytes for cudaResourceType.cudaResourceTypeLinear
 cudaMipmappedArray mipmap_mipmap
          CUDA mipmapped array for cudaResourceType.cudaResourceTypeMipmappedArray
 cudaChannelFormatDesc pitch2D_desc
          Channel descriptor for cudaResourceType.cudaResourceTypePitch2D
 Pointer pitch2D_devPtr
          Device pointer for cudaResourceType.cudaResourceTypePitch2D
 long pitch2D_height
          Height of the array in elements for cudaResourceType.cudaResourceTypePitch2D
 long pitch2D_pitchInBytes
          Pitch between two rows in bytes for cudaResourceType.cudaResourceTypePitch2D
 long pitch2D_width
          Width of the array in elements for cudaResourceType.cudaResourceTypePitch2D
 int resType
          Resource type
 
Constructor Summary
cudaResourceDesc()
          Creates a new, uninitialized cudaResourceDesc
 
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:
cudaResourceType

array_array

public cudaArray array_array
CUDA array for cudaResourceType.cudaResourceTypeArray


mipmap_mipmap

public cudaMipmappedArray mipmap_mipmap
CUDA mipmapped array for cudaResourceType.cudaResourceTypeMipmappedArray


linear_devPtr

public Pointer linear_devPtr
Device pointer for cudaResourceType.cudaResourceTypeLinear


linear_desc

public cudaChannelFormatDesc linear_desc
Channel descriptor for cudaResourceType.cudaResourceTypeLinear


linear_sizeInBytes

public long linear_sizeInBytes
Size in bytes for cudaResourceType.cudaResourceTypeLinear


pitch2D_devPtr

public Pointer pitch2D_devPtr
Device pointer for cudaResourceType.cudaResourceTypePitch2D


pitch2D_desc

public cudaChannelFormatDesc pitch2D_desc
Channel descriptor for cudaResourceType.cudaResourceTypePitch2D


pitch2D_width

public long pitch2D_width
Width of the array in elements for cudaResourceType.cudaResourceTypePitch2D


pitch2D_height

public long pitch2D_height
Height of the array in elements for cudaResourceType.cudaResourceTypePitch2D


pitch2D_pitchInBytes

public long pitch2D_pitchInBytes
Pitch between two rows in bytes for cudaResourceType.cudaResourceTypePitch2D

Constructor Detail

cudaResourceDesc

public cudaResourceDesc()
Creates a new, uninitialized cudaResourceDesc

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