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 class
VkImageViewUsageCreateInfoKHR.Buffer
An array ofVkImageViewUsageCreateInfoKHR
structs.
-
Constructor Summary
Constructors Constructor Description VkImageViewUsageCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageViewUsageCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageViewUsageCreateInfoKHR
calloc()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated withmemCalloc
.static VkImageViewUsageCreateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkImageViewUsageCreateInfoKHR
callocStack()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageViewUsageCreateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkImageViewUsageCreateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageViewUsageCreateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageViewUsageCreateInfoKHR
create()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated withBufferUtils
.static VkImageViewUsageCreateInfoKHR.Buffer
create(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkImageViewUsageCreateInfoKHR
create(long address)
Returns a newVkImageViewUsageCreateInfoKHR
instance for the specified memory address.static VkImageViewUsageCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkImageViewUsageCreateInfoKHR.Buffer
instance at the specified memory.static VkImageViewUsageCreateInfoKHR
createSafe(long address)
static VkImageViewUsageCreateInfoKHR.Buffer
createSafe(long address, int capacity)
static VkImageViewUsageCreateInfoKHR
malloc()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated withmemAlloc
.static VkImageViewUsageCreateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkImageViewUsageCreateInfoKHR
mallocStack()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkImageViewUsageCreateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkImageViewUsageCreateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageViewUsageCreateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the specifiedMemoryStack
.VkImageViewUsageCreateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkImageViewUsageCreateInfoKHR
set(int sType, long pNext, int usage)
Initializes this struct with the specified values.VkImageViewUsageCreateInfoKHR
set(VkImageViewUsageCreateInfoKHR src)
Copies the specified struct data to this struct.VkImageViewUsageCreateInfoKHR
sType(int value)
Sets the specified value to thesType
field.VkImageViewUsageCreateInfoKHR
usage(int value)
Sets the specified value to theusage
field.
-
-
-
Constructor Detail
-
VkImageViewUsageCreateInfoKHR
public VkImageViewUsageCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkImageViewUsageCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container. 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 thesType
field.- Overrides:
sType
in classVkImageViewUsageCreateInfo
-
pNext
public VkImageViewUsageCreateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkImageViewUsageCreateInfo
-
usage
public VkImageViewUsageCreateInfoKHR usage(int value)
Sets the specified value to theusage
field.- Overrides:
usage
in classVkImageViewUsageCreateInfo
-
set
public VkImageViewUsageCreateInfoKHR set(int sType, long pNext, int usage)
Initializes this struct with the specified values.- Overrides:
set
in 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 newVkImageViewUsageCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkImageViewUsageCreateInfoKHR calloc()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkImageViewUsageCreateInfoKHR create()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkImageViewUsageCreateInfoKHR create(long address)
Returns a newVkImageViewUsageCreateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewUsageCreateInfoKHR createSafe(long address)
-
malloc
public static VkImageViewUsageCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkImageViewUsageCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageViewUsageCreateInfoKHR.Buffer create(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkImageViewUsageCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkImageViewUsageCreateInfoKHR.Buffer
instance 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 newVkImageViewUsageCreateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkImageViewUsageCreateInfoKHR callocStack()
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkImageViewUsageCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkImageViewUsageCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewUsageCreateInfoKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkImageViewUsageCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkImageViewUsageCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-