Class RENDERDOC_AnnotationValue
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RENDERDOC_AnnotationValue>
org.lwjgl.util.renderdoc.RENDERDOC_AnnotationValue
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class RENDERDOC_AnnotationValue
extends Struct<RENDERDOC_AnnotationValue>
implements NativeResource
union RENDERDOC_AnnotationValue {
bool boolean;
int32_t int32;
int64_t int64;
uint32_t uint32;
uint64_t uint64;
float float32;
double float64;
RENDERDOC_AnnotationVectorValue vector;
char const * string;
void * apiObject;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
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 size 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.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionRENDERDOC_AnnotationValue(ByteBuffer container) Creates aRENDERDOC_AnnotationValueinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongapiObject(long value) Sets the specified value to theapiObjectfield.booleanboolean$()boolean$(boolean value) Sets the specified value to thebooleanfield.static RENDERDOC_AnnotationValuecalloc()Returns a newRENDERDOC_AnnotationValueinstance allocated withmemCalloc.calloc(int capacity) Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RENDERDOC_AnnotationValuecalloc(MemoryStack stack) Returns a newRENDERDOC_AnnotationValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RENDERDOC_AnnotationValuecreate()Returns a newRENDERDOC_AnnotationValueinstance allocated withBufferUtils.create(int capacity) Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated withBufferUtils.static RENDERDOC_AnnotationValuecreate(long address) Returns a newRENDERDOC_AnnotationValueinstance for the specified memory address.create(long address, int capacity) Create aRENDERDOC_AnnotationValue.Bufferinstance at the specified memory.static @Nullable RENDERDOC_AnnotationValuecreateSafe(long address) static @Nullable RENDERDOC_AnnotationValue.BuffercreateSafe(long address, int capacity) floatfloat32()float32(float value) Sets the specified value to thefloat32field.doublefloat64()float64(double value) Sets the specified value to thefloat64field.intint32()int32(int value) Sets the specified value to theint32field.longint64()int64(long value) Sets the specified value to theint64field.static RENDERDOC_AnnotationValuemalloc()Returns a newRENDERDOC_AnnotationValueinstance allocated withmemAlloc.malloc(int capacity) Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated on the specifiedMemoryStack.static RENDERDOC_AnnotationValuemalloc(MemoryStack stack) Returns a newRENDERDOC_AnnotationValueinstance allocated on the specifiedMemoryStack.static longnapiObject(long struct) Unsafe version ofapiObject().static voidnapiObject(long struct, long value) Unsafe version ofapiObject.static booleannboolean$(long struct) Unsafe version ofboolean$().static voidnboolean$(long struct, boolean value) Unsafe version ofboolean$.static floatnfloat32(long struct) Unsafe version offloat32().static voidnfloat32(long struct, float value) Unsafe version offloat32.static doublenfloat64(long struct) Unsafe version offloat64().static voidnfloat64(long struct, double value) Unsafe version offloat64.static intnint32(long struct) Unsafe version ofint32().static voidnint32(long struct, int value) Unsafe version ofint32.static longnint64(long struct) Unsafe version ofint64().static voidnint64(long struct, long value) Unsafe version ofint64.static ByteBuffernstring(long struct) Unsafe version ofstring().static voidnstring(long struct, ByteBuffer value) Unsafe version ofstring.static StringnstringString(long struct) Unsafe version ofstringString().static intnuint32(long struct) Unsafe version ofuint32().static voidnuint32(long struct, int value) Unsafe version ofuint32.static longnuint64(long struct) Unsafe version ofuint64().static voidnuint64(long struct, long value) Unsafe version ofuint64.nvector(long struct) Unsafe version ofvector().static voidnvector(long struct, RENDERDOC_AnnotationVectorValue value) Unsafe version ofvector.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).string()string(ByteBuffer value) Sets the address of the specified encoded string to thestringfield.intuint32()uint32(int value) Sets the specified value to theuint32field.longuint64()uint64(long value) Sets the specified value to theuint64field.vector()vector(Consumer<RENDERDOC_AnnotationVectorValue> consumer) Passes thevectorfield to the specifiedConsumer.Copies the specifiedRENDERDOC_AnnotationVectorValueto thevectorfield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
BOOLEAN
public static final int BOOLEANThe struct member offsets. -
INT32
public static final int INT32The struct member offsets. -
INT64
public static final int INT64The struct member offsets. -
UINT32
public static final int UINT32The struct member offsets. -
UINT64
public static final int UINT64The struct member offsets. -
FLOAT32
public static final int FLOAT32The struct member offsets. -
FLOAT64
public static final int FLOAT64The struct member offsets. -
VECTOR
public static final int VECTORThe struct member offsets. -
STRING
public static final int STRINGThe struct member offsets. -
APIOBJECT
public static final int APIOBJECTThe struct member offsets.
-
-
Constructor Details
-
RENDERDOC_AnnotationValue
Creates aRENDERDOC_AnnotationValueinstance 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<RENDERDOC_AnnotationValue>
-
boolean$
- Returns:
- the value of the
booleanfield.
-
int32
- Returns:
- the value of the
int32field.
-
int64
- Returns:
- the value of the
int64field.
-
uint32
- Returns:
- the value of the
uint32field.
-
uint64
- Returns:
- the value of the
uint64field.
-
float32
public float float32()- Returns:
- the value of the
float32field.
-
float64
public double float64()- Returns:
- the value of the
float64field.
-
vector
- Returns:
- a
RENDERDOC_AnnotationVectorValueview of thevectorfield.
-
string
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thestringfield.
-
stringString
- Returns:
- the null-terminated string pointed to by the
stringfield.
-
apiObject
- Returns:
- the value of the
apiObjectfield.
-
boolean$
Sets the specified value to thebooleanfield. -
int32
Sets the specified value to theint32field. -
int64
Sets the specified value to theint64field. -
uint32
Sets the specified value to theuint32field. -
uint64
Sets the specified value to theuint64field. -
float32
Sets the specified value to thefloat32field. -
float64
Sets the specified value to thefloat64field. -
vector
Copies the specifiedRENDERDOC_AnnotationVectorValueto thevectorfield. -
vector
Passes thevectorfield to the specifiedConsumer. -
string
Sets the address of the specified encoded string to thestringfield. -
apiObject
Sets the specified value to theapiObjectfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newRENDERDOC_AnnotationValueinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newRENDERDOC_AnnotationValueinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newRENDERDOC_AnnotationValueinstance allocated withBufferUtils. -
create
Returns a newRENDERDOC_AnnotationValueinstance for the specified memory address. -
createSafe
-
malloc
Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aRENDERDOC_AnnotationValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newRENDERDOC_AnnotationValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newRENDERDOC_AnnotationValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newRENDERDOC_AnnotationValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nboolean$
public static boolean nboolean$(long struct) Unsafe version ofboolean$(). -
nint32
public static int nint32(long struct) Unsafe version ofint32(). -
nint64
public static long nint64(long struct) Unsafe version ofint64(). -
nuint32
public static int nuint32(long struct) Unsafe version ofuint32(). -
nuint64
public static long nuint64(long struct) Unsafe version ofuint64(). -
nfloat32
public static float nfloat32(long struct) Unsafe version offloat32(). -
nfloat64
public static double nfloat64(long struct) Unsafe version offloat64(). -
nvector
Unsafe version ofvector(). -
nstring
Unsafe version ofstring(). -
nstringString
Unsafe version ofstringString(). -
napiObject
public static long napiObject(long struct) Unsafe version ofapiObject(). -
nboolean$
public static void nboolean$(long struct, boolean value) Unsafe version ofboolean$. -
nint32
public static void nint32(long struct, int value) Unsafe version ofint32. -
nint64
public static void nint64(long struct, long value) Unsafe version ofint64. -
nuint32
public static void nuint32(long struct, int value) Unsafe version ofuint32. -
nuint64
public static void nuint64(long struct, long value) Unsafe version ofuint64. -
nfloat32
public static void nfloat32(long struct, float value) Unsafe version offloat32. -
nfloat64
public static void nfloat64(long struct, double value) Unsafe version offloat64. -
nvector
Unsafe version ofvector. -
nstring
Unsafe version ofstring. -
napiObject
public static void napiObject(long struct, long value) Unsafe version ofapiObject.
-