public class VkPhysicalDeviceProtectedMemoryFeatures
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceProtectedMemoryFeatures structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with a value indicating whether the feature is supported.
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURESprotectedMemory – specifies whether protected memory is supported.
struct VkPhysicalDeviceProtectedMemoryFeatures {
VkStructureType sType;
void * pNext;
VkBool32 protectedMemory;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceProtectedMemoryFeatures.Buffer
An array of
VkPhysicalDeviceProtectedMemoryFeatures structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PROTECTEDMEMORY
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceProtectedMemoryFeatures(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceProtectedMemoryFeatures instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceProtectedMemoryFeatures |
calloc()
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance allocated with memCalloc. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceProtectedMemoryFeatures |
callocStack()
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryFeatures |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceProtectedMemoryFeatures |
create()
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance allocated with BufferUtils. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceProtectedMemoryFeatures |
create(long address)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance for the specified memory address. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance at the specified memory. |
static VkPhysicalDeviceProtectedMemoryFeatures |
createSafe(long address)
|
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceProtectedMemoryFeatures |
malloc()
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance allocated with memAlloc. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceProtectedMemoryFeatures |
mallocStack()
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceProtectedMemoryFeatures.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceProtectedMemoryFeatures |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceProtectedMemoryFeatures 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 |
nprotectedMemory(long struct)
Unsafe version of
protectedMemory(). |
static void |
nprotectedMemory(long struct,
int value)
Unsafe version of
protectedMemory. |
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. |
VkPhysicalDeviceProtectedMemoryFeatures |
pNext(long value)
Sets the specified value to the
pNext field. |
boolean |
protectedMemory()
Returns the value of the
protectedMemory field. |
VkPhysicalDeviceProtectedMemoryFeatures |
protectedMemory(boolean value)
Sets the specified value to the
protectedMemory field. |
VkPhysicalDeviceProtectedMemoryFeatures |
set(int sType,
long pNext,
boolean protectedMemory)
Initializes this struct with the specified values.
|
VkPhysicalDeviceProtectedMemoryFeatures |
set(VkPhysicalDeviceProtectedMemoryFeatures src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceProtectedMemoryFeatures |
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 PROTECTEDMEMORY
public VkPhysicalDeviceProtectedMemoryFeatures(java.nio.ByteBuffer container)
VkPhysicalDeviceProtectedMemoryFeatures 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 protectedMemory()
protectedMemory field.public VkPhysicalDeviceProtectedMemoryFeatures sType(int value)
sType field.public VkPhysicalDeviceProtectedMemoryFeatures pNext(long value)
pNext field.public VkPhysicalDeviceProtectedMemoryFeatures protectedMemory(boolean value)
protectedMemory field.public VkPhysicalDeviceProtectedMemoryFeatures set(int sType, long pNext, boolean protectedMemory)
public VkPhysicalDeviceProtectedMemoryFeatures set(VkPhysicalDeviceProtectedMemoryFeatures src)
src - the source structpublic static VkPhysicalDeviceProtectedMemoryFeatures malloc()
VkPhysicalDeviceProtectedMemoryFeatures instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceProtectedMemoryFeatures calloc()
VkPhysicalDeviceProtectedMemoryFeatures instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceProtectedMemoryFeatures create()
VkPhysicalDeviceProtectedMemoryFeatures instance allocated with BufferUtils.public static VkPhysicalDeviceProtectedMemoryFeatures create(long address)
VkPhysicalDeviceProtectedMemoryFeatures instance for the specified memory address.@Nullable public static VkPhysicalDeviceProtectedMemoryFeatures createSafe(long address)
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer malloc(int capacity)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer calloc(int capacity)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer create(int capacity)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer create(long address, int capacity)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceProtectedMemoryFeatures mallocStack()
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceProtectedMemoryFeatures callocStack()
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceProtectedMemoryFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceProtectedMemoryFeatures callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryFeatures instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer mallocStack(int capacity)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer callocStack(int capacity)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryFeatures.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceProtectedMemoryFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceProtectedMemoryFeatures.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 nprotectedMemory(long struct)
protectedMemory().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nprotectedMemory(long struct,
int value)
protectedMemory.Copyright LWJGL. All Rights Reserved. License terms.