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 of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceProtectedMemoryFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES
Layout
struct VkPhysicalDeviceProtectedMemoryFeatures { VkStructureTypesType(); void *pNext(); VkBool32protectedMemory(); }
-
-
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 Deprecated 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 VkPhysicalDeviceProtectedMemoryFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProtectedMemoryFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceProtectedMemoryFeaturescallocStack()Deprecated.static VkPhysicalDeviceProtectedMemoryFeatures.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceProtectedMemoryFeatures.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceProtectedMemoryFeaturescallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPhysicalDeviceProtectedMemoryFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceProtectedMemoryFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceProtectedMemoryFeaturesmallocStack()Deprecated.static VkPhysicalDeviceProtectedMemoryFeatures.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceProtectedMemoryFeatures.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceProtectedMemoryFeaturesmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceProtectedMemoryFeaturespNext(long value)Sets the specified value to thepNext()field.booleanprotectedMemory()specifies whether protected memory is supported.VkPhysicalDeviceProtectedMemoryFeaturesprotectedMemory(boolean value)Sets the specified value to theprotectedMemory()field.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()the type of this structure.VkPhysicalDeviceProtectedMemoryFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceProtectedMemoryFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURESvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
protectedMemory
public boolean protectedMemory()
specifies whether protected memory is supported.
-
sType
public VkPhysicalDeviceProtectedMemoryFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceProtectedMemoryFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceProtectedMemoryFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
protectedMemory
public VkPhysicalDeviceProtectedMemoryFeatures protectedMemory(boolean value)
Sets the specified value to theprotectedMemory()field.
-
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
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceProtectedMemoryFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceProtectedMemoryFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceProtectedMemoryFeatures calloc(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
-
malloc
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer malloc(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
-
calloc
public static VkPhysicalDeviceProtectedMemoryFeatures.Buffer calloc(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.
-
-