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.NativeResource
Structure specifying buffer creation parameters.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO
pNext
must beNULL
flags
must be a valid combination ofVkBufferCreateFlagBits
valuesusage
must be a valid combination ofVkBufferUsageFlagBits
valuesusage
must not be 0handleType
must be a validVkExternalMemoryHandleTypeFlagBits
value
See Also
GetPhysicalDeviceExternalBufferProperties
,GetPhysicalDeviceExternalBufferPropertiesKHR
Member documentation
sType
– the type of this structurepNext
– NULL or a pointer to an extension-specific structure.flags
– a bitmask ofVkBufferCreateFlagBits
describing additional parameters of the buffer, corresponding toVkBufferCreateInfo
::flags
.usage
– a bitmask ofVkBufferUsageFlagBits
describing the intended usage of the buffer, corresponding toVkBufferCreateInfo
::usage
.handleType
– aVkExternalMemoryHandleTypeFlagBits
value specifying the memory handle type that will be used with the memory associated with the buffer.
Layout
struct VkPhysicalDeviceExternalBufferInfo { VkStructureType sType; void const * pNext; VkBufferCreateFlags flags; VkBufferUsageFlags usage; VkExternalMemoryHandleTypeFlagBits handleType; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceExternalBufferInfo.Buffer
An array ofVkPhysicalDeviceExternalBufferInfo
structs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalBufferInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceExternalBufferInfo
calloc()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated withmemCalloc
.static VkPhysicalDeviceExternalBufferInfo.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceExternalBufferInfo
callocStack()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfo.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfo
create()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated withBufferUtils
.static VkPhysicalDeviceExternalBufferInfo.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceExternalBufferInfo
create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfo
instance for the specified memory address.static VkPhysicalDeviceExternalBufferInfo.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfo.Buffer
instance at the specified memory.static VkPhysicalDeviceExternalBufferInfo
createSafe(long address)
static VkPhysicalDeviceExternalBufferInfo.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkPhysicalDeviceExternalBufferInfo
flags(int value)
Sets the specified value to theflags
field.int
handleType()
Returns the value of thehandleType
field.VkPhysicalDeviceExternalBufferInfo
handleType(int value)
Sets the specified value to thehandleType
field.static VkPhysicalDeviceExternalBufferInfo
malloc()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated withmemAlloc
.static VkPhysicalDeviceExternalBufferInfo.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceExternalBufferInfo
mallocStack()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceExternalBufferInfo.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceExternalBufferInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceExternalBufferInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
nhandleType(long struct)
Unsafe version ofhandleType()
.static void
nhandleType(long struct, int value)
Unsafe version ofhandleType
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nusage(long struct)
Unsafe version ofusage()
.static void
nusage(long struct, int value)
Unsafe version ofusage
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceExternalBufferInfo
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceExternalBufferInfo
set(int sType, long pNext, int flags, int usage, int handleType)
Initializes this struct with the specified values.VkPhysicalDeviceExternalBufferInfo
set(VkPhysicalDeviceExternalBufferInfo src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceExternalBufferInfo
sType(int value)
Sets the specified value to thesType
field.int
usage()
Returns the value of theusage
field.VkPhysicalDeviceExternalBufferInfo
usage(int value)
Sets the specified value to theusage
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceExternalBufferInfo
public VkPhysicalDeviceExternalBufferInfo(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceExternalBufferInfo
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
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
usage
public int usage()
Returns the value of theusage
field.
-
handleType
public int handleType()
Returns the value of thehandleType
field.
-
sType
public VkPhysicalDeviceExternalBufferInfo sType(int value)
Sets the specified value 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 newVkPhysicalDeviceExternalBufferInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalBufferInfo calloc()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalBufferInfo create()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceExternalBufferInfo create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfo createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalBufferInfo.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfo.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfo.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo mallocStack()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo callocStack()
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfo.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-