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 class
VkMemoryDedicatedAllocateInfoKHR.Buffer
An array ofVkMemoryDedicatedAllocateInfoKHR
structs.
-
Constructor Summary
Constructors Constructor Description VkMemoryDedicatedAllocateInfoKHR(java.nio.ByteBuffer container)
Creates aVkMemoryDedicatedAllocateInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VkMemoryDedicatedAllocateInfoKHR
buffer(long value)
Sets the specified value to thebuffer
field.static VkMemoryDedicatedAllocateInfoKHR
calloc()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated withmemCalloc
.static VkMemoryDedicatedAllocateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkMemoryDedicatedAllocateInfoKHR
callocStack()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMemoryDedicatedAllocateInfoKHR
create()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated withBufferUtils
.static VkMemoryDedicatedAllocateInfoKHR.Buffer
create(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkMemoryDedicatedAllocateInfoKHR
create(long address)
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance for the specified memory address.static VkMemoryDedicatedAllocateInfoKHR.Buffer
create(long address, int capacity)
Create aVkMemoryDedicatedAllocateInfoKHR.Buffer
instance at the specified memory.static VkMemoryDedicatedAllocateInfoKHR
createSafe(long address)
static VkMemoryDedicatedAllocateInfoKHR.Buffer
createSafe(long address, int capacity)
VkMemoryDedicatedAllocateInfoKHR
image(long value)
Sets the specified value to theimage
field.static VkMemoryDedicatedAllocateInfoKHR
malloc()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated withmemAlloc
.static VkMemoryDedicatedAllocateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkMemoryDedicatedAllocateInfoKHR
mallocStack()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkMemoryDedicatedAllocateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkMemoryDedicatedAllocateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkMemoryDedicatedAllocateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the specifiedMemoryStack
.VkMemoryDedicatedAllocateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkMemoryDedicatedAllocateInfoKHR
set(int sType, long pNext, long image, long buffer)
Initializes this struct with the specified values.VkMemoryDedicatedAllocateInfoKHR
set(VkMemoryDedicatedAllocateInfoKHR src)
Copies the specified struct data to this struct.VkMemoryDedicatedAllocateInfoKHR
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkMemoryDedicatedAllocateInfoKHR
public VkMemoryDedicatedAllocateInfoKHR(java.nio.ByteBuffer container)
Creates aVkMemoryDedicatedAllocateInfoKHR
instance at the current position of the specifiedByteBuffer
container. 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 thesType
field.- Overrides:
sType
in classVkMemoryDedicatedAllocateInfo
-
pNext
public VkMemoryDedicatedAllocateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkMemoryDedicatedAllocateInfo
-
image
public VkMemoryDedicatedAllocateInfoKHR image(long value)
Sets the specified value to theimage
field.- Overrides:
image
in classVkMemoryDedicatedAllocateInfo
-
buffer
public VkMemoryDedicatedAllocateInfoKHR buffer(long value)
Sets the specified value to thebuffer
field.- Overrides:
buffer
in classVkMemoryDedicatedAllocateInfo
-
set
public VkMemoryDedicatedAllocateInfoKHR set(int sType, long pNext, long image, long buffer)
Initializes this struct with the specified values.- Overrides:
set
in 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 newVkMemoryDedicatedAllocateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkMemoryDedicatedAllocateInfoKHR calloc()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkMemoryDedicatedAllocateInfoKHR create()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkMemoryDedicatedAllocateInfoKHR create(long address)
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryDedicatedAllocateInfoKHR createSafe(long address)
-
malloc
public static VkMemoryDedicatedAllocateInfoKHR.Buffer malloc(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkMemoryDedicatedAllocateInfoKHR.Buffer calloc(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkMemoryDedicatedAllocateInfoKHR.Buffer create(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkMemoryDedicatedAllocateInfoKHR.Buffer create(long address, int capacity)
Create aVkMemoryDedicatedAllocateInfoKHR.Buffer
instance 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 newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR callocStack()
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkMemoryDedicatedAllocateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryDedicatedAllocateInfoKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkMemoryDedicatedAllocateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkMemoryDedicatedAllocateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-