Package org.lwjgl.vulkan
Class VkDeviceImageMemoryRequirementsKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceImageMemoryRequirements
-
- org.lwjgl.vulkan.VkDeviceImageMemoryRequirementsKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDeviceImageMemoryRequirementsKHR extends VkDeviceImageMemoryRequirements
SeeVkDeviceImageMemoryRequirements.Layout
struct VkDeviceImageMemoryRequirementsKHR { VkStructureType sType; void const * pNext;VkImageCreateInfoconst * pCreateInfo; VkImageAspectFlagBits planeAspect; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceImageMemoryRequirementsKHR.BufferAn array ofVkDeviceImageMemoryRequirementsKHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkDeviceImageMemoryRequirements
ALIGNOF, PCREATEINFO, PLANEASPECT, PNEXT, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkDeviceImageMemoryRequirementsKHR(java.nio.ByteBuffer container)Creates aVkDeviceImageMemoryRequirementsKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceImageMemoryRequirementsKHRcalloc()Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated withmemCalloc.static VkDeviceImageMemoryRequirementsKHR.Buffercalloc(int capacity)Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated withmemCalloc.static VkDeviceImageMemoryRequirementsKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceImageMemoryRequirementsKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceImageMemoryRequirementsKHRcreate()Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated withBufferUtils.static VkDeviceImageMemoryRequirementsKHR.Buffercreate(int capacity)Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated withBufferUtils.static VkDeviceImageMemoryRequirementsKHRcreate(long address)Returns a newVkDeviceImageMemoryRequirementsKHRinstance for the specified memory address.static VkDeviceImageMemoryRequirementsKHR.Buffercreate(long address, int capacity)Create aVkDeviceImageMemoryRequirementsKHR.Bufferinstance at the specified memory.static VkDeviceImageMemoryRequirementsKHRcreateSafe(long address)static VkDeviceImageMemoryRequirementsKHR.BuffercreateSafe(long address, int capacity)static VkDeviceImageMemoryRequirementsKHRmalloc()Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated withmemAlloc.static VkDeviceImageMemoryRequirementsKHR.Buffermalloc(int capacity)Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated withmemAlloc.static VkDeviceImageMemoryRequirementsKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceImageMemoryRequirementsKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated on the specifiedMemoryStack.VkDeviceImageMemoryRequirementsKHRpCreateInfo(VkImageCreateInfo value)Sets the address of the specifiedVkImageCreateInfoto thepCreateInfofield.VkDeviceImageMemoryRequirementsKHRplaneAspect(int value)Sets the specified value to theplaneAspectfield.VkDeviceImageMemoryRequirementsKHRpNext(long value)Sets the specified value to thepNextfield.VkDeviceImageMemoryRequirementsKHRset(int sType, long pNext, VkImageCreateInfo pCreateInfo, int planeAspect)Initializes this struct with the specified values.VkDeviceImageMemoryRequirementsKHRset(VkDeviceImageMemoryRequirementsKHR src)Copies the specified struct data to this struct.VkDeviceImageMemoryRequirementsKHRsType(int value)Sets the specified value to thesTypefield.VkDeviceImageMemoryRequirementsKHRsType$Default()Sets theSTRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTSvalue to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkDeviceImageMemoryRequirements
npCreateInfo, npCreateInfo, nplaneAspect, nplaneAspect, npNext, npNext, nsType, nsType, pCreateInfo, planeAspect, pNext, set, sizeof, sType, validate
-
-
-
-
Constructor Detail
-
VkDeviceImageMemoryRequirementsKHR
public VkDeviceImageMemoryRequirementsKHR(java.nio.ByteBuffer container)
Creates aVkDeviceImageMemoryRequirementsKHRinstance 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
-
sType
public VkDeviceImageMemoryRequirementsKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkDeviceImageMemoryRequirements
-
sType$Default
public VkDeviceImageMemoryRequirementsKHR sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTSvalue to thesTypefield.- Overrides:
sType$Defaultin classVkDeviceImageMemoryRequirements
-
pNext
public VkDeviceImageMemoryRequirementsKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkDeviceImageMemoryRequirements
-
pCreateInfo
public VkDeviceImageMemoryRequirementsKHR pCreateInfo(VkImageCreateInfo value)
Sets the address of the specifiedVkImageCreateInfoto thepCreateInfofield.- Overrides:
pCreateInfoin classVkDeviceImageMemoryRequirements
-
planeAspect
public VkDeviceImageMemoryRequirementsKHR planeAspect(int value)
Sets the specified value to theplaneAspectfield.- Overrides:
planeAspectin classVkDeviceImageMemoryRequirements
-
set
public VkDeviceImageMemoryRequirementsKHR set(int sType, long pNext, VkImageCreateInfo pCreateInfo, int planeAspect)
Initializes this struct with the specified values.- Overrides:
setin classVkDeviceImageMemoryRequirements
-
set
public VkDeviceImageMemoryRequirementsKHR set(VkDeviceImageMemoryRequirementsKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceImageMemoryRequirementsKHR malloc()
Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceImageMemoryRequirementsKHR calloc()
Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceImageMemoryRequirementsKHR create()
Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated withBufferUtils.
-
create
public static VkDeviceImageMemoryRequirementsKHR create(long address)
Returns a newVkDeviceImageMemoryRequirementsKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceImageMemoryRequirementsKHR createSafe(long address)
-
malloc
public static VkDeviceImageMemoryRequirementsKHR.Buffer malloc(int capacity)
Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceImageMemoryRequirementsKHR.Buffer calloc(int capacity)
Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceImageMemoryRequirementsKHR.Buffer create(int capacity)
Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceImageMemoryRequirementsKHR.Buffer create(long address, int capacity)
Create aVkDeviceImageMemoryRequirementsKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceImageMemoryRequirementsKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDeviceImageMemoryRequirementsKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceImageMemoryRequirementsKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceImageMemoryRequirementsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDeviceImageMemoryRequirementsKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDeviceImageMemoryRequirementsKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceImageMemoryRequirementsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-