Package org.lwjgl.vulkan
Class VkDescriptorUpdateTemplateEntryKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorUpdateTemplateEntry
-
- org.lwjgl.vulkan.VkDescriptorUpdateTemplateEntryKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkDescriptorUpdateTemplateEntryKHR extends VkDescriptorUpdateTemplateEntry
SeeVkDescriptorUpdateTemplateEntry
.Layout
struct VkDescriptorUpdateTemplateEntryKHR { uint32_t dstBinding; uint32_t dstArrayElement; uint32_t descriptorCount; VkDescriptorType descriptorType; size_t offset; size_t stride; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkDescriptorUpdateTemplateEntryKHR.Buffer
An array ofVkDescriptorUpdateTemplateEntryKHR
structs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkDescriptorUpdateTemplateEntry
ALIGNOF, DESCRIPTORCOUNT, DESCRIPTORTYPE, DSTARRAYELEMENT, DSTBINDING, OFFSET, SIZEOF, STRIDE
-
-
Constructor Summary
Constructors Constructor Description VkDescriptorUpdateTemplateEntryKHR(java.nio.ByteBuffer container)
Creates aVkDescriptorUpdateTemplateEntryKHR
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 VkDescriptorUpdateTemplateEntryKHR
calloc()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated withmemCalloc
.static VkDescriptorUpdateTemplateEntryKHR.Buffer
calloc(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated withmemCalloc
.static VkDescriptorUpdateTemplateEntryKHR
callocStack()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHR.Buffer
callocStack(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHR
create()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated withBufferUtils
.static VkDescriptorUpdateTemplateEntryKHR.Buffer
create(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated withBufferUtils
.static VkDescriptorUpdateTemplateEntryKHR
create(long address)
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance for the specified memory address.static VkDescriptorUpdateTemplateEntryKHR.Buffer
create(long address, int capacity)
Create aVkDescriptorUpdateTemplateEntryKHR.Buffer
instance at the specified memory.static VkDescriptorUpdateTemplateEntryKHR
createSafe(long address)
static VkDescriptorUpdateTemplateEntryKHR.Buffer
createSafe(long address, int capacity)
VkDescriptorUpdateTemplateEntryKHR
descriptorCount(int value)
Sets the specified value to thedescriptorCount
field.VkDescriptorUpdateTemplateEntryKHR
descriptorType(int value)
Sets the specified value to thedescriptorType
field.VkDescriptorUpdateTemplateEntryKHR
dstArrayElement(int value)
Sets the specified value to thedstArrayElement
field.VkDescriptorUpdateTemplateEntryKHR
dstBinding(int value)
Sets the specified value to thedstBinding
field.static VkDescriptorUpdateTemplateEntryKHR
malloc()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated withmemAlloc
.static VkDescriptorUpdateTemplateEntryKHR.Buffer
malloc(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated withmemAlloc
.static VkDescriptorUpdateTemplateEntryKHR
mallocStack()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the thread-localMemoryStack
.static VkDescriptorUpdateTemplateEntryKHR.Buffer
mallocStack(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkDescriptorUpdateTemplateEntryKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorUpdateTemplateEntryKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the specifiedMemoryStack
.VkDescriptorUpdateTemplateEntryKHR
offset(long value)
Sets the specified value to theoffset
field.VkDescriptorUpdateTemplateEntryKHR
set(int dstBinding, int dstArrayElement, int descriptorCount, int descriptorType, long offset, long stride)
Initializes this struct with the specified values.VkDescriptorUpdateTemplateEntryKHR
set(VkDescriptorUpdateTemplateEntryKHR src)
Copies the specified struct data to this struct.VkDescriptorUpdateTemplateEntryKHR
stride(long value)
Sets the specified value to thestride
field.-
Methods inherited from class org.lwjgl.vulkan.VkDescriptorUpdateTemplateEntry
descriptorCount, descriptorType, dstArrayElement, dstBinding, ndescriptorCount, ndescriptorCount, ndescriptorType, ndescriptorType, ndstArrayElement, ndstArrayElement, ndstBinding, ndstBinding, noffset, noffset, nstride, nstride, offset, set, sizeof, stride
-
-
-
-
Constructor Detail
-
VkDescriptorUpdateTemplateEntryKHR
public VkDescriptorUpdateTemplateEntryKHR(java.nio.ByteBuffer container)
Creates aVkDescriptorUpdateTemplateEntryKHR
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
-
dstBinding
public VkDescriptorUpdateTemplateEntryKHR dstBinding(int value)
Sets the specified value to thedstBinding
field.- Overrides:
dstBinding
in classVkDescriptorUpdateTemplateEntry
-
dstArrayElement
public VkDescriptorUpdateTemplateEntryKHR dstArrayElement(int value)
Sets the specified value to thedstArrayElement
field.- Overrides:
dstArrayElement
in classVkDescriptorUpdateTemplateEntry
-
descriptorCount
public VkDescriptorUpdateTemplateEntryKHR descriptorCount(int value)
Sets the specified value to thedescriptorCount
field.- Overrides:
descriptorCount
in classVkDescriptorUpdateTemplateEntry
-
descriptorType
public VkDescriptorUpdateTemplateEntryKHR descriptorType(int value)
Sets the specified value to thedescriptorType
field.- Overrides:
descriptorType
in classVkDescriptorUpdateTemplateEntry
-
offset
public VkDescriptorUpdateTemplateEntryKHR offset(long value)
Sets the specified value to theoffset
field.- Overrides:
offset
in classVkDescriptorUpdateTemplateEntry
-
stride
public VkDescriptorUpdateTemplateEntryKHR stride(long value)
Sets the specified value to thestride
field.- Overrides:
stride
in classVkDescriptorUpdateTemplateEntry
-
set
public VkDescriptorUpdateTemplateEntryKHR set(int dstBinding, int dstArrayElement, int descriptorCount, int descriptorType, long offset, long stride)
Initializes this struct with the specified values.- Overrides:
set
in classVkDescriptorUpdateTemplateEntry
-
set
public VkDescriptorUpdateTemplateEntryKHR set(VkDescriptorUpdateTemplateEntryKHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorUpdateTemplateEntryKHR malloc()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDescriptorUpdateTemplateEntryKHR calloc()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDescriptorUpdateTemplateEntryKHR create()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated withBufferUtils
.
-
create
public static VkDescriptorUpdateTemplateEntryKHR create(long address)
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorUpdateTemplateEntryKHR createSafe(long address)
-
malloc
public static VkDescriptorUpdateTemplateEntryKHR.Buffer malloc(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDescriptorUpdateTemplateEntryKHR.Buffer calloc(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorUpdateTemplateEntryKHR.Buffer create(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorUpdateTemplateEntryKHR.Buffer create(long address, int capacity)
Create aVkDescriptorUpdateTemplateEntryKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorUpdateTemplateEntryKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDescriptorUpdateTemplateEntryKHR mallocStack()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR callocStack()
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDescriptorUpdateTemplateEntryKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDescriptorUpdateTemplateEntryKHR.Buffer mallocStack(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR.Buffer callocStack(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDescriptorUpdateTemplateEntryKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-