public class VkPhysicalDeviceProtectedMemoryProperties
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceProtectedMemoryProperties structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with a value indicating the implementation-dependent behavior.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.protectedNoFault – specifies the behavior of the implementation when protected memory access rules are broken. If protectedNoFault is TRUE, breaking those rules will not result in process termination or device loss.
struct VkPhysicalDeviceProtectedMemoryProperties {
VkStructureType sType;
void * pNext;
VkBool32 protectedNoFault;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceProtectedMemoryProperties.Buffer
An array of
VkPhysicalDeviceProtectedMemoryProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PROTECTEDNOFAULT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceProtectedMemoryProperties(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceProtectedMemoryProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceProtectedMemoryProperties |
calloc()
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated with memCalloc. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceProtectedMemoryProperties |
callocStack()
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryProperties |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryProperties |
create()
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated with BufferUtils. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceProtectedMemoryProperties |
create(long address)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance for the specified memory address. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance at the specified memory. |
static VkPhysicalDeviceProtectedMemoryProperties |
createSafe(long address)
|
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceProtectedMemoryProperties |
malloc()
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated with memAlloc. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceProtectedMemoryProperties |
mallocStack()
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceProtectedMemoryProperties.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceProtectedMemoryProperties |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nprotectedNoFault(long struct)
Unsafe version of
protectedNoFault(). |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceProtectedMemoryProperties |
pNext(long value)
Sets the specified value to the
pNext field. |
boolean |
protectedNoFault()
Returns the value of the
protectedNoFault field. |
VkPhysicalDeviceProtectedMemoryProperties |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceProtectedMemoryProperties |
set(VkPhysicalDeviceProtectedMemoryProperties src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceProtectedMemoryProperties |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int PROTECTEDNOFAULT
public VkPhysicalDeviceProtectedMemoryProperties(java.nio.ByteBuffer container)
VkPhysicalDeviceProtectedMemoryProperties 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public boolean protectedNoFault()
protectedNoFault field.public VkPhysicalDeviceProtectedMemoryProperties sType(int value)
sType field.public VkPhysicalDeviceProtectedMemoryProperties pNext(long value)
pNext field.public VkPhysicalDeviceProtectedMemoryProperties set(int sType, long pNext)
public VkPhysicalDeviceProtectedMemoryProperties set(VkPhysicalDeviceProtectedMemoryProperties src)
src - the source structpublic static VkPhysicalDeviceProtectedMemoryProperties malloc()
VkPhysicalDeviceProtectedMemoryProperties instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceProtectedMemoryProperties calloc()
VkPhysicalDeviceProtectedMemoryProperties instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceProtectedMemoryProperties create()
VkPhysicalDeviceProtectedMemoryProperties instance allocated with BufferUtils.public static VkPhysicalDeviceProtectedMemoryProperties create(long address)
VkPhysicalDeviceProtectedMemoryProperties instance for the specified memory address.@Nullable public static VkPhysicalDeviceProtectedMemoryProperties createSafe(long address)
public static VkPhysicalDeviceProtectedMemoryProperties.Buffer malloc(int capacity)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer calloc(int capacity)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer create(int capacity)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer create(long address, int capacity)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceProtectedMemoryProperties.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceProtectedMemoryProperties mallocStack()
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceProtectedMemoryProperties callocStack()
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceProtectedMemoryProperties mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceProtectedMemoryProperties callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer mallocStack(int capacity)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer callocStack(int capacity)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nprotectedNoFault(long struct)
protectedNoFault().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.