Package org.lwjgl.cuda
Class CUDA_TEXTURE_DESC
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_TEXTURE_DESC
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_TEXTURE_DESC extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceTexture descriptor.Layout
struct CUDA_TEXTURE_DESC { CUaddress_modeaddressMode()[3]; CUfilter_modefilterMode(); unsigned intflags(); unsigned intmaxAnisotropy(); CUfilter_modemipmapFilterMode(); floatmipmapLevelBias(); floatminMipmapLevelClamp(); floatmaxMipmapLevelClamp(); floatborderColor()[4]; int reserved[12]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_TEXTURE_DESC.BufferAn array ofCUDA_TEXTURE_DESCstructs.
-
Field Summary
Fields Modifier and Type Field Description static intADDRESSMODEThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBORDERCOLOR
FILTERMODE
FLAGS
MAXANISOTROPY
MAXMIPMAPLEVELCLAMP
MINMIPMAPLEVELCLAMP
MIPMAPFILTERMODE
MIPMAPLEVELBIAS
RESERVEDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CUDA_TEXTURE_DESC(java.nio.ByteBuffer container)Creates aCUDA_TEXTURE_DESCinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.nio.IntBufferaddressMode()Address modesintaddressMode(int index)Address modesCUDA_TEXTURE_DESCaddressMode(int index, int value)Sets the specified value at the specified index of theaddressMode()field.CUDA_TEXTURE_DESCaddressMode(java.nio.IntBuffer value)Copies the specifiedIntBufferto theaddressMode()field.java.nio.FloatBufferborderColor()Border ColorfloatborderColor(int index)Border ColorCUDA_TEXTURE_DESCborderColor(int index, float value)Sets the specified value at the specified index of theborderColor()field.CUDA_TEXTURE_DESCborderColor(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto theborderColor()field.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_DESCcallocStack()Deprecated.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 CUDA_TEXTURE_DESCcreateSafe(long address)static CUDA_TEXTURE_DESC.BuffercreateSafe(long address, int capacity)intfilterMode()Filter modeCUDA_TEXTURE_DESCfilterMode(int value)Sets the specified value to thefilterMode()field.intflags()FlagsCUDA_TEXTURE_DESCflags(int value)Sets the specified value to theflags()field.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_DESCmallocStack()Deprecated.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()Maximum anisotropy ratioCUDA_TEXTURE_DESCmaxAnisotropy(int value)Sets the specified value to themaxAnisotropy()field.floatmaxMipmapLevelClamp()Mipmap maximum level clampCUDA_TEXTURE_DESCmaxMipmapLevelClamp(float value)Sets the specified value to themaxMipmapLevelClamp()field.floatminMipmapLevelClamp()Mipmap minimum level clampCUDA_TEXTURE_DESCminMipmapLevelClamp(float value)Sets the specified value to theminMipmapLevelClamp()field.intmipmapFilterMode()Mipmap filter modeCUDA_TEXTURE_DESCmipmapFilterMode(int value)Sets the specified value to themipmapFilterMode()field.floatmipmapLevelBias()Mipmap level biasCUDA_TEXTURE_DESCmipmapLevelBias(float value)Sets the specified value to themipmapLevelBias()field.static java.nio.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, java.nio.IntBuffer value)Unsafe version ofaddressMode.static java.nio.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, java.nio.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 java.nio.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 voidnreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.java.nio.IntBufferreserved()intreserved(int index)CUDA_TEXTURE_DESCreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.CUDA_TEXTURE_DESCreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.CUDA_TEXTURE_DESCset(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.CUDA_TEXTURE_DESCset(CUDA_TEXTURE_DESC src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
CUDA_TEXTURE_DESC
public CUDA_TEXTURE_DESC(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
addressMode
public java.nio.IntBuffer addressMode() public int addressMode(int index)
Address modes
-
filterMode
public int filterMode()
Filter mode
-
flags
public int flags()
Flags
-
maxAnisotropy
public int maxAnisotropy()
Maximum anisotropy ratio
-
mipmapFilterMode
public int mipmapFilterMode()
Mipmap filter mode
-
mipmapLevelBias
public float mipmapLevelBias()
Mipmap level bias
-
minMipmapLevelClamp
public float minMipmapLevelClamp()
Mipmap minimum level clamp
-
maxMipmapLevelClamp
public float maxMipmapLevelClamp()
Mipmap maximum level clamp
-
borderColor
public java.nio.FloatBuffer borderColor() public float borderColor(int index)
Border Color
-
reserved
public java.nio.IntBuffer reserved()
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index)
- Returns:
- the value at the specified index of the
reservedfield.
-
addressMode
public CUDA_TEXTURE_DESC addressMode(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theaddressMode()field.
-
addressMode
public CUDA_TEXTURE_DESC addressMode(int index, int value)
Sets the specified value at the specified index of theaddressMode()field.
-
filterMode
public CUDA_TEXTURE_DESC filterMode(int value)
Sets the specified value to thefilterMode()field.
-
flags
public CUDA_TEXTURE_DESC flags(int value)
Sets the specified value to theflags()field.
-
maxAnisotropy
public CUDA_TEXTURE_DESC maxAnisotropy(int value)
Sets the specified value to themaxAnisotropy()field.
-
mipmapFilterMode
public CUDA_TEXTURE_DESC mipmapFilterMode(int value)
Sets the specified value to themipmapFilterMode()field.
-
mipmapLevelBias
public CUDA_TEXTURE_DESC mipmapLevelBias(float value)
Sets the specified value to themipmapLevelBias()field.
-
minMipmapLevelClamp
public CUDA_TEXTURE_DESC minMipmapLevelClamp(float value)
Sets the specified value to theminMipmapLevelClamp()field.
-
maxMipmapLevelClamp
public CUDA_TEXTURE_DESC maxMipmapLevelClamp(float value)
Sets the specified value to themaxMipmapLevelClamp()field.
-
borderColor
public CUDA_TEXTURE_DESC borderColor(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto theborderColor()field.
-
borderColor
public CUDA_TEXTURE_DESC borderColor(int index, float value)
Sets the specified value at the specified index of theborderColor()field.
-
reserved
public CUDA_TEXTURE_DESC reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_TEXTURE_DESC reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
set
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)
Initializes this struct with the specified values.
-
set
public CUDA_TEXTURE_DESC set(CUDA_TEXTURE_DESC src)
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 newCUDA_TEXTURE_DESCinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_TEXTURE_DESC calloc()
Returns a newCUDA_TEXTURE_DESCinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_TEXTURE_DESC create()
Returns a newCUDA_TEXTURE_DESCinstance allocated withBufferUtils.
-
create
public static CUDA_TEXTURE_DESC create(long address)
Returns a newCUDA_TEXTURE_DESCinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_TEXTURE_DESC createSafe(long address)
-
malloc
public static CUDA_TEXTURE_DESC.Buffer malloc(int capacity)
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_TEXTURE_DESC.Buffer calloc(int capacity)
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_TEXTURE_DESC.Buffer create(int capacity)
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_TEXTURE_DESC.Buffer create(long address, int capacity)
Create aCUDA_TEXTURE_DESC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_TEXTURE_DESC.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUDA_TEXTURE_DESC mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_TEXTURE_DESC callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_TEXTURE_DESC mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_TEXTURE_DESC callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_TEXTURE_DESC.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_TEXTURE_DESC.Buffer callocStack(int capacity)
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
public static CUDA_TEXTURE_DESC malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_TEXTURE_DESCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_TEXTURE_DESC calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_TEXTURE_DESCinstance allocated on the specifiedMemoryStackand 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 newCUDA_TEXTURE_DESC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUDA_TEXTURE_DESC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_TEXTURE_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
naddressMode
public static java.nio.IntBuffer naddressMode(long struct)
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
public static java.nio.FloatBuffer nborderColor(long struct)
Unsafe version ofborderColor().
-
nborderColor
public static float nborderColor(long struct, int index)Unsafe version ofborderColor.
-
nreserved
public static java.nio.IntBuffer nreserved(long struct)
Unsafe version ofreserved().
-
nreserved
public static int nreserved(long struct, int index)Unsafe version ofreserved.
-
naddressMode
public static void naddressMode(long struct, java.nio.IntBuffer value)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
public static void nborderColor(long struct, java.nio.FloatBuffer value)Unsafe version ofborderColor.
-
nborderColor
public static void nborderColor(long struct, int index, float value)Unsafe version ofborderColor.
-
nreserved
public static void nreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, int index, int value)Unsafe version ofreserved.
-
-