Package org.lwjgl.cuda
Class CUdevprop.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUdevprop,CUdevprop.Buffer>
-
- org.lwjgl.cuda.CUdevprop.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUdevprop>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUdevprop
public static class CUdevprop.Buffer extends org.lwjgl.system.StructBuffer<CUdevprop,CUdevprop.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUdevpropstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intclockRate()CUdevprop.BufferclockRate(int value)Sets the specified value to theCUdevprop.clockRate()field.java.nio.IntBuffermaxGridSize()intmaxGridSize(int index)CUdevprop.BuffermaxGridSize(int index, int value)Sets the specified value at the specified index of theCUdevprop.maxGridSize()field.CUdevprop.BuffermaxGridSize(java.nio.IntBuffer value)Copies the specifiedIntBufferto theCUdevprop.maxGridSize()field.java.nio.IntBuffermaxThreadsDim()intmaxThreadsDim(int index)CUdevprop.BuffermaxThreadsDim(int index, int value)Sets the specified value at the specified index of theCUdevprop.maxThreadsDim()field.CUdevprop.BuffermaxThreadsDim(java.nio.IntBuffer value)Copies the specifiedIntBufferto theCUdevprop.maxThreadsDim()field.intmaxThreadsPerBlock()CUdevprop.BuffermaxThreadsPerBlock(int value)Sets the specified value to theCUdevprop.maxThreadsPerBlock()field.intmemPitch()CUdevprop.BuffermemPitch(int value)Sets the specified value to theCUdevprop.memPitch()field.intregsPerBlock()CUdevprop.BufferregsPerBlock(int value)Sets the specified value to theCUdevprop.regsPerBlock()field.intsharedMemPerBlock()CUdevprop.BuffersharedMemPerBlock(int value)Sets the specified value to theCUdevprop.sharedMemPerBlock()field.intSIMDWidth()CUdevprop.BufferSIMDWidth(int value)Sets the specified value to theCUdevprop.SIMDWidth()field.inttextureAlign()CUdevprop.BuffertextureAlign(int value)Sets the specified value to theCUdevprop.textureAlign()field.inttotalConstantMemory()CUdevprop.BuffertotalConstantMemory(int value)Sets the specified value to theCUdevprop.totalConstantMemory()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUdevprop.Bufferinstance 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 byCUdevprop.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 Detail
-
maxThreadsPerBlock
public int maxThreadsPerBlock()
- Returns:
- the value of the
CUdevprop.maxThreadsPerBlock()field.
-
maxThreadsDim
public java.nio.IntBuffer maxThreadsDim()
- Returns:
- a
IntBufferview of theCUdevprop.maxThreadsDim()field.
-
maxThreadsDim
public int maxThreadsDim(int index)
- Returns:
- the value at the specified index of the
CUdevprop.maxThreadsDim()field.
-
maxGridSize
public java.nio.IntBuffer maxGridSize()
- Returns:
- a
IntBufferview of theCUdevprop.maxGridSize()field.
-
maxGridSize
public int maxGridSize(int index)
- Returns:
- the value at the specified index of the
CUdevprop.maxGridSize()field.
-
sharedMemPerBlock
public int sharedMemPerBlock()
- Returns:
- the value of the
CUdevprop.sharedMemPerBlock()field.
-
totalConstantMemory
public int totalConstantMemory()
- Returns:
- the value of the
CUdevprop.totalConstantMemory()field.
-
SIMDWidth
public int SIMDWidth()
- Returns:
- the value of the
CUdevprop.SIMDWidth()field.
-
memPitch
public int memPitch()
- Returns:
- the value of the
CUdevprop.memPitch()field.
-
regsPerBlock
public int regsPerBlock()
- Returns:
- the value of the
CUdevprop.regsPerBlock()field.
-
clockRate
public int clockRate()
- Returns:
- the value of the
CUdevprop.clockRate()field.
-
textureAlign
public int textureAlign()
- Returns:
- the value of the
CUdevprop.textureAlign()field.
-
maxThreadsPerBlock
public CUdevprop.Buffer maxThreadsPerBlock(int value)
Sets the specified value to theCUdevprop.maxThreadsPerBlock()field.
-
maxThreadsDim
public CUdevprop.Buffer maxThreadsDim(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theCUdevprop.maxThreadsDim()field.
-
maxThreadsDim
public CUdevprop.Buffer maxThreadsDim(int index, int value)
Sets the specified value at the specified index of theCUdevprop.maxThreadsDim()field.
-
maxGridSize
public CUdevprop.Buffer maxGridSize(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theCUdevprop.maxGridSize()field.
-
maxGridSize
public CUdevprop.Buffer maxGridSize(int index, int value)
Sets the specified value at the specified index of theCUdevprop.maxGridSize()field.
-
sharedMemPerBlock
public CUdevprop.Buffer sharedMemPerBlock(int value)
Sets the specified value to theCUdevprop.sharedMemPerBlock()field.
-
totalConstantMemory
public CUdevprop.Buffer totalConstantMemory(int value)
Sets the specified value to theCUdevprop.totalConstantMemory()field.
-
SIMDWidth
public CUdevprop.Buffer SIMDWidth(int value)
Sets the specified value to theCUdevprop.SIMDWidth()field.
-
memPitch
public CUdevprop.Buffer memPitch(int value)
Sets the specified value to theCUdevprop.memPitch()field.
-
regsPerBlock
public CUdevprop.Buffer regsPerBlock(int value)
Sets the specified value to theCUdevprop.regsPerBlock()field.
-
clockRate
public CUdevprop.Buffer clockRate(int value)
Sets the specified value to theCUdevprop.clockRate()field.
-
textureAlign
public CUdevprop.Buffer textureAlign(int value)
Sets the specified value to theCUdevprop.textureAlign()field.
-
-