Class CUDA_TEXTURE_DESC

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

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

Layout


 struct CUDA_TEXTURE_DESC {
     CUaddress_mode addressMode[3];
     CUfilter_mode filterMode;
     unsigned int flags;
     unsigned int maxAnisotropy;
     CUfilter_mode mipmapFilterMode;
     float mipmapLevelBias;
     float minMipmapLevelClamp;
     float maxMipmapLevelClamp;
     float borderColor[4];
     int reserved[12];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ADDRESSMODE
      The struct member offsets.
    • FILTERMODE

      public static final int FILTERMODE
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • MAXANISOTROPY

      public static final int MAXANISOTROPY
      The struct member offsets.
    • MIPMAPFILTERMODE

      public static final int MIPMAPFILTERMODE
      The struct member offsets.
    • MIPMAPLEVELBIAS

      public static final int MIPMAPLEVELBIAS
      The struct member offsets.
    • MINMIPMAPLEVELCLAMP

      public static final int MINMIPMAPLEVELCLAMP
      The struct member offsets.
    • MAXMIPMAPLEVELCLAMP

      public static final int MAXMIPMAPLEVELCLAMP
      The struct member offsets.
    • BORDERCOLOR

      public static final int BORDERCOLOR
      The struct member offsets.
    • RESERVED

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

    • CUDA_TEXTURE_DESC

      public CUDA_TEXTURE_DESC(ByteBuffer container)
      Creates a CUDA_TEXTURE_DESC 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<CUDA_TEXTURE_DESC>
    • addressMode

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

      public int addressMode(int index)
      Returns:
      the value at the specified index of the addressMode field.
    • filterMode

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

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

      public int maxAnisotropy()
      Returns:
      the value of the maxAnisotropy field.
    • mipmapFilterMode

      public int mipmapFilterMode()
      Returns:
      the value of the mipmapFilterMode field.
    • mipmapLevelBias

      public float mipmapLevelBias()
      Returns:
      the value of the mipmapLevelBias field.
    • minMipmapLevelClamp

      public float minMipmapLevelClamp()
      Returns:
      the value of the minMipmapLevelClamp field.
    • maxMipmapLevelClamp

      public float maxMipmapLevelClamp()
      Returns:
      the value of the maxMipmapLevelClamp field.
    • borderColor

      public FloatBuffer borderColor()
      Returns:
      a FloatBuffer view of the borderColor field.
    • borderColor

      public float borderColor(int index)
      Returns:
      the value at the specified index of the borderColor field.
    • reserved

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

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

      public CUDA_TEXTURE_DESC addressMode(IntBuffer value)
      Copies the specified IntBuffer to the addressMode field.
    • addressMode

      public CUDA_TEXTURE_DESC addressMode(int index, int value)
      Sets the specified value at the specified index of the addressMode field.
    • filterMode

      public CUDA_TEXTURE_DESC filterMode(int value)
      Sets the specified value to the filterMode field.
    • flags

      public CUDA_TEXTURE_DESC flags(int value)
      Sets the specified value to the flags field.
    • maxAnisotropy

      public CUDA_TEXTURE_DESC maxAnisotropy(int value)
      Sets the specified value to the maxAnisotropy field.
    • mipmapFilterMode

      public CUDA_TEXTURE_DESC mipmapFilterMode(int value)
      Sets the specified value to the mipmapFilterMode field.
    • mipmapLevelBias

      public CUDA_TEXTURE_DESC mipmapLevelBias(float value)
      Sets the specified value to the mipmapLevelBias field.
    • minMipmapLevelClamp

      public CUDA_TEXTURE_DESC minMipmapLevelClamp(float value)
      Sets the specified value to the minMipmapLevelClamp field.
    • maxMipmapLevelClamp

      public CUDA_TEXTURE_DESC maxMipmapLevelClamp(float value)
      Sets the specified value to the maxMipmapLevelClamp field.
    • borderColor

      public CUDA_TEXTURE_DESC borderColor(FloatBuffer value)
      Copies the specified FloatBuffer to the borderColor field.
    • borderColor

      public CUDA_TEXTURE_DESC borderColor(int index, float value)
      Sets the specified value at the specified index of the borderColor field.
    • reserved

      public CUDA_TEXTURE_DESC reserved(IntBuffer value)
      Copies the specified IntBuffer to the reserved field.
    • reserved

      public CUDA_TEXTURE_DESC reserved(int index, int value)
      Sets the specified value at the specified index of the reserved field.
    • set

      public CUDA_TEXTURE_DESC set(IntBuffer addressMode, int filterMode, int flags, int maxAnisotropy, int mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp, FloatBuffer borderColor, IntBuffer reserved)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static CUDA_TEXTURE_DESC.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 CUDA_TEXTURE_DESC.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 CUDA_TEXTURE_DESC malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

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

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

      public static CUDA_TEXTURE_DESC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_TEXTURE_DESC.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
    • naddressMode

      public static IntBuffer naddressMode(long struct)
      Unsafe version of addressMode().
    • naddressMode

      public static int naddressMode(long struct, int index)
      Unsafe version of addressMode.
    • nfilterMode

      public static int nfilterMode(long struct)
      Unsafe version of filterMode().
    • nflags

      public static int nflags(long struct)
      Unsafe version of flags().
    • nmaxAnisotropy

      public static int nmaxAnisotropy(long struct)
      Unsafe version of maxAnisotropy().
    • nmipmapFilterMode

      public static int nmipmapFilterMode(long struct)
      Unsafe version of mipmapFilterMode().
    • nmipmapLevelBias

      public static float nmipmapLevelBias(long struct)
      Unsafe version of mipmapLevelBias().
    • nminMipmapLevelClamp

      public static float nminMipmapLevelClamp(long struct)
      Unsafe version of minMipmapLevelClamp().
    • nmaxMipmapLevelClamp

      public static float nmaxMipmapLevelClamp(long struct)
      Unsafe version of maxMipmapLevelClamp().
    • nborderColor

      public static FloatBuffer nborderColor(long struct)
      Unsafe version of borderColor().
    • nborderColor

      public static float nborderColor(long struct, int index)
      Unsafe version of borderColor.
    • nreserved

      public static IntBuffer nreserved(long struct)
      Unsafe version of reserved().
    • nreserved

      public static int nreserved(long struct, int index)
      Unsafe version of reserved.
    • naddressMode

      public static void naddressMode(long struct, IntBuffer value)
      Unsafe version of addressMode.
    • naddressMode

      public static void naddressMode(long struct, int index, int value)
      Unsafe version of addressMode.
    • nfilterMode

      public static void nfilterMode(long struct, int value)
      Unsafe version of filterMode.
    • nflags

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • nmaxAnisotropy

      public static void nmaxAnisotropy(long struct, int value)
      Unsafe version of maxAnisotropy.
    • nmipmapFilterMode

      public static void nmipmapFilterMode(long struct, int value)
      Unsafe version of mipmapFilterMode.
    • nmipmapLevelBias

      public static void nmipmapLevelBias(long struct, float value)
      Unsafe version of mipmapLevelBias.
    • nminMipmapLevelClamp

      public static void nminMipmapLevelClamp(long struct, float value)
      Unsafe version of minMipmapLevelClamp.
    • nmaxMipmapLevelClamp

      public static void nmaxMipmapLevelClamp(long struct, float value)
      Unsafe version of maxMipmapLevelClamp.
    • nborderColor

      public static void nborderColor(long struct, FloatBuffer value)
      Unsafe version of borderColor.
    • nborderColor

      public static void nborderColor(long struct, int index, float value)
      Unsafe version of borderColor.
    • nreserved

      public static void nreserved(long struct, IntBuffer value)
      Unsafe version of reserved.
    • nreserved

      public static void nreserved(long struct, int index, int value)
      Unsafe version of reserved.