public class VkPhysicalDeviceExternalImageFormatInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If handleType is 0, GetPhysicalDeviceImageFormatProperties2 will behave as if VkPhysicalDeviceExternalImageFormatInfo was not present, and VkExternalImageFormatProperties will be ignored.
If handleType is not compatible with the format, type, tiling, usage, and flags specified in VkPhysicalDeviceImageFormatInfo2, then GetPhysicalDeviceImageFormatProperties2 returns ERROR_FORMAT_NOT_SUPPORTED.
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFOhandleType is not 0, handleType must be a valid VkExternalMemoryHandleTypeFlagBits valuesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.handleType – a VkExternalMemoryHandleTypeFlagBits value specifying the memory handle type that will be used with the memory associated with the image.
struct VkPhysicalDeviceExternalImageFormatInfo {
VkStructureType sType;
void const * pNext;
VkExternalMemoryHandleTypeFlagBits handleType;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceExternalImageFormatInfo.Buffer
An array of
VkPhysicalDeviceExternalImageFormatInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HANDLETYPE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceExternalImageFormatInfo(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceExternalImageFormatInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceExternalImageFormatInfo |
calloc()
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated with memCalloc. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceExternalImageFormatInfo |
callocStack()
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalImageFormatInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceExternalImageFormatInfo |
create()
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated with BufferUtils. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceExternalImageFormatInfo |
create(long address)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance for the specified memory address. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance at the specified memory. |
static VkPhysicalDeviceExternalImageFormatInfo |
createSafe(long address)
|
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
handleType()
Returns the value of the
handleType field. |
VkPhysicalDeviceExternalImageFormatInfo |
handleType(int value)
Sets the specified value to the
handleType field. |
static VkPhysicalDeviceExternalImageFormatInfo |
malloc()
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated with memAlloc. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceExternalImageFormatInfo |
mallocStack()
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceExternalImageFormatInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceExternalImageFormatInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the specified MemoryStack. |
static int |
nhandleType(long struct)
Unsafe version of
handleType(). |
static void |
nhandleType(long struct,
int value)
Unsafe version of
handleType. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceExternalImageFormatInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceExternalImageFormatInfo |
set(int sType,
long pNext,
int handleType)
Initializes this struct with the specified values.
|
VkPhysicalDeviceExternalImageFormatInfo |
set(VkPhysicalDeviceExternalImageFormatInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceExternalImageFormatInfo |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int HANDLETYPE
public VkPhysicalDeviceExternalImageFormatInfo(java.nio.ByteBuffer container)
VkPhysicalDeviceExternalImageFormatInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int handleType()
handleType field.public VkPhysicalDeviceExternalImageFormatInfo sType(int value)
sType field.public VkPhysicalDeviceExternalImageFormatInfo pNext(long value)
pNext field.public VkPhysicalDeviceExternalImageFormatInfo handleType(int value)
handleType field.public VkPhysicalDeviceExternalImageFormatInfo set(int sType, long pNext, int handleType)
public VkPhysicalDeviceExternalImageFormatInfo set(VkPhysicalDeviceExternalImageFormatInfo src)
src - the source structpublic static VkPhysicalDeviceExternalImageFormatInfo malloc()
VkPhysicalDeviceExternalImageFormatInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceExternalImageFormatInfo calloc()
VkPhysicalDeviceExternalImageFormatInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceExternalImageFormatInfo create()
VkPhysicalDeviceExternalImageFormatInfo instance allocated with BufferUtils.public static VkPhysicalDeviceExternalImageFormatInfo create(long address)
VkPhysicalDeviceExternalImageFormatInfo instance for the specified memory address.@Nullable public static VkPhysicalDeviceExternalImageFormatInfo createSafe(long address)
public static VkPhysicalDeviceExternalImageFormatInfo.Buffer malloc(int capacity)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer calloc(int capacity)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer create(int capacity)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer create(long address, int capacity)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceExternalImageFormatInfo.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceExternalImageFormatInfo mallocStack()
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceExternalImageFormatInfo callocStack()
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceExternalImageFormatInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceExternalImageFormatInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalImageFormatInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer mallocStack(int capacity)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer callocStack(int capacity)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceExternalImageFormatInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceExternalImageFormatInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nhandleType(long struct)
handleType().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nhandleType(long struct,
int value)
handleType.Copyright LWJGL. All Rights Reserved. License terms.