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 - Each
sTypemember in thepNextchain must be unique
See Also
VkImageFormatProperties,GetPhysicalDeviceImageFormatProperties2,GetPhysicalDeviceImageFormatProperties2KHRMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure. ThepNextchain ofVkImageFormatProperties2is used to allow the specification of additional capabilities to be returned fromvkGetPhysicalDeviceImageFormatProperties2.imageFormatProperties– an instance of aVkImageFormatPropertiesstructure in which capabilities are returned.
Layout
struct VkImageFormatProperties2 { VkStructureType sType; 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 Modifier and Type Method Description static VkImageFormatProperties2calloc()Returns a newVkImageFormatProperties2instance allocated withmemCalloc.static VkImageFormatProperties2.Buffercalloc(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated withmemCalloc.static VkImageFormatProperties2callocStack()Returns a newVkImageFormatProperties2instance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageFormatProperties2.BuffercallocStack(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageFormatProperties2.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatProperties2callocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aVkImageFormatPropertiesview of theimageFormatPropertiesfield.static VkImageFormatProperties2malloc()Returns a newVkImageFormatProperties2instance allocated withmemAlloc.static VkImageFormatProperties2.Buffermalloc(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated withmemAlloc.static VkImageFormatProperties2mallocStack()Returns a newVkImageFormatProperties2instance allocated on the thread-localMemoryStack.static VkImageFormatProperties2.BuffermallocStack(int capacity)Returns a newVkImageFormatProperties2.Bufferinstance allocated on the thread-localMemoryStack.static VkImageFormatProperties2.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2.Bufferinstance allocated on the specifiedMemoryStack.static VkImageFormatProperties2mallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkImageFormatProperties2pNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkImageFormatProperties2sType(int value)Sets the specified value to thesTypefield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
imageFormatProperties
public VkImageFormatProperties imageFormatProperties()
Returns aVkImageFormatPropertiesview of theimageFormatPropertiesfield.
-
sType
public VkImageFormatProperties2 sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageFormatProperties2 pNext(long value)
Sets the specified value to thepNextfield.
-
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
public static VkImageFormatProperties2 mallocStack()
Returns a newVkImageFormatProperties2instance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageFormatProperties2 callocStack()
Returns a newVkImageFormatProperties2instance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageFormatProperties2 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatProperties2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageFormatProperties2 callocStack(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
-
mallocStack
public static VkImageFormatProperties2.Buffer mallocStack(int capacity)
Returns a newVkImageFormatProperties2.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageFormatProperties2.Buffer callocStack(int capacity)
Returns a newVkImageFormatProperties2.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageFormatProperties2.Buffer mallocStack(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
-
callocStack
public static VkImageFormatProperties2.Buffer callocStack(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.
-
-