Class VkDeviceFaultVendorInfoKHR
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
- Direct Known Subclasses:
VkDeviceFaultVendorInfoEXT
public class VkDeviceFaultVendorInfoKHR
extends Struct<VkDeviceFaultVendorInfoKHR>
implements NativeResource
struct VkDeviceFaultVendorInfoKHR {
char description[VK_MAX_DESCRIPTION_SIZE];
uint64_t vendorFaultCode;
uint64_t vendorFaultData;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionVkDeviceFaultVendorInfoKHR(ByteBuffer container) Creates aVkDeviceFaultVendorInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDeviceFaultVendorInfoKHRcalloc()Returns a newVkDeviceFaultVendorInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceFaultVendorInfoKHRcalloc(MemoryStack stack) Returns a newVkDeviceFaultVendorInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceFaultVendorInfoKHRcreate()Returns a newVkDeviceFaultVendorInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated withBufferUtils.static VkDeviceFaultVendorInfoKHRcreate(long address) Returns a newVkDeviceFaultVendorInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkDeviceFaultVendorInfoKHR.Bufferinstance at the specified memory.static @Nullable VkDeviceFaultVendorInfoKHRcreateSafe(long address) static @Nullable VkDeviceFaultVendorInfoKHR.BuffercreateSafe(long address, int capacity) static VkDeviceFaultVendorInfoKHRmalloc()Returns a newVkDeviceFaultVendorInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceFaultVendorInfoKHRmalloc(MemoryStack stack) Returns a newVkDeviceFaultVendorInfoKHRinstance allocated on the specifiedMemoryStack.static ByteBufferndescription(long struct) Unsafe version ofdescription().static StringndescriptionString(long struct) Unsafe version ofdescriptionString().static longnvendorFaultCode(long struct) Unsafe version ofvendorFaultCode().static longnvendorFaultData(long struct) Unsafe version ofvendorFaultData().intsizeof()Returnssizeof(struct).longlongMethods 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. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets. -
VENDORFAULTCODE
public static final int VENDORFAULTCODEThe struct member offsets. -
VENDORFAULTDATA
public static final int VENDORFAULTDATAThe struct member offsets.
-
-
Constructor Details
-
VkDeviceFaultVendorInfoKHR
Creates aVkDeviceFaultVendorInfoKHRinstance 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<VkDeviceFaultVendorInfoKHR>
-
description
- Returns:
- a
ByteBufferview of thedescriptionfield.
-
descriptionString
- Returns:
- the null-terminated string stored in the
descriptionfield.
-
vendorFaultCode
- Returns:
- the value of the
vendorFaultCodefield.
-
vendorFaultData
- Returns:
- the value of the
vendorFaultDatafield.
-
malloc
Returns a newVkDeviceFaultVendorInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDeviceFaultVendorInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDeviceFaultVendorInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkDeviceFaultVendorInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDeviceFaultVendorInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDeviceFaultVendorInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDeviceFaultVendorInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDeviceFaultVendorInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndescription
Unsafe version ofdescription(). -
ndescriptionString
Unsafe version ofdescriptionString(). -
nvendorFaultCode
public static long nvendorFaultCode(long struct) Unsafe version ofvendorFaultCode(). -
nvendorFaultData
public static long nvendorFaultData(long struct) Unsafe version ofvendorFaultData().
-