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 class
VkPhysicalDeviceExternalBufferInfoKHR.Buffer
An array ofVkPhysicalDeviceExternalBufferInfoKHR
structs.
-
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 aVkPhysicalDeviceExternalBufferInfoKHR
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 VkPhysicalDeviceExternalBufferInfoKHR
calloc()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated withmemCalloc
.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceExternalBufferInfoKHR
callocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceExternalBufferInfoKHR
create()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated withBufferUtils
.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceExternalBufferInfoKHR
create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance for the specified memory address.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance at the specified memory.static VkPhysicalDeviceExternalBufferInfoKHR
createSafe(long address)
static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
createSafe(long address, int capacity)
VkPhysicalDeviceExternalBufferInfoKHR
flags(int value)
Sets the specified value to theflags
field.VkPhysicalDeviceExternalBufferInfoKHR
handleType(int value)
Sets the specified value to thehandleType
field.static VkPhysicalDeviceExternalBufferInfoKHR
malloc()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated withmemAlloc
.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceExternalBufferInfoKHR
mallocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceExternalBufferInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceExternalBufferInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the specifiedMemoryStack
.VkPhysicalDeviceExternalBufferInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceExternalBufferInfoKHR
set(int sType, long pNext, int flags, int usage, int handleType)
Initializes this struct with the specified values.VkPhysicalDeviceExternalBufferInfoKHR
set(VkPhysicalDeviceExternalBufferInfoKHR src)
Copies the specified struct data to this struct.VkPhysicalDeviceExternalBufferInfoKHR
sType(int value)
Sets the specified value to thesType
field.VkPhysicalDeviceExternalBufferInfoKHR
usage(int value)
Sets the specified value to theusage
field.-
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 aVkPhysicalDeviceExternalBufferInfoKHR
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 VkPhysicalDeviceExternalBufferInfoKHR sType(int value)
Sets the specified value to thesType
field.- Overrides:
sType
in classVkPhysicalDeviceExternalBufferInfo
-
pNext
public VkPhysicalDeviceExternalBufferInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkPhysicalDeviceExternalBufferInfo
-
flags
public VkPhysicalDeviceExternalBufferInfoKHR flags(int value)
Sets the specified value to theflags
field.- Overrides:
flags
in classVkPhysicalDeviceExternalBufferInfo
-
usage
public VkPhysicalDeviceExternalBufferInfoKHR usage(int value)
Sets the specified value to theusage
field.- Overrides:
usage
in classVkPhysicalDeviceExternalBufferInfo
-
handleType
public VkPhysicalDeviceExternalBufferInfoKHR handleType(int value)
Sets the specified value to thehandleType
field.- Overrides:
handleType
in classVkPhysicalDeviceExternalBufferInfo
-
set
public VkPhysicalDeviceExternalBufferInfoKHR set(int sType, long pNext, int flags, int usage, int handleType)
Initializes this struct with the specified values.- Overrides:
set
in 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 newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceExternalBufferInfoKHR calloc()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR create()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR create(long address)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceExternalBufferInfoKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance 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 newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR callocStack()
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceExternalBufferInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceExternalBufferInfoKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceExternalBufferInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-