Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkPerformanceCounterResultKHR

extends Struct<VkPerformanceCounterResultKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Union containing a performance counter result.

Layout


union VkPerformanceCounterResultKHR {
    int32_t int32;
    int64_t int64;
    uint32_t uint32;
    uint64_t uint64;
    float float32;
    double float64;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLOAT32

The struct member offsets.

public static final int
FLOAT64

The struct member offsets.

public static final int
INT32

The struct member offsets.

public static final int
INT64

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UINT32

The struct member offsets.

public static final int
UINT64

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkPerformanceCounterResultKHR(long address, ByteBuffer container)

public
VkPerformanceCounterResultKHR(ByteBuffer container)

Creates a VkPerformanceCounterResultKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkPerformanceCounterResultKHR
calloc()

Returns a new VkPerformanceCounterResultKHR instance allocated with memCalloc.

public static VkPerformanceCounterResultKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated with memCalloc.

public static VkPerformanceCounterResultKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPerformanceCounterResultKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPerformanceCounterResultKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkPerformanceCounterResultKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkPerformanceCounterResultKHR
create()

Returns a new VkPerformanceCounterResultKHR instance allocated with BufferUtils.

public static VkPerformanceCounterResultKHR
create(long address)

Returns a new VkPerformanceCounterResultKHR instance for the specified memory address.

public static VkPerformanceCounterResultKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated with BufferUtils.

public static VkPerformanceCounterResultKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkPerformanceCounterResultKHR.Buffer instance at the specified memory.

public static VkPerformanceCounterResultKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkPerformanceCounterResultKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float

Returns:

the value of the float32 field.
float32
()

public VkPerformanceCounterResultKHR
float32(float value)

Sets the specified value to the float32 field.

public double

Returns:

the value of the float64 field.
float64
()

public VkPerformanceCounterResultKHR
float64(double value)

Sets the specified value to the float64 field.

public int

Returns:

the value of the int32 field.
int32
()

public VkPerformanceCounterResultKHR
int32(int value)

Sets the specified value to the int32 field.

public long

Returns:

the value of the int64 field.
int64
()

public VkPerformanceCounterResultKHR
int64(long value)

Sets the specified value to the int64 field.

public static VkPerformanceCounterResultKHR
malloc()

Returns a new VkPerformanceCounterResultKHR instance allocated with memAlloc.

public static VkPerformanceCounterResultKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated with memAlloc.

public static VkPerformanceCounterResultKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPerformanceCounterResultKHR instance allocated on the specified MemoryStack.

public static VkPerformanceCounterResultKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated on the specified MemoryStack.

public static float
nfloat32(long struct)

Unsafe version of float32.

public static void
nfloat32(long struct, float value)

Unsafe version of float32.

public static double
nfloat64(long struct)

Unsafe version of float64.

public static void
nfloat64(long struct, double value)

Unsafe version of float64.

public static int
nint32(long struct)

Unsafe version of int32.

public static void
nint32(long struct, int value)

Unsafe version of int32.

public static long
nint64(long struct)

Unsafe version of int64.

public static void
nint64(long struct, long value)

Unsafe version of int64.

public static int
nuint32(long struct)

Unsafe version of uint32.

public static void
nuint32(long struct, int value)

Unsafe version of uint32.

public static long
nuint64(long struct)

Unsafe version of uint64.

public static void
nuint64(long struct, long value)

Unsafe version of uint64.

public VkPerformanceCounterResultKHR

Returns:

this struct
set
(VkPerformanceCounterResultKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the uint32 field.
uint32
()

public VkPerformanceCounterResultKHR
uint32(int value)

Sets the specified value to the uint32 field.

public long

Returns:

the value of the uint64 field.
uint64
()

public VkPerformanceCounterResultKHR
uint64(long value)

Sets the specified value to the uint64 field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FLOAT32back to summary
public static final int FLOAT32

The struct member offsets.

FLOAT64back to summary
public static final int FLOAT64

The struct member offsets.

INT32back to summary
public static final int INT32

The struct member offsets.

INT64back to summary
public static final int INT64

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UINT32back to summary
public static final int UINT32

The struct member offsets.

UINT64back to summary
public static final int UINT64

The struct member offsets.

Constructor Detail

VkPerformanceCounterResultKHRback to summary
protected VkPerformanceCounterResultKHR(long address, ByteBuffer container)
VkPerformanceCounterResultKHRback to summary
public VkPerformanceCounterResultKHR(ByteBuffer container)

Creates a VkPerformanceCounterResultKHR instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static VkPerformanceCounterResultKHR calloc()

Returns a new VkPerformanceCounterResultKHR instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkPerformanceCounterResultKHR.Buffer calloc(int capacity)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkPerformanceCounterResultKHR calloc(MemoryStack stack)

Returns a new VkPerformanceCounterResultKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkPerformanceCounterResultKHR.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected VkPerformanceCounterResultKHR create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkPerformanceCounterResultKHR create()

Returns a new VkPerformanceCounterResultKHR instance allocated with BufferUtils.

createback to summary
public static VkPerformanceCounterResultKHR create(long address)

Returns a new VkPerformanceCounterResultKHR instance for the specified memory address.

createback to summary
public static VkPerformanceCounterResultKHR.Buffer create(int capacity)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkPerformanceCounterResultKHR.Buffer create(long address, int capacity)

Create a VkPerformanceCounterResultKHR.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkPerformanceCounterResultKHR createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkPerformanceCounterResultKHR.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
float32back to summary
public float float32()
Returns:float

the value of the float32 field.

float32back to summary
public VkPerformanceCounterResultKHR float32(float value)

Sets the specified value to the float32 field.

float64back to summary
public double float64()
Returns:double

the value of the float64 field.

float64back to summary
public VkPerformanceCounterResultKHR float64(double value)

Sets the specified value to the float64 field.

int32back to summary
public int int32()
Returns:int

the value of the int32 field.

Annotations
@NativeType:int32_t
int32back to summary
public VkPerformanceCounterResultKHR int32(int value)

Sets the specified value to the int32 field.

int64back to summary
public long int64()
Returns:long

the value of the int64 field.

Annotations
@NativeType:int64_t
int64back to summary
public VkPerformanceCounterResultKHR int64(long value)

Sets the specified value to the int64 field.

mallocback to summary
public static VkPerformanceCounterResultKHR malloc()

Returns a new VkPerformanceCounterResultKHR instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkPerformanceCounterResultKHR.Buffer malloc(int capacity)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkPerformanceCounterResultKHR malloc(MemoryStack stack)

Returns a new VkPerformanceCounterResultKHR instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkPerformanceCounterResultKHR.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkPerformanceCounterResultKHR.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nfloat32back to summary
public static float nfloat32(long struct)

Unsafe version of float32.

nfloat32back to summary
public static void nfloat32(long struct, float value)

Unsafe version of float32.

nfloat64back to summary
public static double nfloat64(long struct)

Unsafe version of float64.

nfloat64back to summary
public static void nfloat64(long struct, double value)

Unsafe version of float64.

nint32back to summary
public static int nint32(long struct)

Unsafe version of int32.

nint32back to summary
public static void nint32(long struct, int value)

Unsafe version of int32.

nint64back to summary
public static long nint64(long struct)

Unsafe version of int64.

nint64back to summary
public static void nint64(long struct, long value)

Unsafe version of int64.

nuint32back to summary
public static int nuint32(long struct)

Unsafe version of uint32.

nuint32back to summary
public static void nuint32(long struct, int value)

Unsafe version of uint32.

nuint64back to summary
public static long nuint64(long struct)

Unsafe version of uint64.

nuint64back to summary
public static void nuint64(long struct, long value)

Unsafe version of uint64.

setback to summary
public VkPerformanceCounterResultKHR set(VkPerformanceCounterResultKHR src)

Copies the specified struct data to this struct.

Parameters
src:VkPerformanceCounterResultKHR

the source struct

Returns:VkPerformanceCounterResultKHR

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
uint32back to summary
public int uint32()
Returns:int

the value of the uint32 field.

Annotations
@NativeType:uint32_t
uint32back to summary
public VkPerformanceCounterResultKHR uint32(int value)

Sets the specified value to the uint32 field.

uint64back to summary
public long uint64()
Returns:long

the value of the uint64 field.

Annotations
@NativeType:uint64_t
uint64back to summary
public VkPerformanceCounterResultKHR uint64(long value)

Sets the specified value to the uint64 field.

org.lwjgl.vulkan back to summary

public Class VkPerformanceCounterResultKHR.Buffer

extends StructBuffer<VkPerformanceCounterResultKHR, VkPerformanceCounterResultKHR.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of VkPerformanceCounterResultKHR structs.

Field Summary

Modifier and TypeField and Description
private static final VkPerformanceCounterResultKHR

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkPerformanceCounterResultKHR.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the value of the float32 field.
float32
()

public VkPerformanceCounterResultKHR.Buffer
float32(float value)

Sets the specified value to the float32 field.

public double

Returns:

the value of the float64 field.
float64
()

public VkPerformanceCounterResultKHR.Buffer
float64(double value)

Sets the specified value to the float64 field.

protected VkPerformanceCounterResultKHR
public int

Returns:

the value of the int32 field.
int32
()

public VkPerformanceCounterResultKHR.Buffer
int32(int value)

Sets the specified value to the int32 field.

public long

Returns:

the value of the int64 field.
int64
()

public VkPerformanceCounterResultKHR.Buffer
int64(long value)

Sets the specified value to the int64 field.

protected VkPerformanceCounterResultKHR.Buffer
public int

Returns:

the value of the uint32 field.
uint32
()

public VkPerformanceCounterResultKHR.Buffer
uint32(int value)

Sets the specified value to the uint32 field.

public long

Returns:

the value of the uint64 field.
uint64
()

public VkPerformanceCounterResultKHR.Buffer
uint64(long value)

Sets the specified value to the uint64 field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkPerformanceCounterResultKHR ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkPerformanceCounterResultKHR.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 VkPerformanceCounterResultKHR#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

float32back to summary
public float float32()
Returns:float

the value of the float32 field.

float32back to summary
public VkPerformanceCounterResultKHR.Buffer float32(float value)

Sets the specified value to the float32 field.

float64back to summary
public double float64()
Returns:double

the value of the float64 field.

float64back to summary
public VkPerformanceCounterResultKHR.Buffer float64(double value)

Sets the specified value to the float64 field.

getElementFactoryback to summary
protected VkPerformanceCounterResultKHR getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
int32back to summary
public int int32()
Returns:int

the value of the int32 field.

Annotations
@NativeType:int32_t
int32back to summary
public VkPerformanceCounterResultKHR.Buffer int32(int value)

Sets the specified value to the int32 field.

int64back to summary
public long int64()
Returns:long

the value of the int64 field.

Annotations
@NativeType:int64_t
int64back to summary
public VkPerformanceCounterResultKHR.Buffer int64(long value)

Sets the specified value to the int64 field.

selfback to summary
protected VkPerformanceCounterResultKHR.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
uint32back to summary
public int uint32()
Returns:int

the value of the uint32 field.

Annotations
@NativeType:uint32_t
uint32back to summary
public VkPerformanceCounterResultKHR.Buffer uint32(int value)

Sets the specified value to the uint32 field.

uint64back to summary
public long uint64()
Returns:long

the value of the uint64 field.

Annotations
@NativeType:uint64_t
uint64back to summary
public VkPerformanceCounterResultKHR.Buffer uint64(long value)

Sets the specified value to the uint64 field.