Package org.lwjgl.vulkan
Class VkPhysicalDeviceInlineUniformBlockFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceInlineUniformBlockFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceInlineUniformBlockFeaturesEXT
public class VkPhysicalDeviceInlineUniformBlockFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing inline uniform block features that can be supported by an implementation.Description
If the
VkPhysicalDeviceInlineUniformBlockFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceInlineUniformBlockFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceInlineUniformBlockFeatures { VkStructureTypesType(); void *pNext(); VkBool32inlineUniformBlock(); VkBool32descriptorBindingInlineUniformBlockUpdateAfterBind(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceInlineUniformBlockFeatures.BufferAn array ofVkPhysicalDeviceInlineUniformBlockFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDESCRIPTORBINDINGINLINEUNIFORMBLOCKUPDATEAFTERBIND
INLINEUNIFORMBLOCK
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceInlineUniformBlockFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceInlineUniformBlockFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceInlineUniformBlockFeaturescalloc()Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceInlineUniformBlockFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceInlineUniformBlockFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceInlineUniformBlockFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceInlineUniformBlockFeaturescreate()Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceInlineUniformBlockFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceInlineUniformBlockFeaturescreate(long address)Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance for the specified memory address.static VkPhysicalDeviceInlineUniformBlockFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceInlineUniformBlockFeaturescreateSafe(long address)static VkPhysicalDeviceInlineUniformBlockFeatures.BuffercreateSafe(long address, int capacity)booleandescriptorBindingInlineUniformBlockUpdateAfterBind()indicates whether the implementation supports updating inline uniform block descriptors after a set is bound.VkPhysicalDeviceInlineUniformBlockFeaturesdescriptorBindingInlineUniformBlockUpdateAfterBind(boolean value)Sets the specified value to thedescriptorBindingInlineUniformBlockUpdateAfterBind()field.booleaninlineUniformBlock()indicates whether the implementation supports inline uniform block descriptors.VkPhysicalDeviceInlineUniformBlockFeaturesinlineUniformBlock(boolean value)Sets the specified value to theinlineUniformBlock()field.static VkPhysicalDeviceInlineUniformBlockFeaturesmalloc()Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceInlineUniformBlockFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceInlineUniformBlockFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceInlineUniformBlockFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated on the specifiedMemoryStack.static intndescriptorBindingInlineUniformBlockUpdateAfterBind(long struct)Unsafe version ofdescriptorBindingInlineUniformBlockUpdateAfterBind().static voidndescriptorBindingInlineUniformBlockUpdateAfterBind(long struct, int value)Unsafe version ofdescriptorBindingInlineUniformBlockUpdateAfterBind.static intninlineUniformBlock(long struct)Unsafe version ofinlineUniformBlock().static voidninlineUniformBlock(long struct, int value)Unsafe version ofinlineUniformBlock.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.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceInlineUniformBlockFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceInlineUniformBlockFeaturesset(int sType, long pNext, boolean inlineUniformBlock, boolean descriptorBindingInlineUniformBlockUpdateAfterBind)Initializes this struct with the specified values.VkPhysicalDeviceInlineUniformBlockFeaturesset(VkPhysicalDeviceInlineUniformBlockFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceInlineUniformBlockFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceInlineUniformBlockFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceInlineUniformBlockFeatures
public VkPhysicalDeviceInlineUniformBlockFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceInlineUniformBlockFeaturesinstance 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.
-
inlineUniformBlock
public boolean inlineUniformBlock()
indicates whether the implementation supports inline uniform block descriptors. If this feature is not enabled,DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCKmust not be used.
-
descriptorBindingInlineUniformBlockUpdateAfterBind
public boolean descriptorBindingInlineUniformBlockUpdateAfterBind()
indicates whether the implementation supports updating inline uniform block descriptors after a set is bound. If this feature is not enabled,DESCRIPTOR_BINDING_UPDATE_AFTER_BIND_BITmust not be used withDESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK.
-
sType
public VkPhysicalDeviceInlineUniformBlockFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceInlineUniformBlockFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceInlineUniformBlockFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
inlineUniformBlock
public VkPhysicalDeviceInlineUniformBlockFeatures inlineUniformBlock(boolean value)
Sets the specified value to theinlineUniformBlock()field.
-
descriptorBindingInlineUniformBlockUpdateAfterBind
public VkPhysicalDeviceInlineUniformBlockFeatures descriptorBindingInlineUniformBlockUpdateAfterBind(boolean value)
Sets the specified value to thedescriptorBindingInlineUniformBlockUpdateAfterBind()field.
-
set
public VkPhysicalDeviceInlineUniformBlockFeatures set(int sType, long pNext, boolean inlineUniformBlock, boolean descriptorBindingInlineUniformBlockUpdateAfterBind)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceInlineUniformBlockFeatures set(VkPhysicalDeviceInlineUniformBlockFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceInlineUniformBlockFeatures malloc()
Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceInlineUniformBlockFeatures calloc()
Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceInlineUniformBlockFeatures create()
Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceInlineUniformBlockFeatures create(long address)
Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceInlineUniformBlockFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceInlineUniformBlockFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceInlineUniformBlockFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInlineUniformBlockFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceInlineUniformBlockFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInlineUniformBlockFeatures.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().
-
ninlineUniformBlock
public static int ninlineUniformBlock(long struct)
Unsafe version ofinlineUniformBlock().
-
ndescriptorBindingInlineUniformBlockUpdateAfterBind
public static int ndescriptorBindingInlineUniformBlockUpdateAfterBind(long struct)
Unsafe version ofdescriptorBindingInlineUniformBlockUpdateAfterBind().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ninlineUniformBlock
public static void ninlineUniformBlock(long struct, int value)Unsafe version ofinlineUniformBlock.
-
ndescriptorBindingInlineUniformBlockUpdateAfterBind
public static void ndescriptorBindingInlineUniformBlockUpdateAfterBind(long struct, int value)Unsafe version ofdescriptorBindingInlineUniformBlockUpdateAfterBind.
-
-