Class CUdevprop.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new CUdevprop.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 CUdevprop.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 Detail

      • maxThreadsPerBlock

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

        public java.nio.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 java.nio.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.Buffer maxThreadsPerBlock​(int value)
        Sets the specified value to the maxThreadsPerBlock field.
      • maxThreadsDim

        public CUdevprop.Buffer maxThreadsDim​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the maxThreadsDim field.
      • maxThreadsDim

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

        public CUdevprop.Buffer maxGridSize​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the maxGridSize field.
      • maxGridSize

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

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

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

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

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

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

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

        public CUdevprop.Buffer textureAlign​(int value)
        Sets the specified value to the textureAlign field.