Package org.lwjgl.cuda
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];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUDA_TEXTURE_DESC(ByteBuffer container) Creates aCUDA_TEXTURE_DESCinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintaddressMode(int index) addressMode(int index, int value) Sets the specified value at the specified index of theaddressModefield.addressMode(IntBuffer value) Copies the specifiedIntBufferto theaddressModefield.floatborderColor(int index) borderColor(int index, float value) Sets the specified value at the specified index of theborderColorfield.borderColor(FloatBuffer value) Copies the specifiedFloatBufferto theborderColorfield.static CUDA_TEXTURE_DESCcalloc()Returns a newCUDA_TEXTURE_DESCinstance allocated withmemCalloc.static CUDA_TEXTURE_DESC.Buffercalloc(int capacity) Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withmemCalloc.static CUDA_TEXTURE_DESC.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_TEXTURE_DESCcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_TEXTURE_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_TEXTURE_DESCDeprecated.static CUDA_TEXTURE_DESC.BuffercallocStack(int capacity) Deprecated.static CUDA_TEXTURE_DESC.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_TEXTURE_DESCcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_TEXTURE_DESCcreate()Returns a newCUDA_TEXTURE_DESCinstance allocated withBufferUtils.static CUDA_TEXTURE_DESC.Buffercreate(int capacity) Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withBufferUtils.static CUDA_TEXTURE_DESCcreate(long address) Returns a newCUDA_TEXTURE_DESCinstance for the specified memory address.static CUDA_TEXTURE_DESC.Buffercreate(long address, int capacity) Create aCUDA_TEXTURE_DESC.Bufferinstance at the specified memory.static @Nullable CUDA_TEXTURE_DESCcreateSafe(long address) static @Nullable CUDA_TEXTURE_DESC.BuffercreateSafe(long address, int capacity) intfilterMode(int value) Sets the specified value to thefilterModefield.intflags()flags(int value) Sets the specified value to theflagsfield.static CUDA_TEXTURE_DESCmalloc()Returns a newCUDA_TEXTURE_DESCinstance allocated withmemAlloc.static CUDA_TEXTURE_DESC.Buffermalloc(int capacity) Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withmemAlloc.static CUDA_TEXTURE_DESC.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_TEXTURE_DESCmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_TEXTURE_DESCinstance allocated on the specifiedMemoryStack.static CUDA_TEXTURE_DESCDeprecated.static CUDA_TEXTURE_DESC.BuffermallocStack(int capacity) Deprecated.static CUDA_TEXTURE_DESC.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_TEXTURE_DESCmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.intmaxAnisotropy(int value) Sets the specified value to themaxAnisotropyfield.floatmaxMipmapLevelClamp(float value) Sets the specified value to themaxMipmapLevelClampfield.floatminMipmapLevelClamp(float value) Sets the specified value to theminMipmapLevelClampfield.intmipmapFilterMode(int value) Sets the specified value to themipmapFilterModefield.floatmipmapLevelBias(float value) Sets the specified value to themipmapLevelBiasfield.static IntBuffernaddressMode(long struct) Unsafe version ofaddressMode().static intnaddressMode(long struct, int index) Unsafe version ofaddressMode.static voidnaddressMode(long struct, int index, int value) Unsafe version ofaddressMode.static voidnaddressMode(long struct, IntBuffer value) Unsafe version ofaddressMode.static FloatBuffernborderColor(long struct) Unsafe version ofborderColor().static floatnborderColor(long struct, int index) Unsafe version ofborderColor.static voidnborderColor(long struct, int index, float value) Unsafe version ofborderColor.static voidnborderColor(long struct, FloatBuffer value) Unsafe version ofborderColor.static intnfilterMode(long struct) Unsafe version offilterMode().static voidnfilterMode(long struct, int value) Unsafe version offilterMode.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy().static voidnmaxAnisotropy(long struct, int value) Unsafe version ofmaxAnisotropy.static floatnmaxMipmapLevelClamp(long struct) Unsafe version ofmaxMipmapLevelClamp().static voidnmaxMipmapLevelClamp(long struct, float value) Unsafe version ofmaxMipmapLevelClamp.static floatnminMipmapLevelClamp(long struct) Unsafe version ofminMipmapLevelClamp().static voidnminMipmapLevelClamp(long struct, float value) Unsafe version ofminMipmapLevelClamp.static intnmipmapFilterMode(long struct) Unsafe version ofmipmapFilterMode().static voidnmipmapFilterMode(long struct, int value) Unsafe version ofmipmapFilterMode.static floatnmipmapLevelBias(long struct) Unsafe version ofmipmapLevelBias().static voidnmipmapLevelBias(long struct, float value) Unsafe version ofmipmapLevelBias.static IntBuffernreserved(long struct) Unsafe version ofreserved().static intnreserved(long struct, int index) Unsafe version ofreserved.static voidnreserved(long struct, int index, int value) Unsafe version ofreserved.static voidUnsafe version ofreserved.reserved()intreserved(int index) reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.Copies the specifiedIntBufferto thereservedfield.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(CUDA_TEXTURE_DESC src) Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ADDRESSMODE
public static final int ADDRESSMODEThe struct member offsets. -
FILTERMODE
public static final int FILTERMODEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
MAXANISOTROPY
public static final int MAXANISOTROPYThe struct member offsets. -
MIPMAPFILTERMODE
public static final int MIPMAPFILTERMODEThe struct member offsets. -
MIPMAPLEVELBIAS
public static final int MIPMAPLEVELBIASThe struct member offsets. -
MINMIPMAPLEVELCLAMP
public static final int MINMIPMAPLEVELCLAMPThe struct member offsets. -
MAXMIPMAPLEVELCLAMP
public static final int MAXMIPMAPLEVELCLAMPThe struct member offsets. -
BORDERCOLOR
public static final int BORDERCOLORThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
CUDA_TEXTURE_DESC
Creates aCUDA_TEXTURE_DESCinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct<CUDA_TEXTURE_DESC>
-
addressMode
- Returns:
- a
IntBufferview of theaddressModefield.
-
addressMode
public int addressMode(int index) - Returns:
- the value at the specified index of the
addressModefield.
-
filterMode
public int filterMode()- Returns:
- the value of the
filterModefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
maxAnisotropy
public int maxAnisotropy()- Returns:
- the value of the
maxAnisotropyfield.
-
mipmapFilterMode
public int mipmapFilterMode()- Returns:
- the value of the
mipmapFilterModefield.
-
mipmapLevelBias
public float mipmapLevelBias()- Returns:
- the value of the
mipmapLevelBiasfield.
-
minMipmapLevelClamp
public float minMipmapLevelClamp()- Returns:
- the value of the
minMipmapLevelClampfield.
-
maxMipmapLevelClamp
public float maxMipmapLevelClamp()- Returns:
- the value of the
maxMipmapLevelClampfield.
-
borderColor
- Returns:
- a
FloatBufferview of theborderColorfield.
-
borderColor
public float borderColor(int index) - Returns:
- the value at the specified index of the
borderColorfield.
-
reserved
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
addressMode
Copies the specifiedIntBufferto theaddressModefield. -
addressMode
Sets the specified value at the specified index of theaddressModefield. -
filterMode
Sets the specified value to thefilterModefield. -
flags
Sets the specified value to theflagsfield. -
maxAnisotropy
Sets the specified value to themaxAnisotropyfield. -
mipmapFilterMode
Sets the specified value to themipmapFilterModefield. -
mipmapLevelBias
Sets the specified value to themipmapLevelBiasfield. -
minMipmapLevelClamp
Sets the specified value to theminMipmapLevelClampfield. -
maxMipmapLevelClamp
Sets the specified value to themaxMipmapLevelClampfield. -
borderColor
Copies the specifiedFloatBufferto theborderColorfield. -
borderColor
Sets the specified value at the specified index of theborderColorfield. -
reserved
Copies the specifiedIntBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
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
Returns a newCUDA_TEXTURE_DESCinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUDA_TEXTURE_DESCinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUDA_TEXTURE_DESCinstance allocated withBufferUtils. -
create
Returns a newCUDA_TEXTURE_DESCinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUDA_TEXTURE_DESC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(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. Usemalloc(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. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newCUDA_TEXTURE_DESCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUDA_TEXTURE_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
naddressMode
Unsafe version ofaddressMode(). -
naddressMode
public static int naddressMode(long struct, int index) Unsafe version ofaddressMode. -
nfilterMode
public static int nfilterMode(long struct) Unsafe version offilterMode(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nmaxAnisotropy
public static int nmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy(). -
nmipmapFilterMode
public static int nmipmapFilterMode(long struct) Unsafe version ofmipmapFilterMode(). -
nmipmapLevelBias
public static float nmipmapLevelBias(long struct) Unsafe version ofmipmapLevelBias(). -
nminMipmapLevelClamp
public static float nminMipmapLevelClamp(long struct) Unsafe version ofminMipmapLevelClamp(). -
nmaxMipmapLevelClamp
public static float nmaxMipmapLevelClamp(long struct) Unsafe version ofmaxMipmapLevelClamp(). -
nborderColor
Unsafe version ofborderColor(). -
nborderColor
public static float nborderColor(long struct, int index) Unsafe version ofborderColor. -
nreserved
Unsafe version ofreserved(). -
nreserved
public static int nreserved(long struct, int index) Unsafe version ofreserved. -
naddressMode
Unsafe version ofaddressMode. -
naddressMode
public static void naddressMode(long struct, int index, int value) Unsafe version ofaddressMode. -
nfilterMode
public static void nfilterMode(long struct, int value) Unsafe version offilterMode. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nmaxAnisotropy
public static void nmaxAnisotropy(long struct, int value) Unsafe version ofmaxAnisotropy. -
nmipmapFilterMode
public static void nmipmapFilterMode(long struct, int value) Unsafe version ofmipmapFilterMode. -
nmipmapLevelBias
public static void nmipmapLevelBias(long struct, float value) Unsafe version ofmipmapLevelBias. -
nminMipmapLevelClamp
public static void nminMipmapLevelClamp(long struct, float value) Unsafe version ofminMipmapLevelClamp. -
nmaxMipmapLevelClamp
public static void nmaxMipmapLevelClamp(long struct, float value) Unsafe version ofmaxMipmapLevelClamp. -
nborderColor
Unsafe version ofborderColor. -
nborderColor
public static void nborderColor(long struct, int index, float value) Unsafe version ofborderColor. -
nreserved
Unsafe version ofreserved. -
nreserved
public static void nreserved(long struct, int index, int value) Unsafe version ofreserved.
-