Class VkDeviceFaultAddressInfoKHR
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
- Direct Known Subclasses:
VkDeviceFaultAddressInfoEXT
public class VkDeviceFaultAddressInfoKHR
extends Struct<VkDeviceFaultAddressInfoKHR>
implements NativeResource
struct VkDeviceFaultAddressInfoKHR {
VkDeviceFaultAddressTypeKHR addressType;
VkDeviceAddress reportedAddress;
VkDeviceSize addressPrecision;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDeviceFaultAddressInfoKHR(ByteBuffer container) Creates aVkDeviceFaultAddressInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongintstatic VkDeviceFaultAddressInfoKHRcalloc()Returns a newVkDeviceFaultAddressInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceFaultAddressInfoKHRcalloc(MemoryStack stack) Returns a newVkDeviceFaultAddressInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceFaultAddressInfoKHRcreate()Returns a newVkDeviceFaultAddressInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated withBufferUtils.static VkDeviceFaultAddressInfoKHRcreate(long address) Returns a newVkDeviceFaultAddressInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkDeviceFaultAddressInfoKHR.Bufferinstance at the specified memory.static @Nullable VkDeviceFaultAddressInfoKHRcreateSafe(long address) static @Nullable VkDeviceFaultAddressInfoKHR.BuffercreateSafe(long address, int capacity) static VkDeviceFaultAddressInfoKHRmalloc()Returns a newVkDeviceFaultAddressInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceFaultAddressInfoKHRmalloc(MemoryStack stack) Returns a newVkDeviceFaultAddressInfoKHRinstance allocated on the specifiedMemoryStack.static longnaddressPrecision(long struct) Unsafe version ofaddressPrecision().static intnaddressType(long struct) Unsafe version ofaddressType().static longnreportedAddress(long struct) Unsafe version ofreportedAddress().longintsizeof()Returnssizeof(struct).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. -
ADDRESSTYPE
public static final int ADDRESSTYPEThe struct member offsets. -
REPORTEDADDRESS
public static final int REPORTEDADDRESSThe struct member offsets. -
ADDRESSPRECISION
public static final int ADDRESSPRECISIONThe struct member offsets.
-
-
Constructor Details
-
VkDeviceFaultAddressInfoKHR
Creates aVkDeviceFaultAddressInfoKHRinstance 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<VkDeviceFaultAddressInfoKHR>
-
addressType
- Returns:
- the value of the
addressTypefield.
-
reportedAddress
- Returns:
- the value of the
reportedAddressfield.
-
addressPrecision
- Returns:
- the value of the
addressPrecisionfield.
-
malloc
Returns a newVkDeviceFaultAddressInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDeviceFaultAddressInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDeviceFaultAddressInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkDeviceFaultAddressInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDeviceFaultAddressInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDeviceFaultAddressInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDeviceFaultAddressInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDeviceFaultAddressInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
naddressType
public static int naddressType(long struct) Unsafe version ofaddressType(). -
nreportedAddress
public static long nreportedAddress(long struct) Unsafe version ofreportedAddress(). -
naddressPrecision
public static long naddressPrecision(long struct) Unsafe version ofaddressPrecision().
-