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 classVkDescriptorUpdateTemplateEntryKHR.BufferAn array ofVkDescriptorUpdateTemplateEntryKHRstructs.
-
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 aVkDescriptorUpdateTemplateEntryKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDescriptorUpdateTemplateEntryKHRcalloc()Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated withmemCalloc.static VkDescriptorUpdateTemplateEntryKHR.Buffercalloc(int capacity)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated withmemCalloc.static VkDescriptorUpdateTemplateEntryKHRcallocStack()Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHR.BuffercallocStack(int capacity)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorUpdateTemplateEntryKHRcreate()Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated withBufferUtils.static VkDescriptorUpdateTemplateEntryKHR.Buffercreate(int capacity)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated withBufferUtils.static VkDescriptorUpdateTemplateEntryKHRcreate(long address)Returns a newVkDescriptorUpdateTemplateEntryKHRinstance for the specified memory address.static VkDescriptorUpdateTemplateEntryKHR.Buffercreate(long address, int capacity)Create aVkDescriptorUpdateTemplateEntryKHR.Bufferinstance at the specified memory.static VkDescriptorUpdateTemplateEntryKHRcreateSafe(long address)static VkDescriptorUpdateTemplateEntryKHR.BuffercreateSafe(long address, int capacity)VkDescriptorUpdateTemplateEntryKHRdescriptorCount(int value)Sets the specified value to thedescriptorCountfield.VkDescriptorUpdateTemplateEntryKHRdescriptorType(int value)Sets the specified value to thedescriptorTypefield.VkDescriptorUpdateTemplateEntryKHRdstArrayElement(int value)Sets the specified value to thedstArrayElementfield.VkDescriptorUpdateTemplateEntryKHRdstBinding(int value)Sets the specified value to thedstBindingfield.static VkDescriptorUpdateTemplateEntryKHRmalloc()Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated withmemAlloc.static VkDescriptorUpdateTemplateEntryKHR.Buffermalloc(int capacity)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated withmemAlloc.static VkDescriptorUpdateTemplateEntryKHRmallocStack()Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the thread-localMemoryStack.static VkDescriptorUpdateTemplateEntryKHR.BuffermallocStack(int capacity)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkDescriptorUpdateTemplateEntryKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorUpdateTemplateEntryKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the specifiedMemoryStack.VkDescriptorUpdateTemplateEntryKHRoffset(long value)Sets the specified value to theoffsetfield.VkDescriptorUpdateTemplateEntryKHRset(int dstBinding, int dstArrayElement, int descriptorCount, int descriptorType, long offset, long stride)Initializes this struct with the specified values.VkDescriptorUpdateTemplateEntryKHRset(VkDescriptorUpdateTemplateEntryKHR src)Copies the specified struct data to this struct.VkDescriptorUpdateTemplateEntryKHRstride(long value)Sets the specified value to thestridefield.-
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 aVkDescriptorUpdateTemplateEntryKHRinstance 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
-
dstBinding
public VkDescriptorUpdateTemplateEntryKHR dstBinding(int value)
Sets the specified value to thedstBindingfield.- Overrides:
dstBindingin classVkDescriptorUpdateTemplateEntry
-
dstArrayElement
public VkDescriptorUpdateTemplateEntryKHR dstArrayElement(int value)
Sets the specified value to thedstArrayElementfield.- Overrides:
dstArrayElementin classVkDescriptorUpdateTemplateEntry
-
descriptorCount
public VkDescriptorUpdateTemplateEntryKHR descriptorCount(int value)
Sets the specified value to thedescriptorCountfield.- Overrides:
descriptorCountin classVkDescriptorUpdateTemplateEntry
-
descriptorType
public VkDescriptorUpdateTemplateEntryKHR descriptorType(int value)
Sets the specified value to thedescriptorTypefield.- Overrides:
descriptorTypein classVkDescriptorUpdateTemplateEntry
-
offset
public VkDescriptorUpdateTemplateEntryKHR offset(long value)
Sets the specified value to theoffsetfield.- Overrides:
offsetin classVkDescriptorUpdateTemplateEntry
-
stride
public VkDescriptorUpdateTemplateEntryKHR stride(long value)
Sets the specified value to thestridefield.- Overrides:
stridein 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:
setin 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 newVkDescriptorUpdateTemplateEntryKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorUpdateTemplateEntryKHR calloc()
Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorUpdateTemplateEntryKHR create()
Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated withBufferUtils.
-
create
public static VkDescriptorUpdateTemplateEntryKHR create(long address)
Returns a newVkDescriptorUpdateTemplateEntryKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorUpdateTemplateEntryKHR createSafe(long address)
-
malloc
public static VkDescriptorUpdateTemplateEntryKHR.Buffer malloc(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorUpdateTemplateEntryKHR.Buffer calloc(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorUpdateTemplateEntryKHR.Buffer create(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorUpdateTemplateEntryKHR.Buffer create(long address, int capacity)
Create aVkDescriptorUpdateTemplateEntryKHR.Bufferinstance 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 newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR callocStack()
Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDescriptorUpdateTemplateEntryKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorUpdateTemplateEntryKHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDescriptorUpdateTemplateEntryKHR.Buffer callocStack(int capacity)
Returns a newVkDescriptorUpdateTemplateEntryKHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-