Class CUDA_RESOURCE_DESC.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUDA_RESOURCE_DESC.Buffer>
org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer>
org.lwjgl.cuda.CUDA_RESOURCE_DESC.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<CUDA_RESOURCE_DESC>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
CUDA_RESOURCE_DESC

public static class CUDA_RESOURCE_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_RESOURCE_DESC,CUDA_RESOURCE_DESC.Buffer> implements org.lwjgl.system.NativeResource
An array of CUDA_RESOURCE_DESC structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUDA_RESOURCE_DESC.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CUDA_RESOURCE_DESC.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • resType

      public int resType()
      Returns:
      the value of the resType field.
    • res_array_hArray

      public long res_array_hArray()
      Returns:
      the value of the res.array.hArray field.
    • res_mipmap_hMipmappedArray

      public long res_mipmap_hMipmappedArray()
      Returns:
      the value of the res.mipmap.hMipmappedArray field.
    • res_linear_devPtr

      public long res_linear_devPtr()
      Returns:
      the value of the res.linear.devPtr field.
    • res_linear_format

      public int res_linear_format()
      Returns:
      the value of the res.linear.format field.
    • res_linear_numChannels

      public int res_linear_numChannels()
      Returns:
      the value of the res.linear.numChannels field.
    • res_linear_sizeInBytes

      public long res_linear_sizeInBytes()
      Returns:
      the value of the res.linear.sizeInBytes field.
    • res_pitch2D_devPtr

      public long res_pitch2D_devPtr()
      Returns:
      the value of the res.pitch2D.devPtr field.
    • res_pitch2D_format

      public int res_pitch2D_format()
      Returns:
      the value of the res.pitch2D.format field.
    • res_pitch2D_numChannels

      public int res_pitch2D_numChannels()
      Returns:
      the value of the res.pitch2D.numChannels field.
    • res_pitch2D_width

      public long res_pitch2D_width()
      Returns:
      the value of the res.pitch2D.width field.
    • res_pitch2D_height

      public long res_pitch2D_height()
      Returns:
      the value of the res.pitch2D.height field.
    • res_pitch2D_pitchInBytes

      public long res_pitch2D_pitchInBytes()
      Returns:
      the value of the res.pitch2D.pitchInBytes field.
    • res_reserved_reserved

      public IntBuffer res_reserved_reserved()
      Returns:
      a IntBuffer view of the res.reserved.reserved field.
    • res_reserved_reserved

      public int res_reserved_reserved(int index)
      Returns:
      the value at the specified index of the res.reserved.reserved field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • resType

      public CUDA_RESOURCE_DESC.Buffer resType(int value)
      Sets the specified value to the resType field.
    • res_array_hArray

      public CUDA_RESOURCE_DESC.Buffer res_array_hArray(long value)
      Sets the specified value to the hArray field.
    • res_mipmap_hMipmappedArray

      public CUDA_RESOURCE_DESC.Buffer res_mipmap_hMipmappedArray(long value)
      Sets the specified value to the hMipmappedArray field.
    • res_linear_devPtr

      public CUDA_RESOURCE_DESC.Buffer res_linear_devPtr(long value)
      Sets the specified value to the devPtr field.
    • res_linear_format

      public CUDA_RESOURCE_DESC.Buffer res_linear_format(int value)
      Sets the specified value to the format field.
    • res_linear_numChannels

      public CUDA_RESOURCE_DESC.Buffer res_linear_numChannels(int value)
      Sets the specified value to the numChannels field.
    • res_linear_sizeInBytes

      public CUDA_RESOURCE_DESC.Buffer res_linear_sizeInBytes(long value)
      Sets the specified value to the sizeInBytes field.
    • res_pitch2D_devPtr

      public CUDA_RESOURCE_DESC.Buffer res_pitch2D_devPtr(long value)
      Sets the specified value to the devPtr field.
    • res_pitch2D_format

      public CUDA_RESOURCE_DESC.Buffer res_pitch2D_format(int value)
      Sets the specified value to the format field.
    • res_pitch2D_numChannels

      public CUDA_RESOURCE_DESC.Buffer res_pitch2D_numChannels(int value)
      Sets the specified value to the numChannels field.
    • res_pitch2D_width

      public CUDA_RESOURCE_DESC.Buffer res_pitch2D_width(long value)
      Sets the specified value to the width field.
    • res_pitch2D_height

      public CUDA_RESOURCE_DESC.Buffer res_pitch2D_height(long value)
      Sets the specified value to the height field.
    • res_pitch2D_pitchInBytes

      public CUDA_RESOURCE_DESC.Buffer res_pitch2D_pitchInBytes(long value)
      Sets the specified value to the pitchInBytes field.
    • res_reserved_reserved

      public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved(IntBuffer value)
      Copies the specified IntBuffer to the reserved field.
    • res_reserved_reserved

      public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved(int index, int value)
      Sets the specified value at the specified index of the reserved field.
    • flags

      public CUDA_RESOURCE_DESC.Buffer flags(int value)
      Sets the specified value to the flags field.