The combination of reportedAddress and addressPrecision allow the possible range of addresses to be calculated, such that:
lower_address = (pInfo->reportedAddress & ~(pInfo->addressPrecision-1))
upper_address = (pInfo->reportedAddress | (pInfo->addressPrecision-1))
It is valid for the reportedAddress to contain a more precise address than indicated by addressPrecision. In this case, the value of reportedAddress should be treated as an additional hint as to the value of the address that triggered the page fault, or to the value of an instruction pointer.
addressType must be a valid VkDeviceFaultAddressTypeEXT value
struct VkDeviceFaultAddressInfoEXT {
VkDeviceFaultAddressTypeEXT addressType;
VkDeviceAddress reportedAddress;
VkDeviceSize addressPrecision;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDeviceFaultAddressInfoEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ADDRESSPRECISION
The struct member offsets. |
| public static final int | ADDRESSTYPE
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | REPORTEDADDRESS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDeviceFaultAddressInfoEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | addressPrecision()
a power of two value that specifies how precisely the device can report the address. |
| public VkDeviceFaultAddressInfoEXT | |
| public int | addressType()
either the type of memory operation that triggered a page fault, or the type of association between an instruction pointer and a fault. |
| public VkDeviceFaultAddressInfoEXT | |
| public static VkDeviceFaultAddressInfoEXT | |
| public static VkDeviceFaultAddressInfoEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDeviceFaultAddressInfoEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDeviceFaultAddressInfoEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected VkDeviceFaultAddressInfoEXT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkDeviceFaultAddressInfoEXT | |
| public static VkDeviceFaultAddressInfoEXT | create(long address)
Returns a new |
| public static VkDeviceFaultAddressInfoEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDeviceFaultAddressInfoEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDeviceFaultAddressInfoEXT | |
| public static VkDeviceFaultAddressInfoEXT. | |
| public static VkDeviceFaultAddressInfoEXT | |
| public static VkDeviceFaultAddressInfoEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDeviceFaultAddressInfoEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDeviceFaultAddressInfoEXT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VkDeviceFaultAddressInfoEXT | |
| public VkDeviceFaultAddressInfoEXT | set(int addressType, long reportedAddress, long addressPrecision)
Initializes this struct with the specified values. |
| public VkDeviceFaultAddressInfoEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ADDRESSPRECISION | back to summary |
|---|---|
| public static final int ADDRESSPRECISION The struct member offsets. | |
| ADDRESSTYPE | back to summary |
|---|---|
| public static final int ADDRESSTYPE The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| REPORTEDADDRESS | back to summary |
|---|---|
| public static final int REPORTEDADDRESS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VkDeviceFaultAddressInfoEXT | back to summary |
|---|---|
| protected VkDeviceFaultAddressInfoEXT(long address, ByteBuffer container) | |
| VkDeviceFaultAddressInfoEXT | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| addressPrecision | back to summary |
|---|---|
| public long addressPrecision() a power of two value that specifies how precisely the device can report the address.
| |
| addressPrecision | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT addressPrecision(long value) Sets the specified value to the | |
| addressType | back to summary |
|---|---|
| public int addressType() either the type of memory operation that triggered a page fault, or the type of association between an instruction pointer and a fault.
| |
| addressType | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT addressType(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Returns a new
| |
| create | back to summary |
|---|---|
| protected VkDeviceFaultAddressInfoEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Like
| |
| malloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDeviceFaultAddressInfoEXT. Returns a new
| |
| naddressPrecision | back to summary |
|---|---|
| public static long naddressPrecision(long struct) Unsafe version of | |
| naddressPrecision | back to summary |
|---|---|
| public static void naddressPrecision(long struct, long value) Unsafe version of | |
| naddressType | back to summary |
|---|---|
| public static int naddressType(long struct) Unsafe version of | |
| naddressType | back to summary |
|---|---|
| public static void naddressType(long struct, int value) Unsafe version of | |
| nreportedAddress | back to summary |
|---|---|
| public static long nreportedAddress(long struct) Unsafe version of | |
| nreportedAddress | back to summary |
|---|---|
| public static void nreportedAddress(long struct, long value) Unsafe version of | |
| reportedAddress | back to summary |
|---|---|
| public long reportedAddress() the GPU virtual address recorded by the device.
| |
| reportedAddress | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT reportedAddress(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT set(int addressType, long reportedAddress, long addressPrecision) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT set(VkDeviceFaultAddressInfoEXT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
VkDeviceFaultAddressInfoEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkDeviceFaultAddressInfoEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public VkDeviceFaultAddressInfoEXT. | addressPrecision(long value)
Sets the specified value to the |
| public int | |
| public VkDeviceFaultAddressInfoEXT. | addressType(int value)
Sets the specified value to the |
| protected VkDeviceFaultAddressInfoEXT | |
| public long | |
| public VkDeviceFaultAddressInfoEXT. | reportedAddress(long value)
Sets the specified value to the |
| protected VkDeviceFaultAddressInfoEXT. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkDeviceFaultAddressInfoEXT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| addressPrecision | back to summary |
|---|---|
public long addressPrecision()
| |
| addressPrecision | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT. Sets the specified value to the | |
| addressType | back to summary |
|---|---|
public int addressType()
| |
| addressType | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkDeviceFaultAddressInfoEXT getElementFactory() Implements abstract org.
| |
| reportedAddress | back to summary |
|---|---|
public long reportedAddress()
| |
| reportedAddress | back to summary |
|---|---|
| public VkDeviceFaultAddressInfoEXT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkDeviceFaultAddressInfoEXT. Implements abstract org.
| |