Package org.lwjgl.vulkan
Class VkPhysicalDeviceExternalBufferInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalBufferInfo
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalBufferInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceExternalBufferInfoKHR extends VkPhysicalDeviceExternalBufferInfo
SeeVkPhysicalDeviceExternalBufferInfo.Layout
struct VkPhysicalDeviceExternalBufferInfoKHR { VkStructureType sType; void const * pNext; VkBufferCreateFlags flags; VkBufferUsageFlags usage; VkExternalMemoryHandleTypeFlagBits handleType; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceExternalBufferInfoKHR.BufferAn array ofVkPhysicalDeviceExternalBufferInfoKHRstructs.
-
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.VkPhysicalDeviceExternalBufferInfo
ALIGNOF, FLAGS, HANDLETYPE, PNEXT, SIZEOF, STYPE, USAGE
-
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceExternalBufferInfoKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceExternalBufferInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceExternalBufferInfoKHRcalloc()Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated withmemCalloc.static VkPhysicalDeviceExternalBufferInfoKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceExternalBufferInfoKHRcallocStack()Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHR.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHRcreate()Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated withBufferUtils.static VkPhysicalDeviceExternalBufferInfoKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceExternalBufferInfoKHRcreate(long address)Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance for the specified memory address.static VkPhysicalDeviceExternalBufferInfoKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceExternalBufferInfoKHRcreateSafe(long address)static VkPhysicalDeviceExternalBufferInfoKHR.BuffercreateSafe(long address, int capacity)VkPhysicalDeviceExternalBufferInfoKHRflags(int value)Sets the specified value to theflagsfield.VkPhysicalDeviceExternalBufferInfoKHRhandleType(int value)Sets the specified value to thehandleTypefield.static VkPhysicalDeviceExternalBufferInfoKHRmalloc()Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated withmemAlloc.static VkPhysicalDeviceExternalBufferInfoKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceExternalBufferInfoKHRmallocStack()Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceExternalBufferInfoKHR.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceExternalBufferInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceExternalBufferInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the specifiedMemoryStack.VkPhysicalDeviceExternalBufferInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceExternalBufferInfoKHRset(int sType, long pNext, int flags, int usage, int handleType)Initializes this struct with the specified values.VkPhysicalDeviceExternalBufferInfoKHRset(VkPhysicalDeviceExternalBufferInfoKHR src)Copies the specified struct data to this struct.VkPhysicalDeviceExternalBufferInfoKHRsType(int value)Sets the specified value to thesTypefield.VkPhysicalDeviceExternalBufferInfoKHRusage(int value)Sets the specified value to theusagefield.-
Methods inherited from class org.lwjgl.vulkan.VkPhysicalDeviceExternalBufferInfo
flags, handleType, nflags, nflags, nhandleType, nhandleType, npNext, npNext, nsType, nsType, nusage, nusage, pNext, set, sizeof, sType, usage
-
-
-
-
Constructor Detail
-
VkPhysicalDeviceExternalBufferInfoKHR
public VkPhysicalDeviceExternalBufferInfoKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalBufferInfoKHRinstance 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 VkPhysicalDeviceExternalBufferInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkPhysicalDeviceExternalBufferInfo
-
pNext
public VkPhysicalDeviceExternalBufferInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkPhysicalDeviceExternalBufferInfo
-
flags
public VkPhysicalDeviceExternalBufferInfoKHR flags(int value)
Sets the specified value to theflagsfield.- Overrides:
flagsin classVkPhysicalDeviceExternalBufferInfo
-
usage
public VkPhysicalDeviceExternalBufferInfoKHR usage(int value)
Sets the specified value to theusagefield.- Overrides:
usagein classVkPhysicalDeviceExternalBufferInfo
-
handleType
public VkPhysicalDeviceExternalBufferInfoKHR handleType(int value)
Sets the specified value to thehandleTypefield.- Overrides:
handleTypein classVkPhysicalDeviceExternalBufferInfo
-
set
public VkPhysicalDeviceExternalBufferInfoKHR set(int sType, long pNext, int flags, int usage, int handleType)
Initializes this struct with the specified values.- Overrides:
setin classVkPhysicalDeviceExternalBufferInfo
-
set
public VkPhysicalDeviceExternalBufferInfoKHR set(VkPhysicalDeviceExternalBufferInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceExternalBufferInfoKHR malloc()
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalBufferInfoKHR calloc()
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR create()
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfoKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfoKHR mallocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR callocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-