Package org.lwjgl.vulkan
Class VkBindBufferMemoryInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindBufferMemoryInfo
-
- org.lwjgl.vulkan.VkBindBufferMemoryInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBindBufferMemoryInfoKHR extends VkBindBufferMemoryInfo
SeeVkBindBufferMemoryInfo.Layout
struct VkBindBufferMemoryInfoKHR { VkStructureType sType; void const * pNext; VkBuffer buffer; VkDeviceMemory memory; VkDeviceSize memoryOffset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBindBufferMemoryInfoKHR.BufferAn array ofVkBindBufferMemoryInfoKHRstructs.
-
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.VkBindBufferMemoryInfo
ALIGNOF, BUFFER, MEMORY, MEMORYOFFSET, PNEXT, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkBindBufferMemoryInfoKHR(java.nio.ByteBuffer container)Creates aVkBindBufferMemoryInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VkBindBufferMemoryInfoKHRbuffer(long value)Sets the specified value to thebufferfield.static VkBindBufferMemoryInfoKHRcalloc()Returns a newVkBindBufferMemoryInfoKHRinstance allocated withmemCalloc.static VkBindBufferMemoryInfoKHR.Buffercalloc(int capacity)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated withmemCalloc.static VkBindBufferMemoryInfoKHRcallocStack()Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindBufferMemoryInfoKHR.BuffercallocStack(int capacity)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindBufferMemoryInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindBufferMemoryInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindBufferMemoryInfoKHRcreate()Returns a newVkBindBufferMemoryInfoKHRinstance allocated withBufferUtils.static VkBindBufferMemoryInfoKHR.Buffercreate(int capacity)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated withBufferUtils.static VkBindBufferMemoryInfoKHRcreate(long address)Returns a newVkBindBufferMemoryInfoKHRinstance for the specified memory address.static VkBindBufferMemoryInfoKHR.Buffercreate(long address, int capacity)Create aVkBindBufferMemoryInfoKHR.Bufferinstance at the specified memory.static VkBindBufferMemoryInfoKHRcreateSafe(long address)static VkBindBufferMemoryInfoKHR.BuffercreateSafe(long address, int capacity)static VkBindBufferMemoryInfoKHRmalloc()Returns a newVkBindBufferMemoryInfoKHRinstance allocated withmemAlloc.static VkBindBufferMemoryInfoKHR.Buffermalloc(int capacity)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated withmemAlloc.static VkBindBufferMemoryInfoKHRmallocStack()Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the thread-localMemoryStack.static VkBindBufferMemoryInfoKHR.BuffermallocStack(int capacity)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkBindBufferMemoryInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkBindBufferMemoryInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the specifiedMemoryStack.VkBindBufferMemoryInfoKHRmemory(long value)Sets the specified value to thememoryfield.VkBindBufferMemoryInfoKHRmemoryOffset(long value)Sets the specified value to thememoryOffsetfield.VkBindBufferMemoryInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkBindBufferMemoryInfoKHRset(int sType, long pNext, long buffer, long memory, long memoryOffset)Initializes this struct with the specified values.VkBindBufferMemoryInfoKHRset(VkBindBufferMemoryInfoKHR src)Copies the specified struct data to this struct.VkBindBufferMemoryInfoKHRsType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkBindBufferMemoryInfo
buffer, memory, memoryOffset, nbuffer, nbuffer, nmemory, nmemory, nmemoryOffset, nmemoryOffset, npNext, npNext, nsType, nsType, pNext, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkBindBufferMemoryInfoKHR
public VkBindBufferMemoryInfoKHR(java.nio.ByteBuffer container)
Creates aVkBindBufferMemoryInfoKHRinstance 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 VkBindBufferMemoryInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkBindBufferMemoryInfo
-
pNext
public VkBindBufferMemoryInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkBindBufferMemoryInfo
-
buffer
public VkBindBufferMemoryInfoKHR buffer(long value)
Sets the specified value to thebufferfield.- Overrides:
bufferin classVkBindBufferMemoryInfo
-
memory
public VkBindBufferMemoryInfoKHR memory(long value)
Sets the specified value to thememoryfield.- Overrides:
memoryin classVkBindBufferMemoryInfo
-
memoryOffset
public VkBindBufferMemoryInfoKHR memoryOffset(long value)
Sets the specified value to thememoryOffsetfield.- Overrides:
memoryOffsetin classVkBindBufferMemoryInfo
-
set
public VkBindBufferMemoryInfoKHR set(int sType, long pNext, long buffer, long memory, long memoryOffset)
Initializes this struct with the specified values.- Overrides:
setin classVkBindBufferMemoryInfo
-
set
public VkBindBufferMemoryInfoKHR set(VkBindBufferMemoryInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindBufferMemoryInfoKHR malloc()
Returns a newVkBindBufferMemoryInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindBufferMemoryInfoKHR calloc()
Returns a newVkBindBufferMemoryInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindBufferMemoryInfoKHR create()
Returns a newVkBindBufferMemoryInfoKHRinstance allocated withBufferUtils.
-
create
public static VkBindBufferMemoryInfoKHR create(long address)
Returns a newVkBindBufferMemoryInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkBindBufferMemoryInfoKHR createSafe(long address)
-
malloc
public static VkBindBufferMemoryInfoKHR.Buffer malloc(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindBufferMemoryInfoKHR.Buffer calloc(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindBufferMemoryInfoKHR.Buffer create(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindBufferMemoryInfoKHR.Buffer create(long address, int capacity)
Create aVkBindBufferMemoryInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBindBufferMemoryInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkBindBufferMemoryInfoKHR mallocStack()
Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBindBufferMemoryInfoKHR callocStack()
Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBindBufferMemoryInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBindBufferMemoryInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkBindBufferMemoryInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBindBufferMemoryInfoKHR.Buffer callocStack(int capacity)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBindBufferMemoryInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkBindBufferMemoryInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindBufferMemoryInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-