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
type
must be a validVkDescriptorType
valuedescriptorCount
must 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 class
VkDescriptorPoolSize.Buffer
An array ofVkDescriptorPoolSize
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The 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 aVkDescriptorPoolSize
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDescriptorPoolSize
calloc()
Returns a newVkDescriptorPoolSize
instance allocated withmemCalloc
.static VkDescriptorPoolSize.Buffer
calloc(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated withmemCalloc
.static VkDescriptorPoolSize
callocStack()
Returns a newVkDescriptorPoolSize
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorPoolSize.Buffer
callocStack(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorPoolSize.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorPoolSize
callocStack(MemoryStack stack)
Returns a newVkDescriptorPoolSize
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorPoolSize
create()
Returns a newVkDescriptorPoolSize
instance allocated withBufferUtils
.static VkDescriptorPoolSize.Buffer
create(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated withBufferUtils
.static VkDescriptorPoolSize
create(long address)
Returns a newVkDescriptorPoolSize
instance for the specified memory address ornull
if the address isNULL
.static VkDescriptorPoolSize.Buffer
create(long address, int capacity)
Create aVkDescriptorPoolSize.Buffer
instance at the specified memory.int
descriptorCount()
Returns the value of thedescriptorCount
field.VkDescriptorPoolSize
descriptorCount(int value)
Sets the specified value to thedescriptorCount
field.static VkDescriptorPoolSize
malloc()
Returns a newVkDescriptorPoolSize
instance allocated withmemAlloc
.static VkDescriptorPoolSize.Buffer
malloc(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated withmemAlloc
.static VkDescriptorPoolSize
mallocStack()
Returns a newVkDescriptorPoolSize
instance allocated on the thread-localMemoryStack
.static VkDescriptorPoolSize.Buffer
mallocStack(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated on the thread-localMemoryStack
.static VkDescriptorPoolSize.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorPoolSize
mallocStack(MemoryStack stack)
Returns a newVkDescriptorPoolSize
instance allocated on the specifiedMemoryStack
.VkDescriptorPoolSize
nset(long struct)
Unsafe version ofset
.VkDescriptorPoolSize
set(int type, int descriptorCount)
Initializes this struct with the specified values.VkDescriptorPoolSize
set(VkDescriptorPoolSize src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
type()
Returns the value of thetype
field.VkDescriptorPoolSize
type(int value)
Sets the specified value to thetype
field.-
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 aVkDescriptorPoolSize
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
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
type
public int type()
Returns the value of thetype
field.
-
descriptorCount
public int descriptorCount()
Returns the value of thedescriptorCount
field.
-
type
public VkDescriptorPoolSize type(int value)
Sets the specified value to thetype
field.
-
descriptorCount
public VkDescriptorPoolSize descriptorCount(int value)
Sets the specified value to thedescriptorCount
field.
-
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 newVkDescriptorPoolSize
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDescriptorPoolSize calloc()
Returns a newVkDescriptorPoolSize
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDescriptorPoolSize create()
Returns a newVkDescriptorPoolSize
instance allocated withBufferUtils
.
-
create
public static VkDescriptorPoolSize create(long address)
Returns a newVkDescriptorPoolSize
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkDescriptorPoolSize.Buffer malloc(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDescriptorPoolSize.Buffer calloc(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorPoolSize.Buffer create(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorPoolSize.Buffer create(long address, int capacity)
Create aVkDescriptorPoolSize.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkDescriptorPoolSize mallocStack()
Returns a newVkDescriptorPoolSize
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDescriptorPoolSize callocStack()
Returns a newVkDescriptorPoolSize
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDescriptorPoolSize mallocStack(MemoryStack stack)
Returns a newVkDescriptorPoolSize
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDescriptorPoolSize callocStack(MemoryStack stack)
Returns a newVkDescriptorPoolSize
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDescriptorPoolSize.Buffer callocStack(int capacity)
Returns a newVkDescriptorPoolSize.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDescriptorPoolSize.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorPoolSize.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-