Package org.lwjgl.vulkan
Class VkDeviceFaultVendorBinaryHeaderVersionOneEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDeviceFaultVendorBinaryHeaderVersionOneEXT>
org.lwjgl.vulkan.VkDeviceFaultVendorBinaryHeaderVersionOneEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceFaultVendorBinaryHeaderVersionOneEXT
extends org.lwjgl.system.Struct<VkDeviceFaultVendorBinaryHeaderVersionOneEXT>
implements org.lwjgl.system.NativeResource
Structure describing the layout of the vendor binary crash dump header.
Description
Unlike most structures declared by the Vulkan API, all fields of this structure are written with the least significant byte first, regardless of host byte-order.
The C language specification does not define the packing of structure members. This layout assumes tight structure member packing, with members laid out in the order listed in the structure, and the intended size of the structure is 56 bytes. If a compiler produces code that diverges from that pattern, applications must employ another method to set values at the correct offsets.
Valid Usage
headerSizemust be 56headerVersionmust beDEVICE_FAULT_VENDOR_BINARY_HEADER_VERSION_ONE_EXT
Valid Usage (Implicit)
headerVersionmust be a validVkDeviceFaultVendorBinaryHeaderVersionEXTvalue
Layout
struct VkDeviceFaultVendorBinaryHeaderVersionOneEXT {
uint32_t headerSize();
VkDeviceFaultVendorBinaryHeaderVersionEXT headerVersion();
uint32_t vendorID();
uint32_t deviceID();
uint32_t driverVersion();
uint8_t pipelineCacheUUID()[VK_UUID_SIZE];
uint32_t applicationNameOffset();
uint32_t applicationVersion();
uint32_t engineNameOffset();
uint32_t engineVersion();
uint32_t apiVersion();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkDeviceFaultVendorBinaryHeaderVersionOneEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintmust be zero or the value specified byVkApplicationInfo::apiVersionduring instance creation.apiVersion(int value) Sets the specified value to theapiVersion()field.intzero, or an offset from the base address of the crash dump header to a null-terminated UTF-8 string containing the name of the application.applicationNameOffset(int value) Sets the specified value to theapplicationNameOffset()field.intmust be zero or the value specified byVkApplicationInfo::applicationVersionduring instance creation.applicationVersion(int value) Sets the specified value to theapplicationVersion()field.calloc()Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance for the specified memory address.create(long address, int capacity) Create aVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance at the specified memory.static @Nullable VkDeviceFaultVendorBinaryHeaderVersionOneEXTcreateSafe(long address) static @Nullable VkDeviceFaultVendorBinaryHeaderVersionOneEXT.BuffercreateSafe(long address, int capacity) intdeviceID()theVkPhysicalDeviceProperties::deviceIDof the implementation.deviceID(int value) Sets the specified value to thedeviceID()field.inttheVkPhysicalDeviceProperties::driverVersionof the implementation.driverVersion(int value) Sets the specified value to thedriverVersion()field.intzero, or an offset from the base address of the crash dump header to a null-terminated UTF-8 string containing the name of the engine (if any) used to create the application.engineNameOffset(int value) Sets the specified value to theengineNameOffset()field.intmust be zero or the value specified byVkApplicationInfo::engineVersionduring instance creation.engineVersion(int value) Sets the specified value to theengineVersion()field.intthe length in bytes of the crash dump header.headerSize(int value) Sets the specified value to theheaderSize()field.intaVkDeviceFaultVendorBinaryHeaderVersionEXTenum value specifying the version of the header.headerVersion(int value) Sets the specified value to theheaderVersion()field.malloc()Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated on the specifiedMemoryStack.static intnapiVersion(long struct) Unsafe version ofapiVersion().static voidnapiVersion(long struct, int value) Unsafe version ofapiVersion.static intnapplicationNameOffset(long struct) Unsafe version ofapplicationNameOffset().static voidnapplicationNameOffset(long struct, int value) Unsafe version ofapplicationNameOffset.static intnapplicationVersion(long struct) Unsafe version ofapplicationVersion().static voidnapplicationVersion(long struct, int value) Unsafe version ofapplicationVersion.static intndeviceID(long struct) Unsafe version ofdeviceID().static voidndeviceID(long struct, int value) Unsafe version ofdeviceID.static intndriverVersion(long struct) Unsafe version ofdriverVersion().static voidndriverVersion(long struct, int value) Unsafe version ofdriverVersion.static intnengineNameOffset(long struct) Unsafe version ofengineNameOffset().static voidnengineNameOffset(long struct, int value) Unsafe version ofengineNameOffset.static intnengineVersion(long struct) Unsafe version ofengineVersion().static voidnengineVersion(long struct, int value) Unsafe version ofengineVersion.static intnheaderSize(long struct) Unsafe version ofheaderSize().static voidnheaderSize(long struct, int value) Unsafe version ofheaderSize.static intnheaderVersion(long struct) Unsafe version ofheaderVersion().static voidnheaderVersion(long struct, int value) Unsafe version ofheaderVersion.static ByteBuffernpipelineCacheUUID(long struct) Unsafe version ofpipelineCacheUUID().static bytenpipelineCacheUUID(long struct, int index) Unsafe version ofpipelineCacheUUID.static voidnpipelineCacheUUID(long struct, int index, byte value) Unsafe version ofpipelineCacheUUID.static voidnpipelineCacheUUID(long struct, ByteBuffer value) Unsafe version ofpipelineCacheUUID.static intnvendorID(long struct) Unsafe version ofvendorID().static voidnvendorID(long struct, int value) Unsafe version ofvendorID.an array ofUUID_SIZEuint8_tvalues matching theVkPhysicalDeviceProperties::pipelineCacheUUIDproperty of the implementation.bytepipelineCacheUUID(int index) an array ofUUID_SIZEuint8_tvalues matching theVkPhysicalDeviceProperties::pipelineCacheUUIDproperty of the implementation.pipelineCacheUUID(int index, byte value) Sets the specified value at the specified index of thepipelineCacheUUID()field.pipelineCacheUUID(ByteBuffer value) Copies the specifiedByteBufferto thepipelineCacheUUID()field.set(int headerSize, int headerVersion, int vendorID, int deviceID, int driverVersion, ByteBuffer pipelineCacheUUID, int applicationNameOffset, int applicationVersion, int engineNameOffset, int engineVersion, int apiVersion) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intvendorID()theVkPhysicalDeviceProperties::vendorIDof the implementation.vendorID(int value) Sets the specified value to thevendorID()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
HEADERSIZE
public static final int HEADERSIZEThe struct member offsets. -
HEADERVERSION
public static final int HEADERVERSIONThe struct member offsets. -
VENDORID
public static final int VENDORIDThe struct member offsets. -
DEVICEID
public static final int DEVICEIDThe struct member offsets. -
DRIVERVERSION
public static final int DRIVERVERSIONThe struct member offsets. -
PIPELINECACHEUUID
public static final int PIPELINECACHEUUIDThe struct member offsets. -
APPLICATIONNAMEOFFSET
public static final int APPLICATIONNAMEOFFSETThe struct member offsets. -
APPLICATIONVERSION
public static final int APPLICATIONVERSIONThe struct member offsets. -
ENGINENAMEOFFSET
public static final int ENGINENAMEOFFSETThe struct member offsets. -
ENGINEVERSION
public static final int ENGINEVERSIONThe struct member offsets. -
APIVERSION
public static final int APIVERSIONThe struct member offsets.
-
-
Constructor Details
-
VkDeviceFaultVendorBinaryHeaderVersionOneEXT
Creates aVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkDeviceFaultVendorBinaryHeaderVersionOneEXT>
-
headerSize
public int headerSize()the length in bytes of the crash dump header. -
headerVersion
public int headerVersion()aVkDeviceFaultVendorBinaryHeaderVersionEXTenum value specifying the version of the header. A consumer of the crash dump should use the header version to interpret the remainder of the header. -
vendorID
public int vendorID()theVkPhysicalDeviceProperties::vendorIDof the implementation. -
deviceID
public int deviceID()theVkPhysicalDeviceProperties::deviceIDof the implementation. -
driverVersion
public int driverVersion()theVkPhysicalDeviceProperties::driverVersionof the implementation. -
pipelineCacheUUID
an array ofUUID_SIZEuint8_tvalues matching theVkPhysicalDeviceProperties::pipelineCacheUUIDproperty of the implementation. -
pipelineCacheUUID
public byte pipelineCacheUUID(int index) an array ofUUID_SIZEuint8_tvalues matching theVkPhysicalDeviceProperties::pipelineCacheUUIDproperty of the implementation. -
applicationNameOffset
public int applicationNameOffset()zero, or an offset from the base address of the crash dump header to a null-terminated UTF-8 string containing the name of the application. IfapplicationNameOffsetis non-zero, this string must match the application name specified viaVkApplicationInfo::pApplicationNameduring instance creation. -
applicationVersion
public int applicationVersion()must be zero or the value specified byVkApplicationInfo::applicationVersionduring instance creation. -
engineNameOffset
public int engineNameOffset()zero, or an offset from the base address of the crash dump header to a null-terminated UTF-8 string containing the name of the engine (if any) used to create the application. IfengineNameOffsetis non-zero, this string must match the engine name specified viaVkApplicationInfo::pEngineNameduring instance creation. -
engineVersion
public int engineVersion()must be zero or the value specified byVkApplicationInfo::engineVersionduring instance creation. -
apiVersion
public int apiVersion()must be zero or the value specified byVkApplicationInfo::apiVersionduring instance creation. -
headerSize
Sets the specified value to theheaderSize()field. -
headerVersion
Sets the specified value to theheaderVersion()field. -
vendorID
Sets the specified value to thevendorID()field. -
deviceID
Sets the specified value to thedeviceID()field. -
driverVersion
Sets the specified value to thedriverVersion()field. -
pipelineCacheUUID
Copies the specifiedByteBufferto thepipelineCacheUUID()field. -
pipelineCacheUUID
Sets the specified value at the specified index of thepipelineCacheUUID()field. -
applicationNameOffset
Sets the specified value to theapplicationNameOffset()field. -
applicationVersion
Sets the specified value to theapplicationVersion()field. -
engineNameOffset
Sets the specified value to theengineNameOffset()field. -
engineVersion
Sets the specified value to theengineVersion()field. -
apiVersion
Sets the specified value to theapiVersion()field. -
set
public VkDeviceFaultVendorBinaryHeaderVersionOneEXT set(int headerSize, int headerVersion, int vendorID, int deviceID, int driverVersion, ByteBuffer pipelineCacheUUID, int applicationNameOffset, int applicationVersion, int engineNameOffset, int engineVersion, int apiVersion) Initializes this struct with the specified values. -
set
public VkDeviceFaultVendorBinaryHeaderVersionOneEXT set(VkDeviceFaultVendorBinaryHeaderVersionOneEXT src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated withBufferUtils. -
create
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceFaultVendorBinaryHeaderVersionOneEXT.Buffer create(long address, int capacity) Create aVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkDeviceFaultVendorBinaryHeaderVersionOneEXT.Buffer createSafe(long address, int capacity) -
malloc
public static VkDeviceFaultVendorBinaryHeaderVersionOneEXT malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceFaultVendorBinaryHeaderVersionOneEXT calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceFaultVendorBinaryHeaderVersionOneEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkDeviceFaultVendorBinaryHeaderVersionOneEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDeviceFaultVendorBinaryHeaderVersionOneEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nheaderSize
public static int nheaderSize(long struct) Unsafe version ofheaderSize(). -
nheaderVersion
public static int nheaderVersion(long struct) Unsafe version ofheaderVersion(). -
nvendorID
public static int nvendorID(long struct) Unsafe version ofvendorID(). -
ndeviceID
public static int ndeviceID(long struct) Unsafe version ofdeviceID(). -
ndriverVersion
public static int ndriverVersion(long struct) Unsafe version ofdriverVersion(). -
npipelineCacheUUID
Unsafe version ofpipelineCacheUUID(). -
npipelineCacheUUID
public static byte npipelineCacheUUID(long struct, int index) Unsafe version ofpipelineCacheUUID. -
napplicationNameOffset
public static int napplicationNameOffset(long struct) Unsafe version ofapplicationNameOffset(). -
napplicationVersion
public static int napplicationVersion(long struct) Unsafe version ofapplicationVersion(). -
nengineNameOffset
public static int nengineNameOffset(long struct) Unsafe version ofengineNameOffset(). -
nengineVersion
public static int nengineVersion(long struct) Unsafe version ofengineVersion(). -
napiVersion
public static int napiVersion(long struct) Unsafe version ofapiVersion(). -
nheaderSize
public static void nheaderSize(long struct, int value) Unsafe version ofheaderSize. -
nheaderVersion
public static void nheaderVersion(long struct, int value) Unsafe version ofheaderVersion. -
nvendorID
public static void nvendorID(long struct, int value) Unsafe version ofvendorID. -
ndeviceID
public static void ndeviceID(long struct, int value) Unsafe version ofdeviceID. -
ndriverVersion
public static void ndriverVersion(long struct, int value) Unsafe version ofdriverVersion. -
npipelineCacheUUID
Unsafe version ofpipelineCacheUUID. -
npipelineCacheUUID
public static void npipelineCacheUUID(long struct, int index, byte value) Unsafe version ofpipelineCacheUUID. -
napplicationNameOffset
public static void napplicationNameOffset(long struct, int value) Unsafe version ofapplicationNameOffset. -
napplicationVersion
public static void napplicationVersion(long struct, int value) Unsafe version ofapplicationVersion. -
nengineNameOffset
public static void nengineNameOffset(long struct, int value) Unsafe version ofengineNameOffset. -
nengineVersion
public static void nengineVersion(long struct, int value) Unsafe version ofengineVersion. -
napiVersion
public static void napiVersion(long struct, int value) Unsafe version ofapiVersion.
-