Package org.lwjgl.vulkan
Class VkPhysicalDeviceExternalBufferInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceExternalBufferInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceExternalBufferInfoKHR
public class VkPhysicalDeviceExternalBufferInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying buffer creation parameters.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFOpNextmust beNULLflagsmust be a valid combination ofVkBufferCreateFlagBitsvaluesusagemust be a valid combination ofVkBufferUsageFlagBitsvaluesusagemust not be 0handleTypemust be a validVkExternalMemoryHandleTypeFlagBitsvalue
See Also
GetPhysicalDeviceExternalBufferProperties,GetPhysicalDeviceExternalBufferPropertiesKHRLayout
struct VkPhysicalDeviceExternalBufferInfo { VkStructureTypesType(); void const *pNext(); VkBufferCreateFlagsflags(); VkBufferUsageFlagsusage(); VkExternalMemoryHandleTypeFlagBitshandleType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceExternalBufferInfo.BufferAn array ofVkPhysicalDeviceExternalBufferInfostructs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceExternalBufferInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceExternalBufferInfocalloc()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemCalloc.static VkPhysicalDeviceExternalBufferInfo.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceExternalBufferInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfocallocStack()Deprecated.static VkPhysicalDeviceExternalBufferInfo.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceExternalBufferInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceExternalBufferInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceExternalBufferInfocreate()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withBufferUtils.static VkPhysicalDeviceExternalBufferInfo.Buffercreate(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceExternalBufferInfocreate(long address)Returns a newVkPhysicalDeviceExternalBufferInfoinstance for the specified memory address.static VkPhysicalDeviceExternalBufferInfo.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceExternalBufferInfo.Bufferinstance at the specified memory.static VkPhysicalDeviceExternalBufferInfocreateSafe(long address)static VkPhysicalDeviceExternalBufferInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkBufferCreateFlagBitsdescribing additional parameters of the buffer, corresponding toVkBufferCreateInfo::flags.VkPhysicalDeviceExternalBufferInfoflags(int value)Sets the specified value to theflags()field.inthandleType()aVkExternalMemoryHandleTypeFlagBitsvalue specifying the memory handle type that will be used with the memory associated with the buffer.VkPhysicalDeviceExternalBufferInfohandleType(int value)Sets the specified value to thehandleType()field.static VkPhysicalDeviceExternalBufferInfomalloc()Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemAlloc.static VkPhysicalDeviceExternalBufferInfo.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceExternalBufferInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceExternalBufferInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceExternalBufferInfomallocStack()Deprecated.static VkPhysicalDeviceExternalBufferInfo.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceExternalBufferInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceExternalBufferInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnhandleType(long struct)Unsafe version ofhandleType().static voidnhandleType(long struct, int value)Unsafe version ofhandleType.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnusage(long struct)Unsafe version ofusage().static voidnusage(long struct, int value)Unsafe version ofusage.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceExternalBufferInfopNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceExternalBufferInfoset(int sType, long pNext, int flags, int usage, int handleType)Initializes this struct with the specified values.VkPhysicalDeviceExternalBufferInfoset(VkPhysicalDeviceExternalBufferInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceExternalBufferInfosType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceExternalBufferInfosType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFOvalue to thesType()field.intusage()a bitmask ofVkBufferUsageFlagBitsdescribing the intended usage of the buffer, corresponding toVkBufferCreateInfo::usage.VkPhysicalDeviceExternalBufferInfousage(int value)Sets the specified value to theusage()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceExternalBufferInfo
public VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalBufferInfoinstance 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkBufferCreateFlagBitsdescribing additional parameters of the buffer, corresponding toVkBufferCreateInfo::flags.
-
usage
public int usage()
a bitmask ofVkBufferUsageFlagBitsdescribing the intended usage of the buffer, corresponding toVkBufferCreateInfo::usage.
-
handleType
public int handleType()
aVkExternalMemoryHandleTypeFlagBitsvalue specifying the memory handle type that will be used with the memory associated with the buffer.
-
sType
public VkPhysicalDeviceExternalBufferInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceExternalBufferInfo sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFOvalue to thesType()field.
-
pNext
public VkPhysicalDeviceExternalBufferInfo pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkPhysicalDeviceExternalBufferInfo flags(int value)
Sets the specified value to theflags()field.
-
usage
public VkPhysicalDeviceExternalBufferInfo usage(int value)
Sets the specified value to theusage()field.
-
handleType
public VkPhysicalDeviceExternalBufferInfo handleType(int value)
Sets the specified value to thehandleType()field.
-
set
public VkPhysicalDeviceExternalBufferInfo set(int sType, long pNext, int flags, int usage, int handleType)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceExternalBufferInfo set(VkPhysicalDeviceExternalBufferInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceExternalBufferInfo malloc()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalBufferInfo calloc()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalBufferInfo create()
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceExternalBufferInfo create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfo createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfo.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfo.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceExternalBufferInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceExternalBufferInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nusage
public static int nusage(long struct)
Unsafe version ofusage().
-
nhandleType
public static int nhandleType(long struct)
Unsafe version ofhandleType().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nusage
public static void nusage(long struct, int value)Unsafe version ofusage.
-
nhandleType
public static void nhandleType(long struct, int value)Unsafe version ofhandleType.
-
-