Package org.lwjgl.vulkan
Class VkDeviceBufferMemoryRequirements
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceBufferMemoryRequirements
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDeviceBufferMemoryRequirementsKHR
public class VkDeviceBufferMemoryRequirements extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource(None).Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTSpNextmust beNULLpCreateInfomust be a valid pointer to a validVkBufferCreateInfostructure
See Also
VkBufferCreateInfo,GetDeviceBufferMemoryRequirements,GetDeviceBufferMemoryRequirementsKHRLayout
struct VkDeviceBufferMemoryRequirements { VkStructureTypesType(); void const *pNext();VkBufferCreateInfoconst *pCreateInfo(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceBufferMemoryRequirements.BufferAn array ofVkDeviceBufferMemoryRequirementsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPCREATEINFO
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceBufferMemoryRequirements(java.nio.ByteBuffer container)Creates aVkDeviceBufferMemoryRequirementsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceBufferMemoryRequirementscalloc()Returns a newVkDeviceBufferMemoryRequirementsinstance allocated withmemCalloc.static VkDeviceBufferMemoryRequirements.Buffercalloc(int capacity)Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated withmemCalloc.static VkDeviceBufferMemoryRequirements.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceBufferMemoryRequirementscalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceBufferMemoryRequirementsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceBufferMemoryRequirementscreate()Returns a newVkDeviceBufferMemoryRequirementsinstance allocated withBufferUtils.static VkDeviceBufferMemoryRequirements.Buffercreate(int capacity)Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated withBufferUtils.static VkDeviceBufferMemoryRequirementscreate(long address)Returns a newVkDeviceBufferMemoryRequirementsinstance for the specified memory address.static VkDeviceBufferMemoryRequirements.Buffercreate(long address, int capacity)Create aVkDeviceBufferMemoryRequirements.Bufferinstance at the specified memory.static VkDeviceBufferMemoryRequirementscreateSafe(long address)static VkDeviceBufferMemoryRequirements.BuffercreateSafe(long address, int capacity)static VkDeviceBufferMemoryRequirementsmalloc()Returns a newVkDeviceBufferMemoryRequirementsinstance allocated withmemAlloc.static VkDeviceBufferMemoryRequirements.Buffermalloc(int capacity)Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated withmemAlloc.static VkDeviceBufferMemoryRequirements.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceBufferMemoryRequirementsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceBufferMemoryRequirementsinstance allocated on the specifiedMemoryStack.static VkBufferCreateInfonpCreateInfo(long struct)Unsafe version ofpCreateInfo().static voidnpCreateInfo(long struct, VkBufferCreateInfo value)Unsafe version ofpCreateInfo.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.VkBufferCreateInfopCreateInfo()a pointer to aVkBufferCreateInfostructure containing parameters affecting creation of the buffer to query.VkDeviceBufferMemoryRequirementspCreateInfo(VkBufferCreateInfo value)Sets the address of the specifiedVkBufferCreateInfoto thepCreateInfo()field.longpNext()NULLor a pointer to a structure extending this structure.VkDeviceBufferMemoryRequirementspNext(long value)Sets the specified value to thepNext()field.VkDeviceBufferMemoryRequirementsset(int sType, long pNext, VkBufferCreateInfo pCreateInfo)Initializes this struct with the specified values.VkDeviceBufferMemoryRequirementsset(VkDeviceBufferMemoryRequirements src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDeviceBufferMemoryRequirementssType(int value)Sets the specified value to thesType()field.VkDeviceBufferMemoryRequirementssType$Default()Sets theSTRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTSvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkDeviceBufferMemoryRequirements
public VkDeviceBufferMemoryRequirements(java.nio.ByteBuffer container)
Creates aVkDeviceBufferMemoryRequirementsinstance 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.
-
pCreateInfo
public VkBufferCreateInfo pCreateInfo()
a pointer to aVkBufferCreateInfostructure containing parameters affecting creation of the buffer to query.
-
sType
public VkDeviceBufferMemoryRequirements sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceBufferMemoryRequirements sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTSvalue to thesType()field.
-
pNext
public VkDeviceBufferMemoryRequirements pNext(long value)
Sets the specified value to thepNext()field.
-
pCreateInfo
public VkDeviceBufferMemoryRequirements pCreateInfo(VkBufferCreateInfo value)
Sets the address of the specifiedVkBufferCreateInfoto thepCreateInfo()field.
-
set
public VkDeviceBufferMemoryRequirements set(int sType, long pNext, VkBufferCreateInfo pCreateInfo)
Initializes this struct with the specified values.
-
set
public VkDeviceBufferMemoryRequirements set(VkDeviceBufferMemoryRequirements src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceBufferMemoryRequirements malloc()
Returns a newVkDeviceBufferMemoryRequirementsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceBufferMemoryRequirements calloc()
Returns a newVkDeviceBufferMemoryRequirementsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceBufferMemoryRequirements create()
Returns a newVkDeviceBufferMemoryRequirementsinstance allocated withBufferUtils.
-
create
public static VkDeviceBufferMemoryRequirements create(long address)
Returns a newVkDeviceBufferMemoryRequirementsinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceBufferMemoryRequirements createSafe(long address)
-
malloc
public static VkDeviceBufferMemoryRequirements.Buffer malloc(int capacity)
Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceBufferMemoryRequirements.Buffer calloc(int capacity)
Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceBufferMemoryRequirements.Buffer create(int capacity)
Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceBufferMemoryRequirements.Buffer create(long address, int capacity)
Create aVkDeviceBufferMemoryRequirements.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceBufferMemoryRequirements.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDeviceBufferMemoryRequirements malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceBufferMemoryRequirementsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceBufferMemoryRequirements calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceBufferMemoryRequirementsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceBufferMemoryRequirements.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceBufferMemoryRequirements.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceBufferMemoryRequirements.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceBufferMemoryRequirements.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().
-
npCreateInfo
public static VkBufferCreateInfo npCreateInfo(long struct)
Unsafe version ofpCreateInfo().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npCreateInfo
public static void npCreateInfo(long struct, VkBufferCreateInfo value)Unsafe version ofpCreateInfo.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-