Package org.lwjgl.vulkan
Class VkDevicePrivateDataCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDevicePrivateDataCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDevicePrivateDataCreateInfoEXT
public class VkDevicePrivateDataCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceReserve private data slots.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_PRIVATE_DATA_CREATE_INFO
Layout
struct VkDevicePrivateDataCreateInfo { VkStructureTypesType(); void const *pNext(); uint32_tprivateDataSlotRequestCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDevicePrivateDataCreateInfo.BufferAn array ofVkDevicePrivateDataCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PRIVATEDATASLOTREQUESTCOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDevicePrivateDataCreateInfo(java.nio.ByteBuffer container)Creates aVkDevicePrivateDataCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDevicePrivateDataCreateInfocalloc()Returns a newVkDevicePrivateDataCreateInfoinstance allocated withmemCalloc.static VkDevicePrivateDataCreateInfo.Buffercalloc(int capacity)Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated withmemCalloc.static VkDevicePrivateDataCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDevicePrivateDataCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDevicePrivateDataCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDevicePrivateDataCreateInfocreate()Returns a newVkDevicePrivateDataCreateInfoinstance allocated withBufferUtils.static VkDevicePrivateDataCreateInfo.Buffercreate(int capacity)Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated withBufferUtils.static VkDevicePrivateDataCreateInfocreate(long address)Returns a newVkDevicePrivateDataCreateInfoinstance for the specified memory address.static VkDevicePrivateDataCreateInfo.Buffercreate(long address, int capacity)Create aVkDevicePrivateDataCreateInfo.Bufferinstance at the specified memory.static VkDevicePrivateDataCreateInfocreateSafe(long address)static VkDevicePrivateDataCreateInfo.BuffercreateSafe(long address, int capacity)static VkDevicePrivateDataCreateInfomalloc()Returns a newVkDevicePrivateDataCreateInfoinstance allocated withmemAlloc.static VkDevicePrivateDataCreateInfo.Buffermalloc(int capacity)Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated withmemAlloc.static VkDevicePrivateDataCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDevicePrivateDataCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDevicePrivateDataCreateInfoinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnprivateDataSlotRequestCount(long struct)Unsafe version ofprivateDataSlotRequestCount().static voidnprivateDataSlotRequestCount(long struct, int value)Unsafe version ofprivateDataSlotRequestCount.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.VkDevicePrivateDataCreateInfopNext(long value)Sets the specified value to thepNext()field.intprivateDataSlotRequestCount()the amount of slots to reserve.VkDevicePrivateDataCreateInfoprivateDataSlotRequestCount(int value)Sets the specified value to theprivateDataSlotRequestCount()field.VkDevicePrivateDataCreateInfoset(int sType, long pNext, int privateDataSlotRequestCount)Initializes this struct with the specified values.VkDevicePrivateDataCreateInfoset(VkDevicePrivateDataCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDevicePrivateDataCreateInfosType(int value)Sets the specified value to thesType()field.VkDevicePrivateDataCreateInfosType$Default()Sets theSTRUCTURE_TYPE_DEVICE_PRIVATE_DATA_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDevicePrivateDataCreateInfo
public VkDevicePrivateDataCreateInfo(java.nio.ByteBuffer container)
Creates aVkDevicePrivateDataCreateInfoinstance 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.
-
privateDataSlotRequestCount
public int privateDataSlotRequestCount()
the amount of slots to reserve.
-
sType
public VkDevicePrivateDataCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDevicePrivateDataCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_PRIVATE_DATA_CREATE_INFOvalue to thesType()field.
-
pNext
public VkDevicePrivateDataCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
privateDataSlotRequestCount
public VkDevicePrivateDataCreateInfo privateDataSlotRequestCount(int value)
Sets the specified value to theprivateDataSlotRequestCount()field.
-
set
public VkDevicePrivateDataCreateInfo set(int sType, long pNext, int privateDataSlotRequestCount)
Initializes this struct with the specified values.
-
set
public VkDevicePrivateDataCreateInfo set(VkDevicePrivateDataCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDevicePrivateDataCreateInfo malloc()
Returns a newVkDevicePrivateDataCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDevicePrivateDataCreateInfo calloc()
Returns a newVkDevicePrivateDataCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDevicePrivateDataCreateInfo create()
Returns a newVkDevicePrivateDataCreateInfoinstance allocated withBufferUtils.
-
create
public static VkDevicePrivateDataCreateInfo create(long address)
Returns a newVkDevicePrivateDataCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkDevicePrivateDataCreateInfo createSafe(long address)
-
malloc
public static VkDevicePrivateDataCreateInfo.Buffer malloc(int capacity)
Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDevicePrivateDataCreateInfo.Buffer calloc(int capacity)
Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDevicePrivateDataCreateInfo.Buffer create(int capacity)
Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDevicePrivateDataCreateInfo.Buffer create(long address, int capacity)
Create aVkDevicePrivateDataCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDevicePrivateDataCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDevicePrivateDataCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDevicePrivateDataCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDevicePrivateDataCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDevicePrivateDataCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDevicePrivateDataCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDevicePrivateDataCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDevicePrivateDataCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDevicePrivateDataCreateInfo.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().
-
nprivateDataSlotRequestCount
public static int nprivateDataSlotRequestCount(long struct)
Unsafe version ofprivateDataSlotRequestCount().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nprivateDataSlotRequestCount
public static void nprivateDataSlotRequestCount(long struct, int value)Unsafe version ofprivateDataSlotRequestCount.
-
-