Package org.lwjgl.vulkan
Class VkDescriptorPoolSize
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorPoolSize
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDescriptorPoolSize extends Struct
Khronos Reference Page
Vulkan SpecificationContains a descriptor type and number of descriptors of that type to be allocated in a pool.
Valid Usage
typemust be a validVkDescriptorTypevaluedescriptorCountmust be greater than 0
Member documentation
type– the type of descriptor. One of:descriptorCount– the number of descriptors of that type to allocate
Layout
struct VkDescriptorPoolSize { VkDescriptorType type; uint32_t descriptorCount; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkDescriptorPoolSize.BufferAn array ofVkDescriptorPoolSizestructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkDescriptorPoolSize(java.nio.ByteBuffer container)Creates aVkDescriptorPoolSizeinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDescriptorPoolSizecalloc()Returns a newVkDescriptorPoolSizeinstance allocated withmemCalloc.static VkDescriptorPoolSize.Buffercalloc(int capacity)Returns a newVkDescriptorPoolSize.Bufferinstance allocated withmemCalloc.static VkDescriptorPoolSizecallocStack()Returns a newVkDescriptorPoolSizeinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorPoolSize.BuffercallocStack(int capacity)Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorPoolSize.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorPoolSizecallocStack(MemoryStack stack)Returns a newVkDescriptorPoolSizeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorPoolSizecreate()Returns a newVkDescriptorPoolSizeinstance allocated withBufferUtils.static VkDescriptorPoolSize.Buffercreate(int capacity)Returns a newVkDescriptorPoolSize.Bufferinstance allocated withBufferUtils.static VkDescriptorPoolSizecreate(long address)Returns a newVkDescriptorPoolSizeinstance for the specified memory address ornullif the address isNULL.static VkDescriptorPoolSize.Buffercreate(long address, int capacity)Create aVkDescriptorPoolSize.Bufferinstance at the specified memory.intdescriptorCount()Returns the value of thedescriptorCountfield.VkDescriptorPoolSizedescriptorCount(int value)Sets the specified value to thedescriptorCountfield.static VkDescriptorPoolSizemalloc()Returns a newVkDescriptorPoolSizeinstance allocated withmemAlloc.static VkDescriptorPoolSize.Buffermalloc(int capacity)Returns a newVkDescriptorPoolSize.Bufferinstance allocated withmemAlloc.static VkDescriptorPoolSizemallocStack()Returns a newVkDescriptorPoolSizeinstance allocated on the thread-localMemoryStack.static VkDescriptorPoolSize.BuffermallocStack(int capacity)Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the thread-localMemoryStack.static VkDescriptorPoolSize.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorPoolSizemallocStack(MemoryStack stack)Returns a newVkDescriptorPoolSizeinstance allocated on the specifiedMemoryStack.VkDescriptorPoolSizenset(long struct)Unsafe version ofset.VkDescriptorPoolSizeset(int type, int descriptorCount)Initializes this struct with the specified values.VkDescriptorPoolSizeset(VkDescriptorPoolSize src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).inttype()Returns the value of thetypefield.VkDescriptorPoolSizetype(int value)Sets the specified value to thetypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDescriptorPoolSize
public VkDescriptorPoolSize(java.nio.ByteBuffer container)
Creates aVkDescriptorPoolSizeinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
type
public int type()
Returns the value of thetypefield.
-
descriptorCount
public int descriptorCount()
Returns the value of thedescriptorCountfield.
-
type
public VkDescriptorPoolSize type(int value)
Sets the specified value to thetypefield.
-
descriptorCount
public VkDescriptorPoolSize descriptorCount(int value)
Sets the specified value to thedescriptorCountfield.
-
set
public VkDescriptorPoolSize set(int type, int descriptorCount)
Initializes this struct with the specified values.
-
nset
public VkDescriptorPoolSize nset(long struct)
Unsafe version ofset.
-
set
public VkDescriptorPoolSize set(VkDescriptorPoolSize src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorPoolSize malloc()
Returns a newVkDescriptorPoolSizeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorPoolSize calloc()
Returns a newVkDescriptorPoolSizeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorPoolSize create()
Returns a newVkDescriptorPoolSizeinstance allocated withBufferUtils.
-
create
public static VkDescriptorPoolSize create(long address)
Returns a newVkDescriptorPoolSizeinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDescriptorPoolSize.Buffer malloc(int capacity)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorPoolSize.Buffer calloc(int capacity)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorPoolSize.Buffer create(int capacity)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorPoolSize.Buffer create(long address, int capacity)
Create aVkDescriptorPoolSize.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDescriptorPoolSize mallocStack()
Returns a newVkDescriptorPoolSizeinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDescriptorPoolSize callocStack()
Returns a newVkDescriptorPoolSizeinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDescriptorPoolSize mallocStack(MemoryStack stack)
Returns a newVkDescriptorPoolSizeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDescriptorPoolSize callocStack(MemoryStack stack)
Returns a newVkDescriptorPoolSizeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDescriptorPoolSize.Buffer mallocStack(int capacity)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDescriptorPoolSize.Buffer callocStack(int capacity)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDescriptorPoolSize.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDescriptorPoolSize.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorPoolSize.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-