Package org.lwjgl.vulkan
Class VkImageFormatListCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageFormatListCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageFormatListCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify that an image can be used with a particular set of formats.Description
If
viewFormatCountis zero,pViewFormatsis ignored and the image is created as if theVkImageFormatListCreateInfoKHRstructure were not included in thepNextlist ofVkImageCreateInfo.Valid Usage
- If
viewFormatCountis not 0, all of the formats in thepViewFormatsarray must be compatible with the format specified in theformatfield ofVkImageCreateInfo, as described in the compatibility table. - If
VkImageCreateInfo::flagsdoes not containIMAGE_CREATE_MUTABLE_FORMAT_BIT,viewFormatCountmust be 0 or 1. - If
viewFormatCountis not 0,VkImageCreateInfo::formatmust be inpViewFormats.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR- If
viewFormatCountis not 0,pViewFormatsmust be a valid pointer to an array ofviewFormatCountvalidVkFormatvalues
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.viewFormatCount– the number of entries in thepViewFormatsarray.pViewFormats– an array which lists of all formats which can be used when creating views of this image.
Layout
struct VkImageFormatListCreateInfoKHR { VkStructureType sType; void const * pNext; uint32_t viewFormatCount; VkFormat const * pViewFormats; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageFormatListCreateInfoKHR.BufferAn array ofVkImageFormatListCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PVIEWFORMATSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIEWFORMATCOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageFormatListCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkImageFormatListCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageFormatListCreateInfoKHRcalloc()Returns a newVkImageFormatListCreateInfoKHRinstance allocated withmemCalloc.static VkImageFormatListCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkImageFormatListCreateInfoKHRcallocStack()Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageFormatListCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageFormatListCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatListCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageFormatListCreateInfoKHRcreate()Returns a newVkImageFormatListCreateInfoKHRinstance allocated withBufferUtils.static VkImageFormatListCreateInfoKHR.Buffercreate(int capacity)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkImageFormatListCreateInfoKHRcreate(long address)Returns a newVkImageFormatListCreateInfoKHRinstance for the specified memory address.static VkImageFormatListCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkImageFormatListCreateInfoKHR.Bufferinstance at the specified memory.static VkImageFormatListCreateInfoKHRcreateSafe(long address)static VkImageFormatListCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkImageFormatListCreateInfoKHRmalloc()Returns a newVkImageFormatListCreateInfoKHRinstance allocated withmemAlloc.static VkImageFormatListCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkImageFormatListCreateInfoKHRmallocStack()Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkImageFormatListCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkImageFormatListCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageFormatListCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.IntBuffernpViewFormats(long struct)Unsafe version ofpViewFormats.static voidnpViewFormats(long struct, java.nio.IntBuffer value)Unsafe version ofpViewFormats.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnviewFormatCount(long struct)Unsafe version ofviewFormatCount().static voidnviewFormatCount(long struct, int value)Sets the specified value to theviewFormatCountfield of the specifiedstruct.longpNext()Returns the value of thepNextfield.VkImageFormatListCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.java.nio.IntBufferpViewFormats()Returns aIntBufferview of the data pointed to by thepViewFormatsfield.VkImageFormatListCreateInfoKHRpViewFormats(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepViewFormatsfield.VkImageFormatListCreateInfoKHRset(int sType, long pNext, java.nio.IntBuffer pViewFormats)Initializes this struct with the specified values.VkImageFormatListCreateInfoKHRset(VkImageFormatListCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkImageFormatListCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.intviewFormatCount()Returns the value of theviewFormatCountfield.
-
-
-
Constructor Detail
-
VkImageFormatListCreateInfoKHR
public VkImageFormatListCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageFormatListCreateInfoKHRinstance 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.
-
viewFormatCount
public int viewFormatCount()
Returns the value of theviewFormatCountfield.
-
pViewFormats
@Nullable public java.nio.IntBuffer pViewFormats()
Returns aIntBufferview of the data pointed to by thepViewFormatsfield.
-
sType
public VkImageFormatListCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageFormatListCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
pViewFormats
public VkImageFormatListCreateInfoKHR pViewFormats(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepViewFormatsfield.
-
set
public VkImageFormatListCreateInfoKHR set(int sType, long pNext, @Nullable java.nio.IntBuffer pViewFormats)
Initializes this struct with the specified values.
-
set
public VkImageFormatListCreateInfoKHR set(VkImageFormatListCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageFormatListCreateInfoKHR malloc()
Returns a newVkImageFormatListCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageFormatListCreateInfoKHR calloc()
Returns a newVkImageFormatListCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageFormatListCreateInfoKHR create()
Returns a newVkImageFormatListCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkImageFormatListCreateInfoKHR create(long address)
Returns a newVkImageFormatListCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageFormatListCreateInfoKHR createSafe(long address)
-
malloc
public static VkImageFormatListCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageFormatListCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageFormatListCreateInfoKHR.Buffer create(int capacity)
Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageFormatListCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkImageFormatListCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageFormatListCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageFormatListCreateInfoKHR mallocStack()
Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageFormatListCreateInfoKHR callocStack()
Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageFormatListCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageFormatListCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatListCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageFormatListCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageFormatListCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageFormatListCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatListCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageFormatListCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageFormatListCreateInfoKHR.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().
-
nviewFormatCount
public static int nviewFormatCount(long struct)
Unsafe version ofviewFormatCount().
-
npViewFormats
@Nullable public static java.nio.IntBuffer npViewFormats(long struct)
Unsafe version ofpViewFormats.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nviewFormatCount
public static void nviewFormatCount(long struct, int value)Sets the specified value to theviewFormatCountfield of the specifiedstruct.
-
npViewFormats
public static void npViewFormats(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpViewFormats.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-