Package org.lwjgl.vulkan
Class VkPhysicalDevicePrivateDataFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDevicePrivateDataFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDevicePrivateDataFeaturesEXT
public class VkPhysicalDevicePrivateDataFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying physical device support.Description
If the
VkPhysicalDevicePrivateDataFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDevicePrivateDataFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRIVATE_DATA_FEATURES
Layout
struct VkPhysicalDevicePrivateDataFeatures { VkStructureTypesType(); void *pNext(); VkBool32privateData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDevicePrivateDataFeatures.BufferAn array ofVkPhysicalDevicePrivateDataFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PRIVATEDATAThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDevicePrivateDataFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDevicePrivateDataFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDevicePrivateDataFeaturescalloc()Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated withmemCalloc.static VkPhysicalDevicePrivateDataFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDevicePrivateDataFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePrivateDataFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDevicePrivateDataFeaturescreate()Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated withBufferUtils.static VkPhysicalDevicePrivateDataFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDevicePrivateDataFeaturescreate(long address)Returns a newVkPhysicalDevicePrivateDataFeaturesinstance for the specified memory address.static VkPhysicalDevicePrivateDataFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDevicePrivateDataFeatures.Bufferinstance at the specified memory.static VkPhysicalDevicePrivateDataFeaturescreateSafe(long address)static VkPhysicalDevicePrivateDataFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDevicePrivateDataFeaturesmalloc()Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated withmemAlloc.static VkPhysicalDevicePrivateDataFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDevicePrivateDataFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDevicePrivateDataFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprivateData(long struct)Unsafe version ofprivateData().static voidnprivateData(long struct, int value)Unsafe version ofprivateData.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.VkPhysicalDevicePrivateDataFeaturespNext(long value)Sets the specified value to thepNext()field.booleanprivateData()indicates whether the implementation supports private data.VkPhysicalDevicePrivateDataFeaturesprivateData(boolean value)Sets the specified value to theprivateData()field.VkPhysicalDevicePrivateDataFeaturesset(int sType, long pNext, boolean privateData)Initializes this struct with the specified values.VkPhysicalDevicePrivateDataFeaturesset(VkPhysicalDevicePrivateDataFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDevicePrivateDataFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDevicePrivateDataFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRIVATE_DATA_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDevicePrivateDataFeatures
public VkPhysicalDevicePrivateDataFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDevicePrivateDataFeaturesinstance 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.
-
privateData
public boolean privateData()
indicates whether the implementation supports private data. See Private Data.
-
sType
public VkPhysicalDevicePrivateDataFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDevicePrivateDataFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_PRIVATE_DATA_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDevicePrivateDataFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
privateData
public VkPhysicalDevicePrivateDataFeatures privateData(boolean value)
Sets the specified value to theprivateData()field.
-
set
public VkPhysicalDevicePrivateDataFeatures set(int sType, long pNext, boolean privateData)
Initializes this struct with the specified values.
-
set
public VkPhysicalDevicePrivateDataFeatures set(VkPhysicalDevicePrivateDataFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDevicePrivateDataFeatures malloc()
Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDevicePrivateDataFeatures calloc()
Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDevicePrivateDataFeatures create()
Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDevicePrivateDataFeatures create(long address)
Returns a newVkPhysicalDevicePrivateDataFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDevicePrivateDataFeatures createSafe(long address)
-
malloc
public static VkPhysicalDevicePrivateDataFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePrivateDataFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePrivateDataFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDevicePrivateDataFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDevicePrivateDataFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDevicePrivateDataFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDevicePrivateDataFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDevicePrivateDataFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePrivateDataFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDevicePrivateDataFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePrivateDataFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDevicePrivateDataFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDevicePrivateDataFeatures.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().
-
nprivateData
public static int nprivateData(long struct)
Unsafe version ofprivateData().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprivateData
public static void nprivateData(long struct, int value)Unsafe version ofprivateData.
-
-