Package org.lwjgl.vulkan
Class VkDescriptorSetLayoutCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorSetLayoutCreateInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDescriptorSetLayoutCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a descriptor set layout should be created.
Valid Usage
sType
must beSTRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO
pNext
must beNULL
flags
must be 0- If
bindingCount
is not 0,pBindings
must be a pointer to an array ofbindingCount
validVkDescriptorSetLayoutBinding
structures
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO
pNext
– reserved for use by extensionsflags
– reserved for future usebindingCount
– the number of elements inpBindings
pBindings
– a pointer to an array ofVkDescriptorSetLayoutBinding
structures
Layout
struct VkDescriptorSetLayoutCreateInfo { VkStructureType sType; const void * pNext; VkDescriptorSetLayoutCreateFlags flags; uint32_t bindingCount; const VkDescriptorSetLayoutBinding * pBindings; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkDescriptorSetLayoutCreateInfo.Buffer
An array ofVkDescriptorSetLayoutCreateInfo
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 VkDescriptorSetLayoutCreateInfo(java.nio.ByteBuffer container)
Creates aVkDescriptorSetLayoutCreateInfo
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 int
bindingCount()
Returns the value of thebindingCount
field.static VkDescriptorSetLayoutCreateInfo
calloc()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated withmemCalloc
.static VkDescriptorSetLayoutCreateInfo.Buffer
calloc(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated withmemCalloc
.static VkDescriptorSetLayoutCreateInfo
callocStack()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfo
callocStack(MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfo
create()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated withBufferUtils
.static VkDescriptorSetLayoutCreateInfo.Buffer
create(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated withBufferUtils
.static VkDescriptorSetLayoutCreateInfo
create(long address)
Returns a newVkDescriptorSetLayoutCreateInfo
instance for the specified memory address ornull
if the address isNULL
.static VkDescriptorSetLayoutCreateInfo.Buffer
create(long address, int capacity)
Create aVkDescriptorSetLayoutCreateInfo.Buffer
instance at the specified memory.int
flags()
Returns the value of theflags
field.VkDescriptorSetLayoutCreateInfo
flags(int value)
Sets the specified value to theflags
field.static VkDescriptorSetLayoutCreateInfo
malloc()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated withmemAlloc
.static VkDescriptorSetLayoutCreateInfo.Buffer
malloc(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated withmemAlloc
.static VkDescriptorSetLayoutCreateInfo
mallocStack()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the thread-localMemoryStack
.static VkDescriptorSetLayoutCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkDescriptorSetLayoutCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorSetLayoutCreateInfo
mallocStack(MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the specifiedMemoryStack
.VkDescriptorSetLayoutCreateInfo
nset(long struct)
Unsafe version ofset
.VkDescriptorSetLayoutBinding.Buffer
pBindings()
Returns aVkDescriptorSetLayoutBinding.Buffer
view of the struct array pointed to by thepBindings
field.VkDescriptorSetLayoutCreateInfo
pBindings(VkDescriptorSetLayoutBinding.Buffer value)
Sets the address of the specifiedVkDescriptorSetLayoutBinding.Buffer
to thepBindings
field.long
pNext()
Returns the value of thepNext
field.VkDescriptorSetLayoutCreateInfo
pNext(long value)
Sets the specified value to thepNext
field.VkDescriptorSetLayoutCreateInfo
set(int sType, long pNext, int flags, VkDescriptorSetLayoutBinding.Buffer pBindings)
Initializes this struct with the specified values.VkDescriptorSetLayoutCreateInfo
set(VkDescriptorSetLayoutCreateInfo src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
sType()
Returns the value of thesType
field.VkDescriptorSetLayoutCreateInfo
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
CallsVkDescriptorSetLayoutCreateInfo.validate(long)
for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDescriptorSetLayoutCreateInfo
public VkDescriptorSetLayoutCreateInfo(java.nio.ByteBuffer container)
Creates aVkDescriptorSetLayoutCreateInfo
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)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
bindingCount
public int bindingCount()
Returns the value of thebindingCount
field.
-
pBindings
public VkDescriptorSetLayoutBinding.Buffer pBindings()
Returns aVkDescriptorSetLayoutBinding.Buffer
view of the struct array pointed to by thepBindings
field.
-
sType
public VkDescriptorSetLayoutCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDescriptorSetLayoutCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkDescriptorSetLayoutCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
pBindings
public VkDescriptorSetLayoutCreateInfo pBindings(VkDescriptorSetLayoutBinding.Buffer value)
Sets the address of the specifiedVkDescriptorSetLayoutBinding.Buffer
to thepBindings
field.
-
set
public VkDescriptorSetLayoutCreateInfo set(int sType, long pNext, int flags, VkDescriptorSetLayoutBinding.Buffer pBindings)
Initializes this struct with the specified values.
-
nset
public VkDescriptorSetLayoutCreateInfo nset(long struct)
Unsafe version ofset
.
-
set
public VkDescriptorSetLayoutCreateInfo set(VkDescriptorSetLayoutCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorSetLayoutCreateInfo malloc()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetLayoutCreateInfo calloc()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDescriptorSetLayoutCreateInfo create()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkDescriptorSetLayoutCreateInfo create(long address)
Returns a newVkDescriptorSetLayoutCreateInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkDescriptorSetLayoutCreateInfo.Buffer malloc(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDescriptorSetLayoutCreateInfo.Buffer calloc(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorSetLayoutCreateInfo.Buffer create(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDescriptorSetLayoutCreateInfo.Buffer create(long address, int capacity)
Create aVkDescriptorSetLayoutCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo mallocStack()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDescriptorSetLayoutCreateInfo callocStack()
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo mallocStack(MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDescriptorSetLayoutCreateInfo callocStack(MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDescriptorSetLayoutCreateInfo.Buffer callocStack(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDescriptorSetLayoutCreateInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
CallsVkDescriptorSetLayoutCreateInfo.validate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-