Package org.lwjgl.vulkan
Class VkDescriptorSetLayoutBindingFlagsCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDescriptorSetLayoutBindingFlagsCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDescriptorSetLayoutBindingFlagsCreateInfoEXT
public class VkDescriptorSetLayoutBindingFlagsCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying creation flags for descriptor set layout bindings.Description
If
bindingCountis zero or if this structure is not included in thepNextchain, theVkDescriptorBindingFlagsfor each descriptor set layout binding is considered to be zero. Otherwise, the descriptor set layout binding atVkDescriptorSetLayoutCreateInfo::pBindings[i] uses the flags inpBindingFlags[i].Valid Usage
- If
bindingCountis not zero,bindingCountmust equalVkDescriptorSetLayoutCreateInfo::bindingCount - If
VkDescriptorSetLayoutCreateInfo::flagsincludesDESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR, then all elements ofpBindingFlagsmust not includeDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT,DESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT, orDESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT - If an element of
pBindingFlagsincludesDESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT, then all other elements ofVkDescriptorSetLayoutCreateInfo::pBindingsmust have a smaller value ofbinding - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingUniformBufferUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_UNIFORM_BUFFERmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingSampledImageUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_SAMPLER,DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, orDESCRIPTOR_TYPE_SAMPLED_IMAGEmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingStorageImageUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_STORAGE_IMAGEmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingStorageBufferUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_STORAGE_BUFFERmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingUniformTexelBufferUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFERmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingStorageTexelBufferUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFERmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceInlineUniformBlockFeatures::descriptorBindingInlineUniformBlockUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCKmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceAccelerationStructureFeaturesKHR::descriptorBindingAccelerationStructureUpdateAfterBindis not enabled, all bindings with descriptor typeDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHRorDESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NVmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - All bindings with descriptor type
DESCRIPTOR_TYPE_INPUT_ATTACHMENT,DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, orDESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMICmust not useDESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingUpdateUnusedWhilePendingis not enabled, all elements ofpBindingFlagsmust not includeDESCRIPTOR_BINDING_UPDATE_UNUSED_WHILE_PENDING_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingPartiallyBoundis not enabled, all elements ofpBindingFlagsmust not includeDESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT - If
VkPhysicalDeviceDescriptorIndexingFeatures::descriptorBindingVariableDescriptorCountis not enabled, all elements ofpBindingFlagsmust not includeDESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT - If an element of
pBindingFlagsincludesDESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT, that element’sdescriptorTypemust not beDESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMICorDESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO- If
bindingCountis not 0,pBindingFlagsmust be a valid pointer to an array ofbindingCountvalid combinations ofVkDescriptorBindingFlagBitsvalues
Layout
struct VkDescriptorSetLayoutBindingFlagsCreateInfo { VkStructureTypesType(); void const *pNext(); uint32_tbindingCount(); VkDescriptorBindingFlags const *pBindingFlags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDescriptorSetLayoutBindingFlagsCreateInfo.BufferAn array ofVkDescriptorSetLayoutBindingFlagsCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBINDINGCOUNT
PBINDINGFLAGS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDescriptorSetLayoutBindingFlagsCreateInfo(java.nio.ByteBuffer container)Creates aVkDescriptorSetLayoutBindingFlagsCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbindingCount()zero or the number of elements inpBindingFlags.VkDescriptorSetLayoutBindingFlagsCreateInfobindingCount(int value)Sets the specified value to thebindingCount()field.static VkDescriptorSetLayoutBindingFlagsCreateInfocalloc()Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated withmemCalloc.static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffercalloc(int capacity)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated withmemCalloc.static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutBindingFlagsCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorSetLayoutBindingFlagsCreateInfocreate()Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated withBufferUtils.static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffercreate(int capacity)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated withBufferUtils.static VkDescriptorSetLayoutBindingFlagsCreateInfocreate(long address)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance for the specified memory address.static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffercreate(long address, int capacity)Create aVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance at the specified memory.static VkDescriptorSetLayoutBindingFlagsCreateInfocreateSafe(long address)static VkDescriptorSetLayoutBindingFlagsCreateInfo.BuffercreateSafe(long address, int capacity)static VkDescriptorSetLayoutBindingFlagsCreateInfomalloc()Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated withmemAlloc.static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffermalloc(int capacity)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated withmemAlloc.static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorSetLayoutBindingFlagsCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated on the specifiedMemoryStack.static intnbindingCount(long struct)Unsafe version ofbindingCount().static voidnbindingCount(long struct, int value)Sets the specified value to thebindingCountfield of the specifiedstruct.static java.nio.IntBuffernpBindingFlags(long struct)Unsafe version ofpBindingFlags.static voidnpBindingFlags(long struct, java.nio.IntBuffer value)Unsafe version ofpBindingFlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.java.nio.IntBufferpBindingFlags()a pointer to an array ofVkDescriptorBindingFlagsbitfields, one for each descriptor set layout binding.VkDescriptorSetLayoutBindingFlagsCreateInfopBindingFlags(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepBindingFlags()field.longpNext()NULLor a pointer to a structure extending this structure.VkDescriptorSetLayoutBindingFlagsCreateInfopNext(long value)Sets the specified value to thepNext()field.VkDescriptorSetLayoutBindingFlagsCreateInfoset(int sType, long pNext, int bindingCount, java.nio.IntBuffer pBindingFlags)Initializes this struct with the specified values.VkDescriptorSetLayoutBindingFlagsCreateInfoset(VkDescriptorSetLayoutBindingFlagsCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkDescriptorSetLayoutBindingFlagsCreateInfosType(int value)Sets the specified value to thesType()field.VkDescriptorSetLayoutBindingFlagsCreateInfosType$Default()Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkDescriptorSetLayoutBindingFlagsCreateInfo
public VkDescriptorSetLayoutBindingFlagsCreateInfo(java.nio.ByteBuffer container)
Creates aVkDescriptorSetLayoutBindingFlagsCreateInfoinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
bindingCount
public int bindingCount()
zero or the number of elements inpBindingFlags.
-
pBindingFlags
@Nullable public java.nio.IntBuffer pBindingFlags()
a pointer to an array ofVkDescriptorBindingFlagsbitfields, one for each descriptor set layout binding.
-
sType
public VkDescriptorSetLayoutBindingFlagsCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDescriptorSetLayoutBindingFlagsCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFOvalue to thesType()field.
-
pNext
public VkDescriptorSetLayoutBindingFlagsCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
bindingCount
public VkDescriptorSetLayoutBindingFlagsCreateInfo bindingCount(int value)
Sets the specified value to thebindingCount()field.
-
pBindingFlags
public VkDescriptorSetLayoutBindingFlagsCreateInfo pBindingFlags(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepBindingFlags()field.
-
set
public VkDescriptorSetLayoutBindingFlagsCreateInfo set(int sType, long pNext, int bindingCount, @Nullable java.nio.IntBuffer pBindingFlags)
Initializes this struct with the specified values.
-
set
public VkDescriptorSetLayoutBindingFlagsCreateInfo set(VkDescriptorSetLayoutBindingFlagsCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo malloc()
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo calloc()
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDescriptorSetLayoutBindingFlagsCreateInfo create()
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated withBufferUtils.
-
create
public static VkDescriptorSetLayoutBindingFlagsCreateInfo create(long address)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkDescriptorSetLayoutBindingFlagsCreateInfo createSafe(long address)
-
malloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer malloc(int capacity)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer calloc(int capacity)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer create(int capacity)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer create(long address, int capacity)
Create aVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkDescriptorSetLayoutBindingFlagsCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDescriptorSetLayoutBindingFlagsCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nbindingCount
public static int nbindingCount(long struct)
Unsafe version ofbindingCount().
-
npBindingFlags
@Nullable public static java.nio.IntBuffer npBindingFlags(long struct)
Unsafe version ofpBindingFlags.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nbindingCount
public static void nbindingCount(long struct, int value)Sets the specified value to thebindingCountfield of the specifiedstruct.
-
npBindingFlags
public static void npBindingFlags(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpBindingFlags.
-
-