Package org.lwjgl.vulkan
Class VkImageViewUsageCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageViewUsageCreateInfo
-
- org.lwjgl.vulkan.VkImageViewUsageCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageViewUsageCreateInfoKHR extends VkImageViewUsageCreateInfo
SeeVkImageViewUsageCreateInfo.Layout
struct VkImageViewUsageCreateInfoKHR { VkStructureType sType; void const * pNext; VkImageUsageFlags usage; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageViewUsageCreateInfoKHR.BufferAn array ofVkImageViewUsageCreateInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkImageViewUsageCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkImageViewUsageCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageViewUsageCreateInfoKHRcalloc()Returns a newVkImageViewUsageCreateInfoKHRinstance allocated withmemCalloc.static VkImageViewUsageCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkImageViewUsageCreateInfoKHRcallocStack()Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewUsageCreateInfoKHRcreate()Returns a newVkImageViewUsageCreateInfoKHRinstance allocated withBufferUtils.static VkImageViewUsageCreateInfoKHR.Buffercreate(int capacity)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkImageViewUsageCreateInfoKHRcreate(long address)Returns a newVkImageViewUsageCreateInfoKHRinstance for the specified memory address.static VkImageViewUsageCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkImageViewUsageCreateInfoKHR.Bufferinstance at the specified memory.static VkImageViewUsageCreateInfoKHRcreateSafe(long address)static VkImageViewUsageCreateInfoKHR.BuffercreateSafe(long address, int capacity)static VkImageViewUsageCreateInfoKHRmalloc()Returns a newVkImageViewUsageCreateInfoKHRinstance allocated withmemAlloc.static VkImageViewUsageCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkImageViewUsageCreateInfoKHRmallocStack()Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkImageViewUsageCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkImageViewUsageCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewUsageCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the specifiedMemoryStack.VkImageViewUsageCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkImageViewUsageCreateInfoKHRset(int sType, long pNext, int usage)Initializes this struct with the specified values.VkImageViewUsageCreateInfoKHRset(VkImageViewUsageCreateInfoKHR src)Copies the specified struct data to this struct.VkImageViewUsageCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.VkImageViewUsageCreateInfoKHRusage(int value)Sets the specified value to theusagefield.
-
-
-
Constructor Detail
-
VkImageViewUsageCreateInfoKHR
public VkImageViewUsageCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageViewUsageCreateInfoKHRinstance 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
-
sType
public VkImageViewUsageCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkImageViewUsageCreateInfo
-
pNext
public VkImageViewUsageCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkImageViewUsageCreateInfo
-
usage
public VkImageViewUsageCreateInfoKHR usage(int value)
Sets the specified value to theusagefield.- Overrides:
usagein classVkImageViewUsageCreateInfo
-
set
public VkImageViewUsageCreateInfoKHR set(int sType, long pNext, int usage)
Initializes this struct with the specified values.- Overrides:
setin classVkImageViewUsageCreateInfo
-
set
public VkImageViewUsageCreateInfoKHR set(VkImageViewUsageCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageViewUsageCreateInfoKHR malloc()
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageViewUsageCreateInfoKHR calloc()
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageViewUsageCreateInfoKHR create()
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkImageViewUsageCreateInfoKHR create(long address)
Returns a newVkImageViewUsageCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewUsageCreateInfoKHR createSafe(long address)
-
malloc
public static VkImageViewUsageCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageViewUsageCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewUsageCreateInfoKHR.Buffer create(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewUsageCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkImageViewUsageCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageViewUsageCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageViewUsageCreateInfoKHR mallocStack()
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageViewUsageCreateInfoKHR callocStack()
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageViewUsageCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageViewUsageCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageViewUsageCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageViewUsageCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageViewUsageCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageViewUsageCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-