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
Layout
struct VkImageViewUsageCreateInfo { VkStructureTypesType(); void const *pNext(); VkImageUsageFlagsusage(); }
-
-
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 Deprecated 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 VkImageViewUsageCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfocallocStack()Deprecated.static VkImageViewUsageCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkImageViewUsageCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewUsageCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkImageViewUsageCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewUsageCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStack.static VkImageViewUsageCreateInfomallocStack()Deprecated.static VkImageViewUsageCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkImageViewUsageCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewUsageCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkImageViewUsageCreateInfopNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkImageViewUsageCreateInfosType(int value)Sets the specified value to thesType()field.VkImageViewUsageCreateInfosType$Default()Sets theSTRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFOvalue to thesType()field.intusage()a bitmask ofVkImageUsageFlagBitsspecifying allowed usages of the image view.VkImageViewUsageCreateInfousage(int value)Sets the specified value to theusage()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
usage
public int usage()
a bitmask ofVkImageUsageFlagBitsspecifying allowed usages of the image view.
-
sType
public VkImageViewUsageCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImageViewUsageCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkImageViewUsageCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
usage
public VkImageViewUsageCreateInfo usage(int value)
Sets the specified value to theusage()field.
-
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
@Deprecated public static VkImageViewUsageCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewUsageCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewUsageCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewUsageCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewUsageCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewUsageCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewUsageCreateInfo.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 VkImageViewUsageCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageViewUsageCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageViewUsageCreateInfo calloc(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
-
malloc
public static VkImageViewUsageCreateInfo.Buffer malloc(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
-
calloc
public static VkImageViewUsageCreateInfo.Buffer calloc(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.
-
-