Package org.lwjgl.vulkan
Class VkPhysicalDeviceImageFormatInfo2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceImageFormatInfo2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceImageFormatInfo2KHR
public class VkPhysicalDeviceImageFormatInfo2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying image creation parameters.Description
The members of
VkPhysicalDeviceImageFormatInfo2correspond to the arguments toGetPhysicalDeviceImageFormatProperties, withsTypeandpNextadded for extensibility.Valid Usage
tilingmust beIMAGE_TILING_DRM_FORMAT_MODIFIER_EXTif and only if thepNextchain includesVkPhysicalDeviceImageDrmFormatModifierInfoEXT- If
tilingisIMAGE_TILING_DRM_FORMAT_MODIFIER_EXTandflagscontainsIMAGE_CREATE_MUTABLE_FORMAT_BIT, then thepNextchain must include aVkImageFormatListCreateInfostructure with non-zeroviewFormatCount
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkImageFormatListCreateInfo,VkImageStencilUsageCreateInfo,VkPhysicalDeviceExternalImageFormatInfo,VkPhysicalDeviceImageDrmFormatModifierInfoEXT, orVkPhysicalDeviceImageViewImageFormatInfoEXT - The
sTypevalue of each struct in thepNextchain must be unique formatmust be a validVkFormatvaluetypemust be a validVkImageTypevaluetilingmust be a validVkImageTilingvalueusagemust be a valid combination ofVkImageUsageFlagBitsvaluesusagemust not be 0flagsmust be a valid combination ofVkImageCreateFlagBitsvalues
See Also
GetPhysicalDeviceImageFormatProperties2,GetPhysicalDeviceImageFormatProperties2KHRLayout
struct VkPhysicalDeviceImageFormatInfo2 { VkStructureTypesType(); void const *pNext(); VkFormatformat(); VkImageTypetype(); VkImageTilingtiling(); VkImageUsageFlagsusage(); VkImageCreateFlagsflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceImageFormatInfo2.BufferAn array ofVkPhysicalDeviceImageFormatInfo2structs.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceImageFormatInfo2(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceImageFormatInfo2instance 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 VkPhysicalDeviceImageFormatInfo2calloc()Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated withmemCalloc.static VkPhysicalDeviceImageFormatInfo2.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceImageFormatInfo2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceImageFormatInfo2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceImageFormatInfo2callocStack()Deprecated.static VkPhysicalDeviceImageFormatInfo2.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceImageFormatInfo2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceImageFormatInfo2callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceImageFormatInfo2create()Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated withBufferUtils.static VkPhysicalDeviceImageFormatInfo2.Buffercreate(int capacity)Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceImageFormatInfo2create(long address)Returns a newVkPhysicalDeviceImageFormatInfo2instance for the specified memory address.static VkPhysicalDeviceImageFormatInfo2.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceImageFormatInfo2.Bufferinstance at the specified memory.static VkPhysicalDeviceImageFormatInfo2createSafe(long address)static VkPhysicalDeviceImageFormatInfo2.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkImageCreateFlagBitsindicating additional parameters of the image, corresponding toVkImageCreateInfo::flags.VkPhysicalDeviceImageFormatInfo2flags(int value)Sets the specified value to theflags()field.intformat()VkPhysicalDeviceImageFormatInfo2format(int value)Sets the specified value to theformat()field.static VkPhysicalDeviceImageFormatInfo2malloc()Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated withmemAlloc.static VkPhysicalDeviceImageFormatInfo2.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceImageFormatInfo2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceImageFormatInfo2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated on the specifiedMemoryStack.static VkPhysicalDeviceImageFormatInfo2mallocStack()Deprecated.static VkPhysicalDeviceImageFormatInfo2.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceImageFormatInfo2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceImageFormatInfo2mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnformat(long struct)Unsafe version offormat().static voidnformat(long struct, int value)Unsafe version offormat.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 intntiling(long struct)Unsafe version oftiling().static voidntiling(long struct, int value)Unsafe version oftiling.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.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.VkPhysicalDeviceImageFormatInfo2pNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceImageFormatInfo2pNext(VkImageFormatListCreateInfo value)Prepends the specifiedVkImageFormatListCreateInfovalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkImageFormatListCreateInfoKHR value)Prepends the specifiedVkImageFormatListCreateInfoKHRvalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkImageStencilUsageCreateInfo value)Prepends the specifiedVkImageStencilUsageCreateInfovalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkImageStencilUsageCreateInfoEXT value)Prepends the specifiedVkImageStencilUsageCreateInfoEXTvalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkPhysicalDeviceExternalImageFormatInfo value)Prepends the specifiedVkPhysicalDeviceExternalImageFormatInfovalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkPhysicalDeviceExternalImageFormatInfoKHR value)Prepends the specifiedVkPhysicalDeviceExternalImageFormatInfoKHRvalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkPhysicalDeviceImageDrmFormatModifierInfoEXT value)Prepends the specifiedVkPhysicalDeviceImageDrmFormatModifierInfoEXTvalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2pNext(VkPhysicalDeviceImageViewImageFormatInfoEXT value)Prepends the specifiedVkPhysicalDeviceImageViewImageFormatInfoEXTvalue to thepNextchain.VkPhysicalDeviceImageFormatInfo2set(int sType, long pNext, int format, int type, int tiling, int usage, int flags)Initializes this struct with the specified values.VkPhysicalDeviceImageFormatInfo2set(VkPhysicalDeviceImageFormatInfo2 src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceImageFormatInfo2sType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceImageFormatInfo2sType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2value to thesType()field.inttiling()VkPhysicalDeviceImageFormatInfo2tiling(int value)Sets the specified value to thetiling()field.inttype()VkPhysicalDeviceImageFormatInfo2type(int value)Sets the specified value to thetype()field.intusage()a bitmask ofVkImageUsageFlagBitsindicating the intended usage of the image, corresponding toVkImageCreateInfo::usage.VkPhysicalDeviceImageFormatInfo2usage(int value)Sets the specified value to theusage()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceImageFormatInfo2
public VkPhysicalDeviceImageFormatInfo2(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceImageFormatInfo2instance 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. ThepNextchain ofVkPhysicalDeviceImageFormatInfo2is used to provide additional image parameters tovkGetPhysicalDeviceImageFormatProperties2.
-
format
public int format()
-
type
public int type()
-
tiling
public int tiling()
-
usage
public int usage()
a bitmask ofVkImageUsageFlagBitsindicating the intended usage of the image, corresponding toVkImageCreateInfo::usage.
-
flags
public int flags()
a bitmask ofVkImageCreateFlagBitsindicating additional parameters of the image, corresponding toVkImageCreateInfo::flags.
-
sType
public VkPhysicalDeviceImageFormatInfo2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceImageFormatInfo2 sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2value to thesType()field.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkImageFormatListCreateInfo value)
Prepends the specifiedVkImageFormatListCreateInfovalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkImageFormatListCreateInfoKHR value)
Prepends the specifiedVkImageFormatListCreateInfoKHRvalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkImageStencilUsageCreateInfo value)
Prepends the specifiedVkImageStencilUsageCreateInfovalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkImageStencilUsageCreateInfoEXT value)
Prepends the specifiedVkImageStencilUsageCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkPhysicalDeviceExternalImageFormatInfo value)
Prepends the specifiedVkPhysicalDeviceExternalImageFormatInfovalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkPhysicalDeviceExternalImageFormatInfoKHR value)
Prepends the specifiedVkPhysicalDeviceExternalImageFormatInfoKHRvalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkPhysicalDeviceImageDrmFormatModifierInfoEXT value)
Prepends the specifiedVkPhysicalDeviceImageDrmFormatModifierInfoEXTvalue to thepNextchain.
-
pNext
public VkPhysicalDeviceImageFormatInfo2 pNext(VkPhysicalDeviceImageViewImageFormatInfoEXT value)
Prepends the specifiedVkPhysicalDeviceImageViewImageFormatInfoEXTvalue to thepNextchain.
-
format
public VkPhysicalDeviceImageFormatInfo2 format(int value)
Sets the specified value to theformat()field.
-
type
public VkPhysicalDeviceImageFormatInfo2 type(int value)
Sets the specified value to thetype()field.
-
tiling
public VkPhysicalDeviceImageFormatInfo2 tiling(int value)
Sets the specified value to thetiling()field.
-
usage
public VkPhysicalDeviceImageFormatInfo2 usage(int value)
Sets the specified value to theusage()field.
-
flags
public VkPhysicalDeviceImageFormatInfo2 flags(int value)
Sets the specified value to theflags()field.
-
set
public VkPhysicalDeviceImageFormatInfo2 set(int sType, long pNext, int format, int type, int tiling, int usage, int flags)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceImageFormatInfo2 set(VkPhysicalDeviceImageFormatInfo2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceImageFormatInfo2 malloc()
Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceImageFormatInfo2 calloc()
Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceImageFormatInfo2 create()
Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceImageFormatInfo2 create(long address)
Returns a newVkPhysicalDeviceImageFormatInfo2instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceImageFormatInfo2 createSafe(long address)
-
malloc
public static VkPhysicalDeviceImageFormatInfo2.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceImageFormatInfo2.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceImageFormatInfo2.Buffer create(int capacity)
Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceImageFormatInfo2.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceImageFormatInfo2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceImageFormatInfo2.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceImageFormatInfo2.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 VkPhysicalDeviceImageFormatInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceImageFormatInfo2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceImageFormatInfo2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageFormatInfo2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceImageFormatInfo2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageFormatInfo2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceImageFormatInfo2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageFormatInfo2.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().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
ntiling
public static int ntiling(long struct)
Unsafe version oftiling().
-
nusage
public static int nusage(long struct)
Unsafe version ofusage().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nformat
public static void nformat(long struct, int value)Unsafe version offormat.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
ntiling
public static void ntiling(long struct, int value)Unsafe version oftiling.
-
nusage
public static void nusage(long struct, int value)Unsafe version ofusage.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
-