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
sTypemust beSTRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFOpNextmust beNULLflagsmust be 0- If
bindingCountis not 0,pBindingsmust be a pointer to an array ofbindingCountvalidVkDescriptorSetLayoutBindingstructures
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFOpNext– reserved for use by extensionsflags– reserved for future usebindingCount– the number of elements inpBindingspBindings– a pointer to an array ofVkDescriptorSetLayoutBindingstructures
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 classVkDescriptorSetLayoutCreateInfo.BufferAn array ofVkDescriptorSetLayoutCreateInfostructs.-
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 VkDescriptorSetLayoutCreateInfo(java.nio.ByteBuffer container)Creates aVkDescriptorSetLayoutCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intbindingCount()Returns the value of thebindingCountfield.static VkDescriptorSetLayoutCreateInfocalloc()Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated withmemCalloc.static VkDescriptorSetLayoutCreateInfo.Buffercalloc(int capacity)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated withmemCalloc.static VkDescriptorSetLayoutCreateInfocallocStack()Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfo.BuffercallocStack(int capacity)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfocallocStack(MemoryStack stack)Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutCreateInfocreate()Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated withBufferUtils.static VkDescriptorSetLayoutCreateInfo.Buffercreate(int capacity)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated withBufferUtils.static VkDescriptorSetLayoutCreateInfocreate(long address)Returns a newVkDescriptorSetLayoutCreateInfoinstance for the specified memory address ornullif the address isNULL.static VkDescriptorSetLayoutCreateInfo.Buffercreate(long address, int capacity)Create aVkDescriptorSetLayoutCreateInfo.Bufferinstance at the specified memory.intflags()Returns the value of theflagsfield.VkDescriptorSetLayoutCreateInfoflags(int value)Sets the specified value to theflagsfield.static VkDescriptorSetLayoutCreateInfomalloc()Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated withmemAlloc.static VkDescriptorSetLayoutCreateInfo.Buffermalloc(int capacity)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated withmemAlloc.static VkDescriptorSetLayoutCreateInfomallocStack()Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the thread-localMemoryStack.static VkDescriptorSetLayoutCreateInfo.BuffermallocStack(int capacity)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkDescriptorSetLayoutCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetLayoutCreateInfomallocStack(MemoryStack stack)Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the specifiedMemoryStack.VkDescriptorSetLayoutCreateInfonset(long struct)Unsafe version ofset.VkDescriptorSetLayoutBinding.BufferpBindings()Returns aVkDescriptorSetLayoutBinding.Bufferview of the struct array pointed to by thepBindingsfield.VkDescriptorSetLayoutCreateInfopBindings(VkDescriptorSetLayoutBinding.Buffer value)Sets the address of the specifiedVkDescriptorSetLayoutBinding.Bufferto thepBindingsfield.longpNext()Returns the value of thepNextfield.VkDescriptorSetLayoutCreateInfopNext(long value)Sets the specified value to thepNextfield.VkDescriptorSetLayoutCreateInfoset(int sType, long pNext, int flags, VkDescriptorSetLayoutBinding.Buffer pBindings)Initializes this struct with the specified values.VkDescriptorSetLayoutCreateInfoset(VkDescriptorSetLayoutCreateInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkDescriptorSetLayoutCreateInfosType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(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 aVkDescriptorSetLayoutCreateInfoinstance 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).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
bindingCount
public int bindingCount()
Returns the value of thebindingCountfield.
-
pBindings
public VkDescriptorSetLayoutBinding.Buffer pBindings()
Returns aVkDescriptorSetLayoutBinding.Bufferview of the struct array pointed to by thepBindingsfield.
-
sType
public VkDescriptorSetLayoutCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDescriptorSetLayoutCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkDescriptorSetLayoutCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
pBindings
public VkDescriptorSetLayoutCreateInfo pBindings(VkDescriptorSetLayoutBinding.Buffer value)
Sets the address of the specifiedVkDescriptorSetLayoutBinding.Bufferto thepBindingsfield.
-
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 newVkDescriptorSetLayoutCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetLayoutCreateInfo calloc()
Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorSetLayoutCreateInfo create()
Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated withBufferUtils.
-
create
public static VkDescriptorSetLayoutCreateInfo create(long address)
Returns a newVkDescriptorSetLayoutCreateInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkDescriptorSetLayoutCreateInfo.Buffer malloc(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorSetLayoutCreateInfo.Buffer calloc(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetLayoutCreateInfo.Buffer create(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetLayoutCreateInfo.Buffer create(long address, int capacity)
Create aVkDescriptorSetLayoutCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo mallocStack()
Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDescriptorSetLayoutCreateInfo callocStack()
Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo mallocStack(MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDescriptorSetLayoutCreateInfo callocStack(MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfoinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDescriptorSetLayoutCreateInfo.Buffer callocStack(int capacity)
Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDescriptorSetLayoutCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDescriptorSetLayoutCreateInfo.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-