Class CUdevprop

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUdevprop>
org.lwjgl.cuda.CUdevprop
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CUdevprop extends org.lwjgl.system.Struct<CUdevprop> implements org.lwjgl.system.NativeResource

Layout


 struct CUdevprop {
     int maxThreadsPerBlock;
     int maxThreadsDim[3];
     int maxGridSize[3];
     int sharedMemPerBlock;
     int totalConstantMemory;
     int SIMDWidth;
     int memPitch;
     int regsPerBlock;
     int clockRate;
     int textureAlign;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MAXTHREADSPERBLOCK

      public static final int MAXTHREADSPERBLOCK
      The struct member offsets.
    • MAXTHREADSDIM

      public static final int MAXTHREADSDIM
      The struct member offsets.
    • MAXGRIDSIZE

      public static final int MAXGRIDSIZE
      The struct member offsets.
    • SHAREDMEMPERBLOCK

      public static final int SHAREDMEMPERBLOCK
      The struct member offsets.
    • TOTALCONSTANTMEMORY

      public static final int TOTALCONSTANTMEMORY
      The struct member offsets.
    • SIMDWIDTH

      public static final int SIMDWIDTH
      The struct member offsets.
    • MEMPITCH

      public static final int MEMPITCH
      The struct member offsets.
    • REGSPERBLOCK

      public static final int REGSPERBLOCK
      The struct member offsets.
    • CLOCKRATE

      public static final int CLOCKRATE
      The struct member offsets.
    • TEXTUREALIGN

      public static final int TEXTUREALIGN
      The struct member offsets.
  • Constructor Details

    • CUdevprop

      public CUdevprop(ByteBuffer container)
      Creates a CUdevprop instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CUdevprop>
    • maxThreadsPerBlock

      public int maxThreadsPerBlock()
      Returns:
      the value of the maxThreadsPerBlock field.
    • maxThreadsDim

      public IntBuffer maxThreadsDim()
      Returns:
      a IntBuffer view of the maxThreadsDim field.
    • maxThreadsDim

      public int maxThreadsDim(int index)
      Returns:
      the value at the specified index of the maxThreadsDim field.
    • maxGridSize

      public IntBuffer maxGridSize()
      Returns:
      a IntBuffer view of the maxGridSize field.
    • maxGridSize

      public int maxGridSize(int index)
      Returns:
      the value at the specified index of the maxGridSize field.
    • sharedMemPerBlock

      public int sharedMemPerBlock()
      Returns:
      the value of the sharedMemPerBlock field.
    • totalConstantMemory

      public int totalConstantMemory()
      Returns:
      the value of the totalConstantMemory field.
    • SIMDWidth

      public int SIMDWidth()
      Returns:
      the value of the SIMDWidth field.
    • memPitch

      public int memPitch()
      Returns:
      the value of the memPitch field.
    • regsPerBlock

      public int regsPerBlock()
      Returns:
      the value of the regsPerBlock field.
    • clockRate

      public int clockRate()
      Returns:
      the value of the clockRate field.
    • textureAlign

      public int textureAlign()
      Returns:
      the value of the textureAlign field.
    • maxThreadsPerBlock

      public CUdevprop maxThreadsPerBlock(int value)
      Sets the specified value to the maxThreadsPerBlock field.
    • maxThreadsDim

      public CUdevprop maxThreadsDim(IntBuffer value)
      Copies the specified IntBuffer to the maxThreadsDim field.
    • maxThreadsDim

      public CUdevprop maxThreadsDim(int index, int value)
      Sets the specified value at the specified index of the maxThreadsDim field.
    • maxGridSize

      public CUdevprop maxGridSize(IntBuffer value)
      Copies the specified IntBuffer to the maxGridSize field.
    • maxGridSize

      public CUdevprop maxGridSize(int index, int value)
      Sets the specified value at the specified index of the maxGridSize field.
    • sharedMemPerBlock

      public CUdevprop sharedMemPerBlock(int value)
      Sets the specified value to the sharedMemPerBlock field.
    • totalConstantMemory

      public CUdevprop totalConstantMemory(int value)
      Sets the specified value to the totalConstantMemory field.
    • SIMDWidth

      public CUdevprop SIMDWidth(int value)
      Sets the specified value to the SIMDWidth field.
    • memPitch

      public CUdevprop memPitch(int value)
      Sets the specified value to the memPitch field.
    • regsPerBlock

      public CUdevprop regsPerBlock(int value)
      Sets the specified value to the regsPerBlock field.
    • clockRate

      public CUdevprop clockRate(int value)
      Sets the specified value to the clockRate field.
    • textureAlign

      public CUdevprop textureAlign(int value)
      Sets the specified value to the textureAlign field.
    • set

      public CUdevprop set(int maxThreadsPerBlock, IntBuffer maxThreadsDim, IntBuffer maxGridSize, int sharedMemPerBlock, int totalConstantMemory, int SIMDWidth, int memPitch, int regsPerBlock, int clockRate, int textureAlign)
      Initializes this struct with the specified values.
    • set

      public CUdevprop set(CUdevprop src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static CUdevprop malloc()
      Returns a new CUdevprop instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static CUdevprop calloc()
      Returns a new CUdevprop instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static CUdevprop create()
      Returns a new CUdevprop instance allocated with BufferUtils.
    • create

      public static CUdevprop create(long address)
      Returns a new CUdevprop instance for the specified memory address.
    • createSafe

      public static @Nullable CUdevprop createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static CUdevprop.Buffer malloc(int capacity)
      Returns a new CUdevprop.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static CUdevprop.Buffer calloc(int capacity)
      Returns a new CUdevprop.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUdevprop.Buffer create(int capacity)
      Returns a new CUdevprop.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUdevprop.Buffer create(long address, int capacity)
      Create a CUdevprop.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CUdevprop.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static CUdevprop mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUdevprop callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUdevprop mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUdevprop callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUdevprop.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUdevprop.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUdevprop.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUdevprop.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static CUdevprop malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUdevprop instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static CUdevprop calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUdevprop instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static CUdevprop.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUdevprop.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static CUdevprop.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUdevprop.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nmaxThreadsPerBlock

      public static int nmaxThreadsPerBlock(long struct)
      Unsafe version of maxThreadsPerBlock().
    • nmaxThreadsDim

      public static IntBuffer nmaxThreadsDim(long struct)
      Unsafe version of maxThreadsDim().
    • nmaxThreadsDim

      public static int nmaxThreadsDim(long struct, int index)
      Unsafe version of maxThreadsDim.
    • nmaxGridSize

      public static IntBuffer nmaxGridSize(long struct)
      Unsafe version of maxGridSize().
    • nmaxGridSize

      public static int nmaxGridSize(long struct, int index)
      Unsafe version of maxGridSize.
    • nsharedMemPerBlock

      public static int nsharedMemPerBlock(long struct)
      Unsafe version of sharedMemPerBlock().
    • ntotalConstantMemory

      public static int ntotalConstantMemory(long struct)
      Unsafe version of totalConstantMemory().
    • nSIMDWidth

      public static int nSIMDWidth(long struct)
      Unsafe version of SIMDWidth().
    • nmemPitch

      public static int nmemPitch(long struct)
      Unsafe version of memPitch().
    • nregsPerBlock

      public static int nregsPerBlock(long struct)
      Unsafe version of regsPerBlock().
    • nclockRate

      public static int nclockRate(long struct)
      Unsafe version of clockRate().
    • ntextureAlign

      public static int ntextureAlign(long struct)
      Unsafe version of textureAlign().
    • nmaxThreadsPerBlock

      public static void nmaxThreadsPerBlock(long struct, int value)
      Unsafe version of maxThreadsPerBlock.
    • nmaxThreadsDim

      public static void nmaxThreadsDim(long struct, IntBuffer value)
      Unsafe version of maxThreadsDim.
    • nmaxThreadsDim

      public static void nmaxThreadsDim(long struct, int index, int value)
      Unsafe version of maxThreadsDim.
    • nmaxGridSize

      public static void nmaxGridSize(long struct, IntBuffer value)
      Unsafe version of maxGridSize.
    • nmaxGridSize

      public static void nmaxGridSize(long struct, int index, int value)
      Unsafe version of maxGridSize.
    • nsharedMemPerBlock

      public static void nsharedMemPerBlock(long struct, int value)
      Unsafe version of sharedMemPerBlock.
    • ntotalConstantMemory

      public static void ntotalConstantMemory(long struct, int value)
      Unsafe version of totalConstantMemory.
    • nSIMDWidth

      public static void nSIMDWidth(long struct, int value)
      Unsafe version of SIMDWidth.
    • nmemPitch

      public static void nmemPitch(long struct, int value)
      Unsafe version of memPitch.
    • nregsPerBlock

      public static void nregsPerBlock(long struct, int value)
      Unsafe version of regsPerBlock.
    • nclockRate

      public static void nclockRate(long struct, int value)
      Unsafe version of clockRate.
    • ntextureAlign

      public static void ntextureAlign(long struct, int value)
      Unsafe version of textureAlign.