Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUDA_TEXTURE_DESC

extends Struct<CUDA_TEXTURE_DESC>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ADDRESSMODE

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BORDERCOLOR

The struct member offsets.

public static final int
FILTERMODE

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
MAXANISOTROPY

The struct member offsets.

public static final int
MAXMIPMAPLEVELCLAMP

The struct member offsets.

public static final int
MINMIPMAPLEVELCLAMP

The struct member offsets.

public static final int
MIPMAPFILTERMODE

The struct member offsets.

public static final int
MIPMAPLEVELBIAS

The struct member offsets.

public static final int
RESERVED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
CUDA_TEXTURE_DESC(long address, ByteBuffer container)

public
CUDA_TEXTURE_DESC(ByteBuffer container)

Creates a CUDA_TEXTURE_DESC instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public IntBuffer

Returns:

a IntBuffer view of the addressMode field.
addressMode
()

public int

Returns:

the value at the specified index of the addressMode field.
addressMode
(int index)

public CUDA_TEXTURE_DESC
addressMode(IntBuffer value)

Copies the specified IntBuffer to the addressMode field.

public CUDA_TEXTURE_DESC
addressMode(int index, int value)

Sets the specified value at the specified index of the addressMode field.

public FloatBuffer

Returns:

a FloatBuffer view of the borderColor field.
borderColor
()

public float

Returns:

the value at the specified index of the borderColor field.
borderColor
(int index)

public CUDA_TEXTURE_DESC
borderColor(FloatBuffer value)

Copies the specified FloatBuffer to the borderColor field.

public CUDA_TEXTURE_DESC
borderColor(int index, float value)

Sets the specified value at the specified index of the borderColor field.

public static CUDA_TEXTURE_DESC
calloc()

Returns a new CUDA_TEXTURE_DESC instance allocated with memCalloc.

public static CUDA_TEXTURE_DESC.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new CUDA_TEXTURE_DESC.Buffer instance allocated with memCalloc.

public static CUDA_TEXTURE_DESC
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_TEXTURE_DESC.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_TEXTURE_DESC.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_TEXTURE_DESC
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_TEXTURE_DESC
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_TEXTURE_DESC.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_TEXTURE_DESC.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected CUDA_TEXTURE_DESC
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static CUDA_TEXTURE_DESC
create()

Returns a new CUDA_TEXTURE_DESC instance allocated with BufferUtils.

public static CUDA_TEXTURE_DESC
create(long address)

Returns a new CUDA_TEXTURE_DESC instance for the specified memory address.

public static CUDA_TEXTURE_DESC.Buffer
create(int
the buffer capacity
capacity
)

Returns a new CUDA_TEXTURE_DESC.Buffer instance allocated with BufferUtils.

public static CUDA_TEXTURE_DESC.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a CUDA_TEXTURE_DESC.Buffer instance at the specified memory.

public static CUDA_TEXTURE_DESC
createSafe(long address)

Like create, but returns null if address is NULL.

public static CUDA_TEXTURE_DESC.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the filterMode field.
filterMode
()

public CUDA_TEXTURE_DESC
filterMode(int value)

Sets the specified value to the filterMode field.

public int

Returns:

the value of the flags field.
flags
()

public CUDA_TEXTURE_DESC
flags(int value)

Sets the specified value to the flags field.

public static CUDA_TEXTURE_DESC
malloc()

Returns a new CUDA_TEXTURE_DESC instance allocated with memAlloc.

public static CUDA_TEXTURE_DESC.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new CUDA_TEXTURE_DESC.Buffer instance allocated with memAlloc.

public static CUDA_TEXTURE_DESC
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack.

public static CUDA_TEXTURE_DESC.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_TEXTURE_DESC.Buffer instance allocated on the specified MemoryStack.

public static CUDA_TEXTURE_DESC
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_TEXTURE_DESC
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_TEXTURE_DESC.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_TEXTURE_DESC.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the maxAnisotropy field.
maxAnisotropy
()

