Package org.lwjgl.vulkan
Class VkPhysicalDeviceProtectedMemoryFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceProtectedMemoryFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceProtectedMemoryFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing protected memory features that can be supported by an implementation.Description
If the
VkPhysicalDeviceProtectedMemoryFeaturesstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with a value indicating whether the feature is supported.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES
Member documentation
protectedMemory– specifies whether protected memory is supported.
Layout
struct VkPhysicalDeviceProtectedMemoryFeatures { VkStructureType sType; void * pNext; VkBool32 protectedMemory; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceProtectedMemoryFeatures.BufferAn array ofVkPhysicalDeviceProtectedMemoryFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PROTECTEDMEMORYThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceProtectedMemoryFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceProtectedMemoryFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceProtectedMemoryFeaturescalloc()Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceProtectedMemoryFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceProtectedMemoryFeaturescallocStack()Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProtectedMemoryFeatures.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProtectedMemoryFeatures.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProtectedMemoryFeaturescallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProtectedMemoryFeaturescreate()Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceProtectedMemoryFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceProtectedMemoryFeaturescreate(long address)Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance for the specified memory address.static VkPhysicalDeviceProtectedMemoryFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceProtectedMemoryFeaturescreateSafe(long address)static VkPhysicalDeviceProtectedMemoryFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceProtectedMemoryFeaturesmalloc()Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceProtectedMemoryFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceProtectedMemoryFeaturesmallocStack()Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceProtectedMemoryFeatures.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceProtectedMemoryFeatures.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceProtectedMemoryFeaturesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprotectedMemory(long struct)Unsafe version ofprotectedMemory().static voidnprotectedMemory(long struct, int value)Unsafe version ofprotectedMemory.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceProtectedMemoryFeaturespNext(long value)Sets the specified value to thepNextfield.booleanprotectedMemory()Returns the value of theprotectedMemoryfield.VkPhysicalDeviceProtectedMemoryFeaturesprotectedMemory(boolean value)Sets the specified value to theprotectedMemoryfield.VkPhysicalDeviceProtectedMemoryFeaturesset(int sType, long pNext, boolean protectedMemory)Initializes this struct with the specified values.VkPhysicalDeviceProtectedMemoryFeaturesset(VkPhysicalDeviceProtectedMemoryFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceProtectedMemoryFeaturessType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceProtectedMemoryFeatures
public VkPhysicalDeviceProtectedMemoryFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceProtectedMemoryFeaturesinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
protectedMemory
public boolean protectedMemory()
Returns the value of theprotectedMemoryfield.
-
sType
public VkPhysicalDeviceProtectedMemoryFeatures sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceProtectedMemoryFeatures pNext(long value)
Sets the specified value to thepNextfield.
-
protectedMemory
public VkPhysicalDeviceProtectedMemoryFeatures protectedMemory(boolean value)
Sets the specified value to theprotectedMemoryfield.
-
set
public VkPhysicalDeviceProtectedMemoryFeatures set(int sType, long pNext, boolean protectedMemory)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceProtectedMemoryFeatures set(VkPhysicalDeviceProtectedMemoryFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceProtectedMemoryFeatures malloc()
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceProtectedMemoryFeatures calloc()
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceProtectedMemoryFeatures create()
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceProtectedMemoryFeatures create(long address)
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceProtectedMemoryFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceProtectedMemoryFeatures mallocStack()
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceProtectedMemoryFeatures callocStack()
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceProtectedMemoryFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceProtectedMemoryFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nprotectedMemory
public static int nprotectedMemory(long struct)
Unsafe version ofprotectedMemory().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprotectedMemory
public static void nprotectedMemory(long struct, int value)Unsafe version ofprotectedMemory.
-
-