Package org.lwjgl.vulkan
Class VkImageFormatProperties2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageFormatProperties2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkImageFormatProperties2KHR
public class VkImageFormatProperties2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an image format properties.Description
If the combination of parameters to
vkGetPhysicalDeviceImageFormatProperties2is not supported by the implementation for use inCreateImage, then all members ofimageFormatPropertieswill be filled with zero.Note
Filling
imageFormatPropertieswith zero for unsupported formats is an exception to the usual rule that output structures have undefined contents on error. This exception was unintentional, but is preserved for backwards compatibility. This exeption only applies toimageFormatProperties, notsType,pNext, or any structures chained frompNext.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkExternalImageFormatProperties,VkFilterCubicImageViewImageFormatPropertiesEXT,VkSamplerYcbcrConversionImageFormatProperties, orVkTextureLODGatherFormatPropertiesAMD - The
sTypevalue of each struct in thepNextchain must be unique
See Also
VkImageFormatProperties,GetPhysicalDeviceImageFormatProperties2,GetPhysicalDeviceImageFormatProperties2KHRLayout
struct VkImageFormatProperties2 { VkStructureTypesType(); void *pNext();VkImageFormatPropertiesimageFormatProperties(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageFormatProperties2.BufferAn array ofVkImageFormatProperties2structs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intIMAGEFORMATPROPERTIES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageFormatProperties2(java.nio.ByteBuffer container)Creates aVkImageFormatProperties2instance 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 VkImageFormatProperties2calloc()Returns a newVkImageFormatProperties2instance allocated withmemCalloc.static VkImageFormatProperties2.Buffercalloc(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated withmemCalloc.static VkImageFormatProperties2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatProperties2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatProperties2callocStack()Deprecated.static VkImageFormatProperties2.BuffercallocStack(int capacity)Deprecated.static VkImageFormatProperties2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageFormatProperties2callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageFormatProperties2create()Returns a newVkImageFormatProperties2instance allocated withBufferUtils.static VkImageFormatProperties2.Buffercreate(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated withBufferUtils.static VkImageFormatProperties2create(long address)Returns a newVkImageFormatProperties2instance for the specified memory address.static VkImageFormatProperties2.Buffercreate(long address, int capacity)Create aVkImageFormatProperties2.Bufferinstance at the specified memory.static VkImageFormatProperties2createSafe(long address)static VkImageFormatProperties2.BuffercreateSafe(long address, int capacity)VkImageFormatPropertiesimageFormatProperties()aVkImageFormatPropertiesstructure in which capabilities are returned.static VkImageFormatProperties2malloc()Returns a newVkImageFormatProperties2instance allocated withmemAlloc.static VkImageFormatProperties2.Buffermalloc(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated withmemAlloc.static VkImageFormatProperties2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2.Bufferinstance allocated on the specifiedMemoryStack.static VkImageFormatProperties2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStack.static VkImageFormatProperties2mallocStack()Deprecated.static VkImageFormatProperties2.BuffermallocStack(int capacity)Deprecated.static VkImageFormatProperties2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageFormatProperties2mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageFormatPropertiesnimageFormatProperties(long struct)Unsafe version ofimageFormatProperties().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.longpNext()NULLor a pointer to a structure extending this structure.VkImageFormatProperties2pNext(long value)Sets the specified value to thepNext()field.VkImageFormatProperties2pNext(VkExternalImageFormatProperties value)Prepends the specifiedVkExternalImageFormatPropertiesvalue to thepNextchain.VkImageFormatProperties2pNext(VkExternalImageFormatPropertiesKHR value)Prepends the specifiedVkExternalImageFormatPropertiesKHRvalue to thepNextchain.VkImageFormatProperties2pNext(VkFilterCubicImageViewImageFormatPropertiesEXT value)Prepends the specifiedVkFilterCubicImageViewImageFormatPropertiesEXTvalue to thepNextchain.VkImageFormatProperties2pNext(VkSamplerYcbcrConversionImageFormatProperties value)Prepends the specifiedVkSamplerYcbcrConversionImageFormatPropertiesvalue to thepNextchain.VkImageFormatProperties2pNext(VkSamplerYcbcrConversionImageFormatPropertiesKHR value)Prepends the specifiedVkSamplerYcbcrConversionImageFormatPropertiesKHRvalue to thepNextchain.VkImageFormatProperties2pNext(VkTextureLODGatherFormatPropertiesAMD value)Prepends the specifiedVkTextureLODGatherFormatPropertiesAMDvalue to thepNextchain.VkImageFormatProperties2set(int sType, long pNext)Initializes this struct with the specified values.VkImageFormatProperties2set(VkImageFormatProperties2 src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkImageFormatProperties2sType(int value)Sets the specified value to thesType()field.VkImageFormatProperties2sType$Default()Sets theSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2value to thesType()field.
-
-
-
Constructor Detail
-
VkImageFormatProperties2
public VkImageFormatProperties2(java.nio.ByteBuffer container)
Creates aVkImageFormatProperties2instance 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 ofVkImageFormatProperties2is used to allow the specification of additional capabilities to be returned fromvkGetPhysicalDeviceImageFormatProperties2.
-
imageFormatProperties
public VkImageFormatProperties imageFormatProperties()
aVkImageFormatPropertiesstructure in which capabilities are returned.
-
sType
public VkImageFormatProperties2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImageFormatProperties2 sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2value to thesType()field.
-
pNext
public VkImageFormatProperties2 pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkImageFormatProperties2 pNext(VkExternalImageFormatProperties value)
Prepends the specifiedVkExternalImageFormatPropertiesvalue to thepNextchain.
-
pNext
public VkImageFormatProperties2 pNext(VkExternalImageFormatPropertiesKHR value)
Prepends the specifiedVkExternalImageFormatPropertiesKHRvalue to thepNextchain.
-
pNext
public VkImageFormatProperties2 pNext(VkFilterCubicImageViewImageFormatPropertiesEXT value)
Prepends the specifiedVkFilterCubicImageViewImageFormatPropertiesEXTvalue to thepNextchain.
-
pNext
public VkImageFormatProperties2 pNext(VkSamplerYcbcrConversionImageFormatProperties value)
Prepends the specifiedVkSamplerYcbcrConversionImageFormatPropertiesvalue to thepNextchain.
-
pNext
public VkImageFormatProperties2 pNext(VkSamplerYcbcrConversionImageFormatPropertiesKHR value)
Prepends the specifiedVkSamplerYcbcrConversionImageFormatPropertiesKHRvalue to thepNextchain.
-
pNext
public VkImageFormatProperties2 pNext(VkTextureLODGatherFormatPropertiesAMD value)
Prepends the specifiedVkTextureLODGatherFormatPropertiesAMDvalue to thepNextchain.
-
set
public VkImageFormatProperties2 set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkImageFormatProperties2 set(VkImageFormatProperties2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageFormatProperties2 malloc()
Returns a newVkImageFormatProperties2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageFormatProperties2 calloc()
Returns a newVkImageFormatProperties2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageFormatProperties2 create()
Returns a newVkImageFormatProperties2instance allocated withBufferUtils.
-
create
public static VkImageFormatProperties2 create(long address)
Returns a newVkImageFormatProperties2instance for the specified memory address.
-
createSafe
@Nullable public static VkImageFormatProperties2 createSafe(long address)
-
malloc
public static VkImageFormatProperties2.Buffer malloc(int capacity)
Returns a newVkImageFormatProperties2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageFormatProperties2.Buffer calloc(int capacity)
Returns a newVkImageFormatProperties2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageFormatProperties2.Buffer create(int capacity)
Returns a newVkImageFormatProperties2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageFormatProperties2.Buffer create(long address, int capacity)
Create aVkImageFormatProperties2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageFormatProperties2.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImageFormatProperties2 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageFormatProperties2 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageFormatProperties2 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageFormatProperties2 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageFormatProperties2.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageFormatProperties2.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageFormatProperties2.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 VkImageFormatProperties2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageFormatProperties2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageFormatProperties2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageFormatProperties2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatProperties2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageFormatProperties2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatProperties2.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().
-
nimageFormatProperties
public static VkImageFormatProperties nimageFormatProperties(long struct)
Unsafe version ofimageFormatProperties().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-