Package org.lwjgl.vulkan
Class VkImageViewUsageCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageViewUsageCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkImageViewUsageCreateInfoKHR
public class VkImageViewUsageCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify the intended usage of an image view.Description
When this structure is chained to
VkImageViewCreateInfotheusagefield overrides the implicitusageparameter inherited from image creation time and its value is used instead for the purposes of determining the valid usage conditions ofVkImageViewCreateInfo.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFOusagemust be a valid combination ofVkImageUsageFlagBitsvaluesusagemust not be 0
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.usage– a bitmask describing the allowed usages of the image view. SeeVkImageUsageFlagBitsfor a description of the supported bits.
Layout
struct VkImageViewUsageCreateInfo { VkStructureType sType; void const * pNext; VkImageUsageFlags usage; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageViewUsageCreateInfo.BufferAn array ofVkImageViewUsageCreateInfostructs.
-
Constructor Summary
Constructors Constructor Description VkImageViewUsageCreateInfo(java.nio.ByteBuffer container)Creates aVkImageViewUsageCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageViewUsageCreateInfocalloc()Returns a newVkImageViewUsageCreateInfoinstance allocated withmemCalloc.static VkImageViewUsageCreateInfo.Buffercalloc(int capacity)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated withmemCalloc.static VkImageViewUsageCreateInfocallocStack()Returns a newVkImageViewUsageCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfo.BuffercallocStack(int capacity)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfocreate()Returns a newVkImageViewUsageCreateInfoinstance allocated withBufferUtils.static VkImageViewUsageCreateInfo.Buffercreate(int capacity)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated withBufferUtils.static VkImageViewUsageCreateInfocreate(long address)Returns a newVkImageViewUsageCreateInfoinstance for the specified memory address.static VkImageViewUsageCreateInfo.Buffercreate(long address, int capacity)Create aVkImageViewUsageCreateInfo.Bufferinstance at the specified memory.static VkImageViewUsageCreateInfocreateSafe(long address)static VkImageViewUsageCreateInfo.BuffercreateSafe(long address, int capacity)static VkImageViewUsageCreateInfomalloc()Returns a newVkImageViewUsageCreateInfoinstance allocated withmemAlloc.static VkImageViewUsageCreateInfo.Buffermalloc(int capacity)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated withmemAlloc.static VkImageViewUsageCreateInfomallocStack()Returns a newVkImageViewUsageCreateInfoinstance allocated on the thread-localMemoryStack.static VkImageViewUsageCreateInfo.BuffermallocStack(int capacity)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkImageViewUsageCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewUsageCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStack.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 intnusage(long struct)Unsafe version ofusage().static voidnusage(long struct, int value)Unsafe version ofusage.longpNext()Returns the value of thepNextfield.VkImageViewUsageCreateInfopNext(long value)Sets the specified value to thepNextfield.VkImageViewUsageCreateInfoset(int sType, long pNext, int usage)Initializes this struct with the specified values.VkImageViewUsageCreateInfoset(VkImageViewUsageCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkImageViewUsageCreateInfosType(int value)Sets the specified value to thesTypefield.intusage()Returns the value of theusagefield.VkImageViewUsageCreateInfousage(int value)Sets the specified value to theusagefield.
-
-
-
Constructor Detail
-
VkImageViewUsageCreateInfo
public VkImageViewUsageCreateInfo(java.nio.ByteBuffer container)
Creates aVkImageViewUsageCreateInfoinstance 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.
-
usage
public int usage()
Returns the value of theusagefield.
-
sType
public VkImageViewUsageCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageViewUsageCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
usage
public VkImageViewUsageCreateInfo usage(int value)
Sets the specified value to theusagefield.
-
set
public VkImageViewUsageCreateInfo set(int sType, long pNext, int usage)
Initializes this struct with the specified values.
-
set
public VkImageViewUsageCreateInfo set(VkImageViewUsageCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageViewUsageCreateInfo malloc()
Returns a newVkImageViewUsageCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageViewUsageCreateInfo calloc()
Returns a newVkImageViewUsageCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageViewUsageCreateInfo create()
Returns a newVkImageViewUsageCreateInfoinstance allocated withBufferUtils.
-
create
public static VkImageViewUsageCreateInfo create(long address)
Returns a newVkImageViewUsageCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewUsageCreateInfo createSafe(long address)
-
malloc
public static VkImageViewUsageCreateInfo.Buffer malloc(int capacity)
Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageViewUsageCreateInfo.Buffer calloc(int capacity)
Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewUsageCreateInfo.Buffer create(int capacity)
Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewUsageCreateInfo.Buffer create(long address, int capacity)
Create aVkImageViewUsageCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageViewUsageCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageViewUsageCreateInfo mallocStack()
Returns a newVkImageViewUsageCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageViewUsageCreateInfo callocStack()
Returns a newVkImageViewUsageCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageViewUsageCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageViewUsageCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageViewUsageCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageViewUsageCreateInfo.Buffer callocStack(int capacity)
Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageViewUsageCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageViewUsageCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfo.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().
-
nusage
public static int nusage(long struct)
Unsafe version ofusage().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nusage
public static void nusage(long struct, int value)Unsafe version ofusage.
-
-