Package org.lwjgl.cuda
Class CUDA_RESOURCE_VIEW_DESC
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUDA_RESOURCE_VIEW_DESC>
org.lwjgl.cuda.CUDA_RESOURCE_VIEW_DESC
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_RESOURCE_VIEW_DESC
extends org.lwjgl.system.Struct<CUDA_RESOURCE_VIEW_DESC>
implements org.lwjgl.system.NativeResource
Layout
struct CUDA_RESOURCE_VIEW_DESC {
CUresourceViewFormat format;
size_t width;
size_t height;
size_t depth;
unsigned int firstMipmapLevel;
unsigned int lastMipmapLevel;
unsigned int firstLayer;
unsigned int lastLayer;
unsigned int reserved[16];
}-
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 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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUDA_RESOURCE_VIEW_DESC(ByteBuffer container) Creates aCUDA_RESOURCE_VIEW_DESCinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUDA_RESOURCE_VIEW_DESCcalloc()Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_RESOURCE_VIEW_DESCcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_RESOURCE_VIEW_DESCDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_RESOURCE_VIEW_DESCcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_RESOURCE_VIEW_DESCcreate()Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated withBufferUtils.create(int capacity) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated withBufferUtils.static CUDA_RESOURCE_VIEW_DESCcreate(long address) Returns a newCUDA_RESOURCE_VIEW_DESCinstance for the specified memory address.create(long address, int capacity) Create aCUDA_RESOURCE_VIEW_DESC.Bufferinstance at the specified memory.static @Nullable CUDA_RESOURCE_VIEW_DESCcreateSafe(long address) static @Nullable CUDA_RESOURCE_VIEW_DESC.BuffercreateSafe(long address, int capacity) longdepth()depth(long value) Sets the specified value to thedepthfield.intfirstLayer(int value) Sets the specified value to thefirstLayerfield.intfirstMipmapLevel(int value) Sets the specified value to thefirstMipmapLevelfield.intformat()format(int value) Sets the specified value to theformatfield.longheight()height(long value) Sets the specified value to theheightfield.intlastLayer(int value) Sets the specified value to thelastLayerfield.intlastMipmapLevel(int value) Sets the specified value to thelastMipmapLevelfield.static CUDA_RESOURCE_VIEW_DESCmalloc()Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_RESOURCE_VIEW_DESCmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated on the specifiedMemoryStack.static CUDA_RESOURCE_VIEW_DESCDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static CUDA_RESOURCE_VIEW_DESCmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static longndepth(long struct) Unsafe version ofdepth().static voidndepth(long struct, long value) Unsafe version ofdepth.static intnfirstLayer(long struct) Unsafe version offirstLayer().static voidnfirstLayer(long struct, int value) Unsafe version offirstLayer.static intnfirstMipmapLevel(long struct) Unsafe version offirstMipmapLevel().static voidnfirstMipmapLevel(long struct, int value) Unsafe version offirstMipmapLevel.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static longnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, long value) Unsafe version ofheight.static intnlastLayer(long struct) Unsafe version oflastLayer().static voidnlastLayer(long struct, int value) Unsafe version oflastLayer.static intnlastMipmapLevel(long struct) Unsafe version oflastMipmapLevel().static voidnlastMipmapLevel(long struct, int value) Unsafe version oflastMipmapLevel.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.static longnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, long value) Unsafe version ofwidth.reserved()intreserved(int index) reserved(int index, int value) Sets the specified value at the specified index of thereservedfield.Copies the specifiedIntBufferto thereservedfield.set(int format, long width, long height, long depth, int firstMipmapLevel, int lastMipmapLevel, int firstLayer, int lastLayer, IntBuffer reserved) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()longwidth()width(long value) Sets the specified value to thewidthfield.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. -
FORMAT
public static final int FORMATThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
FIRSTMIPMAPLEVEL
public static final int FIRSTMIPMAPLEVELThe struct member offsets. -
LASTMIPMAPLEVEL
public static final int LASTMIPMAPLEVELThe struct member offsets. -
FIRSTLAYER
public static final int FIRSTLAYERThe struct member offsets. -
LASTLAYER
public static final int LASTLAYERThe struct member offsets. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
CUDA_RESOURCE_VIEW_DESC
Creates aCUDA_RESOURCE_VIEW_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_RESOURCE_VIEW_DESC>
-
format
public int format()- Returns:
- the value of the
formatfield.
-
width
public long width()- Returns:
- the value of the
widthfield.
-
height
public long height()- Returns:
- the value of the
heightfield.
-
depth
public long depth()- Returns:
- the value of the
depthfield.
-
firstMipmapLevel
public int firstMipmapLevel()- Returns:
- the value of the
firstMipmapLevelfield.
-
lastMipmapLevel
public int lastMipmapLevel()- Returns:
- the value of the
lastMipmapLevelfield.
-
firstLayer
public int firstLayer()- Returns:
- the value of the
firstLayerfield.
-
lastLayer
public int lastLayer()- Returns:
- the value of the
lastLayerfield.
-
reserved
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
format
Sets the specified value to theformatfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
depth
Sets the specified value to thedepthfield. -
firstMipmapLevel
Sets the specified value to thefirstMipmapLevelfield. -
lastMipmapLevel
Sets the specified value to thelastMipmapLevelfield. -
firstLayer
Sets the specified value to thefirstLayerfield. -
lastLayer
Sets the specified value to thelastLayerfield. -
reserved
Copies the specifiedIntBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
set
public CUDA_RESOURCE_VIEW_DESC set(int format, long width, long height, long depth, int firstMipmapLevel, int lastMipmapLevel, int firstLayer, int lastLayer, 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_RESOURCE_VIEW_DESCinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated withBufferUtils. -
create
Returns a newCUDA_RESOURCE_VIEW_DESCinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUDA_RESOURCE_VIEW_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_RESOURCE_VIEW_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_RESOURCE_VIEW_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_RESOURCE_VIEW_DESCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUDA_RESOURCE_VIEW_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_RESOURCE_VIEW_DESC.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUDA_RESOURCE_VIEW_DESC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUDA_RESOURCE_VIEW_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nwidth
public static long nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static long nheight(long struct) Unsafe version ofheight(). -
ndepth
public static long ndepth(long struct) Unsafe version ofdepth(). -
nfirstMipmapLevel
public static int nfirstMipmapLevel(long struct) Unsafe version offirstMipmapLevel(). -
nlastMipmapLevel
public static int nlastMipmapLevel(long struct) Unsafe version oflastMipmapLevel(). -
nfirstLayer
public static int nfirstLayer(long struct) Unsafe version offirstLayer(). -
nlastLayer
public static int nlastLayer(long struct) Unsafe version oflastLayer(). -
nreserved
Unsafe version ofreserved(). -
nreserved
public static int nreserved(long struct, int index) Unsafe version ofreserved. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat. -
nwidth
public static void nwidth(long struct, long value) Unsafe version ofwidth. -
nheight
public static void nheight(long struct, long value) Unsafe version ofheight. -
ndepth
public static void ndepth(long struct, long value) Unsafe version ofdepth. -
nfirstMipmapLevel
public static void nfirstMipmapLevel(long struct, int value) Unsafe version offirstMipmapLevel. -
nlastMipmapLevel
public static void nlastMipmapLevel(long struct, int value) Unsafe version oflastMipmapLevel. -
nfirstLayer
public static void nfirstLayer(long struct, int value) Unsafe version offirstLayer. -
nlastLayer
public static void nlastLayer(long struct, int value) Unsafe version oflastLayer. -
nreserved
Unsafe version ofreserved. -
nreserved
public static void nreserved(long struct, int index, int value) Unsafe version ofreserved.
-