public class CUDA_TEXTURE_DESC
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
addressMode[3] – Address modesfilterMode – Filter modeflags – FlagsmaxAnisotropy – Maximum anisotropy ratiomipmapFilterMode – Mipmap filter modemipmapLevelBias – Mipmap level biasminMipmapLevelClamp – Mipmap minimum level clampmaxMipmapLevelClamp – Mipmap maximum level clampborderColor[4] – Border Color
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];
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_TEXTURE_DESC.Buffer
An array of
CUDA_TEXTURE_DESC structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESSMODE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BORDERCOLOR
The struct member offsets.
|
static int |
FILTERMODE
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
MAXANISOTROPY
The struct member offsets.
|
static int |
MAXMIPMAPLEVELCLAMP
The struct member offsets.
|
static int |
MINMIPMAPLEVELCLAMP
The struct member offsets.
|
static int |
MIPMAPFILTERMODE
The struct member offsets.
|
static int |
MIPMAPLEVELBIAS
The struct member offsets.
|
static int |
RESERVED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUDA_TEXTURE_DESC(java.nio.ByteBuffer container)
Creates a
CUDA_TEXTURE_DESC instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.IntBuffer |
addressMode()
Returns a
IntBuffer view of the addressMode field. |
int |
addressMode(int index)
Returns the value at the specified index of the
addressMode field. |
CUDA_TEXTURE_DESC |
addressMode(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the addressMode field. |
CUDA_TEXTURE_DESC |
addressMode(int index,
int value)
Sets the specified value at the specified index of the
addressMode field. |
java.nio.FloatBuffer |
borderColor()
Returns a
FloatBuffer view of the borderColor field. |
CUDA_TEXTURE_DESC |
borderColor(java.nio.FloatBuffer value)
Copies the specified
FloatBuffer to the borderColor field. |
float |
borderColor(int index)
Returns the value at the specified index of the
borderColor field. |
CUDA_TEXTURE_DESC |
borderColor(int index,
float value)
Sets the specified value at the specified index of the
borderColor field. |
static CUDA_TEXTURE_DESC |
calloc()
Returns a new
CUDA_TEXTURE_DESC instance allocated with memCalloc. |
static CUDA_TEXTURE_DESC.Buffer |
calloc(int capacity)
Returns a new
CUDA_TEXTURE_DESC.Buffer instance allocated with memCalloc. |
static CUDA_TEXTURE_DESC |
callocStack()
Returns a new
CUDA_TEXTURE_DESC instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_TEXTURE_DESC.Buffer |
callocStack(int capacity)
Returns a new
CUDA_TEXTURE_DESC.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_TEXTURE_DESC.Buffer |
callocStack(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. |
static CUDA_TEXTURE_DESC |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_TEXTURE_DESC |
create()
Returns a new
CUDA_TEXTURE_DESC instance allocated with BufferUtils. |
static CUDA_TEXTURE_DESC.Buffer |
create(int capacity)
Returns a new
CUDA_TEXTURE_DESC.Buffer instance allocated with BufferUtils. |
static CUDA_TEXTURE_DESC |
create(long address)
Returns a new
CUDA_TEXTURE_DESC instance for the specified memory address. |
static CUDA_TEXTURE_DESC.Buffer |
create(long address,
int capacity)
Create a
CUDA_TEXTURE_DESC.Buffer instance at the specified memory. |
static CUDA_TEXTURE_DESC |
createSafe(long address)
|
static CUDA_TEXTURE_DESC.Buffer |
createSafe(long address,
int capacity)
|
int |
filterMode()
Returns the value of the
filterMode field. |
CUDA_TEXTURE_DESC |
filterMode(int value)
Sets the specified value to the
filterMode field. |
int |
flags()
Returns the value of the
flags field. |
CUDA_TEXTURE_DESC |
flags(int value)
Sets the specified value to the
flags field. |
static CUDA_TEXTURE_DESC |
malloc()
Returns a new
CUDA_TEXTURE_DESC instance allocated with memAlloc. |
static CUDA_TEXTURE_DESC.Buffer |
malloc(int capacity)
Returns a new
CUDA_TEXTURE_DESC.Buffer instance allocated with memAlloc. |
static CUDA_TEXTURE_DESC |
mallocStack()
Returns a new
CUDA_TEXTURE_DESC instance allocated on the thread-local MemoryStack. |
static CUDA_TEXTURE_DESC.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_TEXTURE_DESC.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_TEXTURE_DESC.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_TEXTURE_DESC.Buffer instance allocated on the specified MemoryStack. |
static CUDA_TEXTURE_DESC |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack. |
int |
maxAnisotropy()
Returns the value of the
maxAnisotropy field. |
CUDA_TEXTURE_DESC |
maxAnisotropy(int value)
Sets the specified value to the
maxAnisotropy field. |
float |
maxMipmapLevelClamp()
Returns the value of the
maxMipmapLevelClamp field. |
CUDA_TEXTURE_DESC |
maxMipmapLevelClamp(float value)
Sets the specified value to the
maxMipmapLevelClamp field. |
float |
minMipmapLevelClamp()
Returns the value of the
minMipmapLevelClamp field. |
CUDA_TEXTURE_DESC |
minMipmapLevelClamp(float value)
Sets the specified value to the
minMipmapLevelClamp field. |
int |
mipmapFilterMode()
Returns the value of the
mipmapFilterMode field. |
CUDA_TEXTURE_DESC |
mipmapFilterMode(int value)
Sets the specified value to the
mipmapFilterMode field. |
float |
mipmapLevelBias()
Returns the value of the
mipmapLevelBias field. |
CUDA_TEXTURE_DESC |
mipmapLevelBias(float value)
Sets the specified value to the
mipmapLevelBias field. |
static java.nio.IntBuffer |
naddressMode(long struct)
Unsafe version of
addressMode(). |
static int |
naddressMode(long struct,
int index)
Unsafe version of
addressMode. |
static void |
naddressMode(long struct,
java.nio.IntBuffer value)
Unsafe version of
addressMode. |
static void |
naddressMode(long struct,
int index,
int value)
Unsafe version of
addressMode. |
static java.nio.FloatBuffer |
nborderColor(long struct)
Unsafe version of
borderColor(). |
static void |
nborderColor(long struct,
java.nio.FloatBuffer value)
Unsafe version of
borderColor. |
static float |
nborderColor(long struct,
int index)
Unsafe version of
borderColor. |
static void |
nborderColor(long struct,
int index,
float value)
Unsafe version of
borderColor. |
static int |
nfilterMode(long struct)
Unsafe version of
filterMode(). |
static void |
nfilterMode(long struct,
int value)
Unsafe version of
filterMode. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nmaxAnisotropy(long struct)
Unsafe version of
maxAnisotropy(). |
static void |
nmaxAnisotropy(long struct,
int value)
Unsafe version of
maxAnisotropy. |
static float |
nmaxMipmapLevelClamp(long struct)
Unsafe version of
maxMipmapLevelClamp(). |
static void |
nmaxMipmapLevelClamp(long struct,
float value)
Unsafe version of
maxMipmapLevelClamp. |
static float |
nminMipmapLevelClamp(long struct)
Unsafe version of
minMipmapLevelClamp(). |
static void |
nminMipmapLevelClamp(long struct,
float value)
Unsafe version of
minMipmapLevelClamp. |
static int |
nmipmapFilterMode(long struct)
Unsafe version of
mipmapFilterMode(). |
static void |
nmipmapFilterMode(long struct,
int value)
Unsafe version of
mipmapFilterMode. |
static float |
nmipmapLevelBias(long struct)
Unsafe version of
mipmapLevelBias(). |
static void |
nmipmapLevelBias(long struct,
float value)
Unsafe version of
mipmapLevelBias. |
static java.nio.IntBuffer |
nreserved(long struct)
Unsafe version of
reserved(). |
static int |
nreserved(long struct,
int index)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
java.nio.IntBuffer value)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
int index,
int value)
Unsafe version of
reserved. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUDA_TEXTURE_DESC |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_TEXTURE_DESC |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
CUDA_TEXTURE_DESC |
set(CUDA_TEXTURE_DESC src)
Copies the specified struct data to this struct.
|
CUDA_TEXTURE_DESC |
set(java.nio.IntBuffer addressMode,
int filterMode,
int flags,
int maxAnisotropy,
int mipmapFilterMode,
float mipmapLevelBias,
float minMipmapLevelClamp,
float maxMipmapLevelClamp,
java.nio.FloatBuffer borderColor,
java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ADDRESSMODE
public static final int FILTERMODE
public static final int FLAGS
public static final int MAXANISOTROPY
public static final int MIPMAPFILTERMODE
public static final int MIPMAPLEVELBIAS
public static final int MINMIPMAPLEVELCLAMP
public static final int MAXMIPMAPLEVELCLAMP
public static final int BORDERCOLOR
public static final int RESERVED
public CUDA_TEXTURE_DESC(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.IntBuffer addressMode()
IntBuffer view of the addressMode field.public int addressMode(int index)
addressMode field.public int filterMode()
filterMode field.public int flags()
flags field.public int maxAnisotropy()
maxAnisotropy field.public int mipmapFilterMode()
mipmapFilterMode field.public float mipmapLevelBias()
mipmapLevelBias field.public float minMipmapLevelClamp()
minMipmapLevelClamp field.public float maxMipmapLevelClamp()
maxMipmapLevelClamp field.public java.nio.FloatBuffer borderColor()
FloatBuffer view of the borderColor field.public float borderColor(int index)
borderColor field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_TEXTURE_DESC addressMode(java.nio.IntBuffer value)
IntBuffer to the addressMode field.public CUDA_TEXTURE_DESC addressMode(int index, int value)
addressMode field.public CUDA_TEXTURE_DESC filterMode(int value)
filterMode field.public CUDA_TEXTURE_DESC flags(int value)
flags field.public CUDA_TEXTURE_DESC maxAnisotropy(int value)
maxAnisotropy field.public CUDA_TEXTURE_DESC mipmapFilterMode(int value)
mipmapFilterMode field.public CUDA_TEXTURE_DESC mipmapLevelBias(float value)
mipmapLevelBias field.public CUDA_TEXTURE_DESC minMipmapLevelClamp(float value)
minMipmapLevelClamp field.public CUDA_TEXTURE_DESC maxMipmapLevelClamp(float value)
maxMipmapLevelClamp field.public CUDA_TEXTURE_DESC borderColor(java.nio.FloatBuffer value)
FloatBuffer to the borderColor field.public CUDA_TEXTURE_DESC borderColor(int index, float value)
borderColor field.public CUDA_TEXTURE_DESC reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_TEXTURE_DESC reserved(int index, int value)
reserved field.public CUDA_TEXTURE_DESC set(java.nio.IntBuffer addressMode, int filterMode, int flags, int maxAnisotropy, int mipmapFilterMode, float mipmapLevelBias, float minMipmapLevelClamp, float maxMipmapLevelClamp, java.nio.FloatBuffer borderColor, java.nio.IntBuffer reserved)
public CUDA_TEXTURE_DESC set(CUDA_TEXTURE_DESC src)
src - the source structpublic static CUDA_TEXTURE_DESC malloc()
CUDA_TEXTURE_DESC instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_TEXTURE_DESC calloc()
CUDA_TEXTURE_DESC instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_TEXTURE_DESC create()
CUDA_TEXTURE_DESC instance allocated with BufferUtils.public static CUDA_TEXTURE_DESC create(long address)
CUDA_TEXTURE_DESC instance for the specified memory address.@Nullable public static CUDA_TEXTURE_DESC createSafe(long address)
public static CUDA_TEXTURE_DESC.Buffer malloc(int capacity)
CUDA_TEXTURE_DESC.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_TEXTURE_DESC.Buffer calloc(int capacity)
CUDA_TEXTURE_DESC.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_TEXTURE_DESC.Buffer create(int capacity)
CUDA_TEXTURE_DESC.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_TEXTURE_DESC.Buffer create(long address, int capacity)
CUDA_TEXTURE_DESC.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_TEXTURE_DESC.Buffer createSafe(long address, int capacity)
public static CUDA_TEXTURE_DESC mallocStack()
CUDA_TEXTURE_DESC instance allocated on the thread-local MemoryStack.public static CUDA_TEXTURE_DESC callocStack()
CUDA_TEXTURE_DESC instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_TEXTURE_DESC mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_TEXTURE_DESC callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_TEXTURE_DESC instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_TEXTURE_DESC.Buffer mallocStack(int capacity)
CUDA_TEXTURE_DESC.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_TEXTURE_DESC.Buffer callocStack(int capacity)
CUDA_TEXTURE_DESC.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_TEXTURE_DESC.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_TEXTURE_DESC.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_TEXTURE_DESC.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_TEXTURE_DESC.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.IntBuffer naddressMode(long struct)
addressMode().public static int naddressMode(long struct,
int index)
addressMode.public static int nfilterMode(long struct)
filterMode().public static int nflags(long struct)
flags().public static int nmaxAnisotropy(long struct)
maxAnisotropy().public static int nmipmapFilterMode(long struct)
mipmapFilterMode().public static float nmipmapLevelBias(long struct)
mipmapLevelBias().public static float nminMipmapLevelClamp(long struct)
minMipmapLevelClamp().public static float nmaxMipmapLevelClamp(long struct)
maxMipmapLevelClamp().public static java.nio.FloatBuffer nborderColor(long struct)
borderColor().public static float nborderColor(long struct,
int index)
borderColor.public static java.nio.IntBuffer nreserved(long struct)
reserved().public static int nreserved(long struct,
int index)
reserved.public static void naddressMode(long struct,
java.nio.IntBuffer value)
addressMode.public static void naddressMode(long struct,
int index,
int value)
addressMode.public static void nfilterMode(long struct,
int value)
filterMode.public static void nflags(long struct,
int value)
flags.public static void nmaxAnisotropy(long struct,
int value)
maxAnisotropy.public static void nmipmapFilterMode(long struct,
int value)
mipmapFilterMode.public static void nmipmapLevelBias(long struct,
float value)
mipmapLevelBias.public static void nminMipmapLevelClamp(long struct,
float value)
minMipmapLevelClamp.public static void nmaxMipmapLevelClamp(long struct,
float value)
maxMipmapLevelClamp.public static void nborderColor(long struct,
java.nio.FloatBuffer value)
borderColor.public static void nborderColor(long struct,
int index,
float value)
borderColor.public static void nreserved(long struct,
java.nio.IntBuffer value)
reserved.public static void nreserved(long struct,
int index,
int value)
reserved.Copyright LWJGL. All Rights Reserved. License terms.