Package org.lwjgl.vulkan
Class VkExternalImageFormatPropertiesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkExternalImageFormatPropertiesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkExternalImageFormatPropertiesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying external image format properties.Member documentation
imageFormatProperties– will be filled in as when callingGetPhysicalDeviceImageFormatProperties, but the values returned may vary depending on the external handle type requested.externalMemoryFeatures– a bitmask ofVkExternalMemoryFeatureFlagBitsNV, indicating properties of the external memory handle type (GetPhysicalDeviceExternalImageFormatPropertiesNV::externalHandleType) being queried, or 0 if the external memory handle type is 0.exportFromImportedHandleTypes– a bitmask ofVkExternalMemoryHandleTypeFlagBitsNVcontaining a bit set for every external handle type that may be used to create memory from which the handles of the type specified inGetPhysicalDeviceExternalImageFormatPropertiesNV::externalHandleTypecan be exported, or 0 if the external memory handle type is 0.compatibleHandleTypes– a bitmask ofVkExternalMemoryHandleTypeFlagBitsNVcontaining a bit set for every external handle type that may be specified simultaneously with the handle type specified byGetPhysicalDeviceExternalImageFormatPropertiesNV::externalHandleTypewhen callingAllocateMemory, or 0 if the external memory handle type is 0.compatibleHandleTypeswill always containGetPhysicalDeviceExternalImageFormatPropertiesNV::externalHandleType
Layout
struct VkExternalImageFormatPropertiesNV {VkImageFormatPropertiesimageFormatProperties; VkExternalMemoryFeatureFlagsNV externalMemoryFeatures; VkExternalMemoryHandleTypeFlagsNV exportFromImportedHandleTypes; VkExternalMemoryHandleTypeFlagsNV compatibleHandleTypes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkExternalImageFormatPropertiesNV.BufferAn array ofVkExternalImageFormatPropertiesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPATIBLEHANDLETYPES
EXPORTFROMIMPORTEDHANDLETYPES
EXTERNALMEMORYFEATURES
IMAGEFORMATPROPERTIESThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkExternalImageFormatPropertiesNV(java.nio.ByteBuffer container)Creates aVkExternalImageFormatPropertiesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkExternalImageFormatPropertiesNVcalloc()Returns a newVkExternalImageFormatPropertiesNVinstance allocated withmemCalloc.static VkExternalImageFormatPropertiesNV.Buffercalloc(int capacity)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated withmemCalloc.static VkExternalImageFormatPropertiesNVcallocStack()Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkExternalImageFormatPropertiesNV.BuffercallocStack(int capacity)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkExternalImageFormatPropertiesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkExternalImageFormatPropertiesNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcompatibleHandleTypes()Returns the value of thecompatibleHandleTypesfield.static VkExternalImageFormatPropertiesNVcreate()Returns a newVkExternalImageFormatPropertiesNVinstance allocated withBufferUtils.static VkExternalImageFormatPropertiesNV.Buffercreate(int capacity)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated withBufferUtils.static VkExternalImageFormatPropertiesNVcreate(long address)Returns a newVkExternalImageFormatPropertiesNVinstance for the specified memory address.static VkExternalImageFormatPropertiesNV.Buffercreate(long address, int capacity)Create aVkExternalImageFormatPropertiesNV.Bufferinstance at the specified memory.static VkExternalImageFormatPropertiesNVcreateSafe(long address)static VkExternalImageFormatPropertiesNV.BuffercreateSafe(long address, int capacity)intexportFromImportedHandleTypes()Returns the value of theexportFromImportedHandleTypesfield.intexternalMemoryFeatures()Returns the value of theexternalMemoryFeaturesfield.VkImageFormatPropertiesimageFormatProperties()Returns aVkImageFormatPropertiesview of theimageFormatPropertiesfield.static VkExternalImageFormatPropertiesNVmalloc()Returns a newVkExternalImageFormatPropertiesNVinstance allocated withmemAlloc.static VkExternalImageFormatPropertiesNV.Buffermalloc(int capacity)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated withmemAlloc.static VkExternalImageFormatPropertiesNVmallocStack()Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the thread-localMemoryStack.static VkExternalImageFormatPropertiesNV.BuffermallocStack(int capacity)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the thread-localMemoryStack.static VkExternalImageFormatPropertiesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkExternalImageFormatPropertiesNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the specifiedMemoryStack.static intncompatibleHandleTypes(long struct)Unsafe version ofcompatibleHandleTypes().static intnexportFromImportedHandleTypes(long struct)Unsafe version ofexportFromImportedHandleTypes().static intnexternalMemoryFeatures(long struct)Unsafe version ofexternalMemoryFeatures().static VkImageFormatPropertiesnimageFormatProperties(long struct)Unsafe version ofimageFormatProperties().intsizeof()
-
-
-
Constructor Detail
-
VkExternalImageFormatPropertiesNV
public VkExternalImageFormatPropertiesNV(java.nio.ByteBuffer container)
Creates aVkExternalImageFormatPropertiesNVinstance 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
-
imageFormatProperties
public VkImageFormatProperties imageFormatProperties()
Returns aVkImageFormatPropertiesview of theimageFormatPropertiesfield.
-
externalMemoryFeatures
public int externalMemoryFeatures()
Returns the value of theexternalMemoryFeaturesfield.
-
exportFromImportedHandleTypes
public int exportFromImportedHandleTypes()
Returns the value of theexportFromImportedHandleTypesfield.
-
compatibleHandleTypes
public int compatibleHandleTypes()
Returns the value of thecompatibleHandleTypesfield.
-
malloc
public static VkExternalImageFormatPropertiesNV malloc()
Returns a newVkExternalImageFormatPropertiesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkExternalImageFormatPropertiesNV calloc()
Returns a newVkExternalImageFormatPropertiesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkExternalImageFormatPropertiesNV create()
Returns a newVkExternalImageFormatPropertiesNVinstance allocated withBufferUtils.
-
create
public static VkExternalImageFormatPropertiesNV create(long address)
Returns a newVkExternalImageFormatPropertiesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkExternalImageFormatPropertiesNV createSafe(long address)
-
malloc
public static VkExternalImageFormatPropertiesNV.Buffer malloc(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkExternalImageFormatPropertiesNV.Buffer calloc(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalImageFormatPropertiesNV.Buffer create(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkExternalImageFormatPropertiesNV.Buffer create(long address, int capacity)
Create aVkExternalImageFormatPropertiesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkExternalImageFormatPropertiesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkExternalImageFormatPropertiesNV mallocStack()
Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkExternalImageFormatPropertiesNV callocStack()
Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkExternalImageFormatPropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkExternalImageFormatPropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkExternalImageFormatPropertiesNV.Buffer mallocStack(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkExternalImageFormatPropertiesNV.Buffer callocStack(int capacity)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkExternalImageFormatPropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkExternalImageFormatPropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkExternalImageFormatPropertiesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nimageFormatProperties
public static VkImageFormatProperties nimageFormatProperties(long struct)
Unsafe version ofimageFormatProperties().
-
nexternalMemoryFeatures
public static int nexternalMemoryFeatures(long struct)
Unsafe version ofexternalMemoryFeatures().
-
nexportFromImportedHandleTypes
public static int nexportFromImportedHandleTypes(long struct)
Unsafe version ofexportFromImportedHandleTypes().
-
ncompatibleHandleTypes
public static int ncompatibleHandleTypes(long struct)
Unsafe version ofcompatibleHandleTypes().
-
-