Package org.lwjgl.vulkan
Class VkMemoryDedicatedAllocateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryDedicatedAllocateInfo
-
- org.lwjgl.vulkan.VkMemoryDedicatedAllocateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMemoryDedicatedAllocateInfoKHR extends VkMemoryDedicatedAllocateInfo
SeeVkMemoryDedicatedAllocateInfo.Layout
struct VkMemoryDedicatedAllocateInfoKHR { VkStructureType sType; void const * pNext; VkImage image; VkBuffer buffer; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryDedicatedAllocateInfoKHR.BufferAn array ofVkMemoryDedicatedAllocateInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkMemoryDedicatedAllocateInfoKHR(java.nio.ByteBuffer container)Creates aVkMemoryDedicatedAllocateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VkMemoryDedicatedAllocateInfoKHRbuffer(long value)Sets the specified value to thebufferfield.static VkMemoryDedicatedAllocateInfoKHRcalloc()Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated withmemCalloc.static VkMemoryDedicatedAllocateInfoKHR.Buffercalloc(int capacity)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated withmemCalloc.static VkMemoryDedicatedAllocateInfoKHRcallocStack()Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHR.BuffercallocStack(int capacity)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHRcreate()Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated withBufferUtils.static VkMemoryDedicatedAllocateInfoKHR.Buffercreate(int capacity)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated withBufferUtils.static VkMemoryDedicatedAllocateInfoKHRcreate(long address)Returns a newVkMemoryDedicatedAllocateInfoKHRinstance for the specified memory address.static VkMemoryDedicatedAllocateInfoKHR.Buffercreate(long address, int capacity)Create aVkMemoryDedicatedAllocateInfoKHR.Bufferinstance at the specified memory.static VkMemoryDedicatedAllocateInfoKHRcreateSafe(long address)static VkMemoryDedicatedAllocateInfoKHR.BuffercreateSafe(long address, int capacity)VkMemoryDedicatedAllocateInfoKHRimage(long value)Sets the specified value to theimagefield.static VkMemoryDedicatedAllocateInfoKHRmalloc()Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated withmemAlloc.static VkMemoryDedicatedAllocateInfoKHR.Buffermalloc(int capacity)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated withmemAlloc.static VkMemoryDedicatedAllocateInfoKHRmallocStack()Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the thread-localMemoryStack.static VkMemoryDedicatedAllocateInfoKHR.BuffermallocStack(int capacity)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkMemoryDedicatedAllocateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryDedicatedAllocateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the specifiedMemoryStack.VkMemoryDedicatedAllocateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkMemoryDedicatedAllocateInfoKHRset(int sType, long pNext, long image, long buffer)Initializes this struct with the specified values.VkMemoryDedicatedAllocateInfoKHRset(VkMemoryDedicatedAllocateInfoKHR src)Copies the specified struct data to this struct.VkMemoryDedicatedAllocateInfoKHRsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkMemoryDedicatedAllocateInfoKHR
public VkMemoryDedicatedAllocateInfoKHR(java.nio.ByteBuffer container)
Creates aVkMemoryDedicatedAllocateInfoKHRinstance 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 VkMemoryDedicatedAllocateInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkMemoryDedicatedAllocateInfo
-
pNext
public VkMemoryDedicatedAllocateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkMemoryDedicatedAllocateInfo
-
image
public VkMemoryDedicatedAllocateInfoKHR image(long value)
Sets the specified value to theimagefield.- Overrides:
imagein classVkMemoryDedicatedAllocateInfo
-
buffer
public VkMemoryDedicatedAllocateInfoKHR buffer(long value)
Sets the specified value to thebufferfield.- Overrides:
bufferin classVkMemoryDedicatedAllocateInfo
-
set
public VkMemoryDedicatedAllocateInfoKHR set(int sType, long pNext, long image, long buffer)
Initializes this struct with the specified values.- Overrides:
setin classVkMemoryDedicatedAllocateInfo
-
set
public VkMemoryDedicatedAllocateInfoKHR set(VkMemoryDedicatedAllocateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMemoryDedicatedAllocateInfoKHR malloc()
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMemoryDedicatedAllocateInfoKHR calloc()
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMemoryDedicatedAllocateInfoKHR create()
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkMemoryDedicatedAllocateInfoKHR create(long address)
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryDedicatedAllocateInfoKHR createSafe(long address)
-
malloc
public static VkMemoryDedicatedAllocateInfoKHR.Buffer malloc(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMemoryDedicatedAllocateInfoKHR.Buffer calloc(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryDedicatedAllocateInfoKHR.Buffer create(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryDedicatedAllocateInfoKHR.Buffer create(long address, int capacity)
Create aVkMemoryDedicatedAllocateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMemoryDedicatedAllocateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkMemoryDedicatedAllocateInfoKHR mallocStack()
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR callocStack()
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkMemoryDedicatedAllocateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkMemoryDedicatedAllocateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkMemoryDedicatedAllocateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-