public CUDA_TEXTURE_DESC
maxAnisotropy(int value)

Sets the specified value to the maxAnisotropy field.

public float

Returns:

the value of the maxMipmapLevelClamp field.
maxMipmapLevelClamp
()

public CUDA_TEXTURE_DESC
maxMipmapLevelClamp(float value)

Sets the specified value to the maxMipmapLevelClamp field.

public float

Returns:

the value of the minMipmapLevelClamp field.
minMipmapLevelClamp
()

public CUDA_TEXTURE_DESC
minMipmapLevelClamp(float value)

Sets the specified value to the minMipmapLevelClamp field.

public int

Returns:

the value of the mipmapFilterMode field.
mipmapFilterMode
()

public CUDA_TEXTURE_DESC
mipmapFilterMode(int value)

Sets the specified value to the mipmapFilterMode field.

public float

Returns:

the value of the mipmapLevelBias field.
mipmapLevelBias
()

public CUDA_TEXTURE_DESC
mipmapLevelBias(float value)

Sets the specified value to the mipmapLevelBias field.

public static IntBuffer
naddressMode(long struct)

Unsafe version of addressMode.

public static int
naddressMode(long struct, int index)

Unsafe version of addressMode.

public static void
naddressMode(long struct, IntBuffer value)

Unsafe version of addressMode.

public static void
naddressMode(long struct, int index, int value)

Unsafe version of addressMode.

public static FloatBuffer
nborderColor(long struct)

Unsafe version of borderColor.

public static float
nborderColor(long struct, int index)

Unsafe version of borderColor.

public static void
nborderColor(long struct, FloatBuffer value)

Unsafe version of borderColor.

public static void
nborderColor(long struct, int index, float value)

Unsafe version of borderColor.

public static int
nfilterMode(long struct)

Unsafe version of filterMode.

public static void
nfilterMode(long struct, int value)

Unsafe version of filterMode.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
nmaxAnisotropy(long struct)

Unsafe version of maxAnisotropy.

public static void
nmaxAnisotropy(long struct, int value)

Unsafe version of maxAnisotropy.

public static float
nmaxMipmapLevelClamp(long struct)

Unsafe version of maxMipmapLevelClamp.

public static void
nmaxMipmapLevelClamp(long struct, float value)

Unsafe version of maxMipmapLevelClamp.

public static float
nminMipmapLevelClamp(long struct)

Unsafe version of minMipmapLevelClamp.

public static void
nminMipmapLevelClamp(long struct, float value)

Unsafe version of minMipmapLevelClamp.

public static int
nmipmapFilterMode(long struct)

Unsafe version of mipmapFilterMode.

public static void
nmipmapFilterMode(long struct, int value)

Unsafe version of mipmapFilterMode.

public static float
nmipmapLevelBias(long struct)

Unsafe version of mipmapLevelBias.

public static void
nmipmapLevelBias(long struct, float value)

Unsafe version of mipmapLevelBias.

public static IntBuffer
nreserved(long struct)

Unsafe version of reserved.

public static int
nreserved(long struct, int index)

Unsafe version of reserved.

public static void
nreserved(long struct, IntBuffer value)

Unsafe version of reserved.

public static void
nreserved(long struct, int index, int value)

Unsafe version of reserved.

public IntBuffer

Returns:

a IntBuffer view of the reserved field.
reserved
()

public int

Returns:

the value at the specified index of the reserved field.
reserved
(int index)

public CUDA_TEXTURE_DESC
reserved(IntBuffer value)

Copies the specified IntBuffer to the reserved field.

public CUDA_TEXTURE_DESC
reserved(int index, int value)

Sets the specified value at the specified index of the reserved field.

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.

public CUDA_TEXTURE_DESC

Returns:

this struct
set
(CUDA_TEXTURE_DESC
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate