Package org.lwjgl.cuda
Class CUDA_MEMCPY3D_PEER.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SELF>
org.lwjgl.system.StructBuffer<CUDA_MEMCPY3D_PEER,CUDA_MEMCPY3D_PEER.Buffer>
org.lwjgl.cuda.CUDA_MEMCPY3D_PEER.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<CUDA_MEMCPY3D_PEER>
,NativeResource
,Pointer
- Enclosing class:
CUDA_MEMCPY3D_PEER
public static class CUDA_MEMCPY3D_PEER.Buffer
extends StructBuffer<CUDA_MEMCPY3D_PEER,CUDA_MEMCPY3D_PEER.Buffer>
implements NativeResource
An array of
CUDA_MEMCPY3D_PEER
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newCUDA_MEMCPY3D_PEER.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlong
Depth()
Depth
(long value) Sets the specified value to theDepth
field.long
dstArray()
dstArray
(long value) Sets the specified value to thedstArray
field.long
dstContext
(long value) Sets the specified value to thedstContext
field.long
dstDevice
(long value) Sets the specified value to thedstDevice
field.long
dstHeight
(long value) Sets the specified value to thedstHeight
field.dstHost
(int capacity) dstHost
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to thedstHost
field.long
dstLOD()
dstLOD
(long value) Sets the specified value to thedstLOD
field.int
dstMemoryType
(int value) Sets the specified value to thedstMemoryType
field.long
dstPitch()
dstPitch
(long value) Sets the specified value to thedstPitch
field.long
dstXInBytes
(long value) Sets the specified value to thedstXInBytes
field.long
dstY()
dstY
(long value) Sets the specified value to thedstY
field.long
dstZ()
dstZ
(long value) Sets the specified value to thedstZ
field.long
Height()
Height
(long value) Sets the specified value to theHeight
field.long
srcArray()
srcArray
(long value) Sets the specified value to thesrcArray
field.long
srcContext
(long value) Sets the specified value to thesrcContext
field.long
srcDevice
(long value) Sets the specified value to thesrcDevice
field.long
srcHeight
(long value) Sets the specified value to thesrcHeight
field.srcHost
(int capacity) srcHost
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to thesrcHost
field.long
srcLOD()
srcLOD
(long value) Sets the specified value to thesrcLOD
field.int
srcMemoryType
(int value) Sets the specified value to thesrcMemoryType
field.long
srcPitch()
srcPitch
(long value) Sets the specified value to thesrcPitch
field.long
srcXInBytes
(long value) Sets the specified value to thesrcXInBytes
field.long
srcY()
srcY
(long value) Sets the specified value to thesrcY
field.long
srcZ()
srcZ
(long value) Sets the specified value to thesrcZ
field.long
WidthInBytes
(long value) Sets the specified value to theWidthInBytes
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newCUDA_MEMCPY3D_PEER.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
CUDA_MEMCPY3D_PEER.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
srcXInBytes
public long srcXInBytes()- Returns:
- the value of the
srcXInBytes
field.
-
srcY
public long srcY()- Returns:
- the value of the
srcY
field.
-
srcZ
public long srcZ()- Returns:
- the value of the
srcZ
field.
-
srcLOD
public long srcLOD()- Returns:
- the value of the
srcLOD
field.
-
srcMemoryType
public int srcMemoryType()- Returns:
- the value of the
srcMemoryType
field.
-
srcHost
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
ByteBuffer
view of the data pointed to by thesrcHost
field.
-
srcDevice
public long srcDevice()- Returns:
- the value of the
srcDevice
field.
-
srcArray
public long srcArray()- Returns:
- the value of the
srcArray
field.
-
srcContext
public long srcContext()- Returns:
- the value of the
srcContext
field.
-
srcPitch
public long srcPitch()- Returns:
- the value of the
srcPitch
field.
-
srcHeight
public long srcHeight()- Returns:
- the value of the
srcHeight
field.
-
dstXInBytes
public long dstXInBytes()- Returns:
- the value of the
dstXInBytes
field.
-
dstY
public long dstY()- Returns:
- the value of the
dstY
field.
-
dstZ
public long dstZ()- Returns:
- the value of the
dstZ
field.
-
dstLOD
public long dstLOD()- Returns:
- the value of the
dstLOD
field.
-
dstMemoryType
public int dstMemoryType()- Returns:
- the value of the
dstMemoryType
field.
-
dstHost
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
ByteBuffer
view of the data pointed to by thedstHost
field.
-
dstDevice
public long dstDevice()- Returns:
- the value of the
dstDevice
field.
-
dstArray
public long dstArray()- Returns:
- the value of the
dstArray
field.
-
dstContext
public long dstContext()- Returns:
- the value of the
dstContext
field.
-
dstPitch
public long dstPitch()- Returns:
- the value of the
dstPitch
field.
-
dstHeight
public long dstHeight()- Returns:
- the value of the
dstHeight
field.
-
WidthInBytes
public long WidthInBytes()- Returns:
- the value of the
WidthInBytes
field.
-
Height
public long Height()- Returns:
- the value of the
Height
field.
-
Depth
public long Depth()- Returns:
- the value of the
Depth
field.
-
srcXInBytes
Sets the specified value to thesrcXInBytes
field. -
srcY
Sets the specified value to thesrcY
field. -
srcZ
Sets the specified value to thesrcZ
field. -
srcLOD
Sets the specified value to thesrcLOD
field. -
srcMemoryType
Sets the specified value to thesrcMemoryType
field. -
srcHost
Sets the address of the specifiedByteBuffer
to thesrcHost
field. -
srcDevice
Sets the specified value to thesrcDevice
field. -
srcArray
Sets the specified value to thesrcArray
field. -
srcContext
Sets the specified value to thesrcContext
field. -
srcPitch
Sets the specified value to thesrcPitch
field. -
srcHeight
Sets the specified value to thesrcHeight
field. -
dstXInBytes
Sets the specified value to thedstXInBytes
field. -
dstY
Sets the specified value to thedstY
field. -
dstZ
Sets the specified value to thedstZ
field. -
dstLOD
Sets the specified value to thedstLOD
field. -
dstMemoryType
Sets the specified value to thedstMemoryType
field. -
dstHost
Sets the address of the specifiedByteBuffer
to thedstHost
field. -
dstDevice
Sets the specified value to thedstDevice
field. -
dstArray
Sets the specified value to thedstArray
field. -
dstContext
Sets the specified value to thedstContext
field. -
dstPitch
Sets the specified value to thedstPitch
field. -
dstHeight
Sets the specified value to thedstHeight
field. -
WidthInBytes
Sets the specified value to theWidthInBytes
field. -
Height
Sets the specified value to theHeight
field. -
Depth
Sets the specified value to theDepth
field.
-