Package org.lwjgl.vulkan
Class VkPhysicalDeviceUniformBufferStandardLayoutFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceUniformBufferStandardLayoutFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR
public class VkPhysicalDeviceUniformBufferStandardLayoutFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for std430-like packing in uniform buffers.Description
If the
VkPhysicalDeviceUniformBufferStandardLayoutFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceUniformBufferStandardLayoutFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceUniformBufferStandardLayoutFeatures { VkStructureTypesType(); void *pNext(); VkBool32uniformBufferStandardLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceUniformBufferStandardLayoutFeatures.BufferAn array ofVkPhysicalDeviceUniformBufferStandardLayoutFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
UNIFORMBUFFERSTANDARDLAYOUTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceUniformBufferStandardLayoutFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceUniformBufferStandardLayoutFeaturescalloc()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturescreate()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturescreate(long address)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance for the specified memory address.static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturescreateSafe(long address)static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesmalloc()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated on the specifiedMemoryStack.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.static intnuniformBufferStandardLayout(long struct)Unsafe version ofuniformBufferStandardLayout().static voidnuniformBufferStandardLayout(long struct, int value)Unsafe version ofuniformBufferStandardLayout.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceUniformBufferStandardLayoutFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesset(int sType, long pNext, boolean uniformBufferStandardLayout)Initializes this struct with the specified values.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesset(VkPhysicalDeviceUniformBufferStandardLayoutFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceUniformBufferStandardLayoutFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceUniformBufferStandardLayoutFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURESvalue to thesType()field.booleanuniformBufferStandardLayout()indicates that the implementation supports the same layouts for uniform buffers as for storage and other kinds of buffers.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesuniformBufferStandardLayout(boolean value)Sets the specified value to theuniformBufferStandardLayout()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceUniformBufferStandardLayoutFeatures
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance 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.
-
uniformBufferStandardLayout
public boolean uniformBufferStandardLayout()
indicates that the implementation supports the same layouts for uniform buffers as for storage and other kinds of buffers. See Standard Buffer Layout.
-
sType
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
uniformBufferStandardLayout
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures uniformBufferStandardLayout(boolean value)
Sets the specified value to theuniformBufferStandardLayout()field.
-
set
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures set(int sType, long pNext, boolean uniformBufferStandardLayout)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceUniformBufferStandardLayoutFeatures set(VkPhysicalDeviceUniformBufferStandardLayoutFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures malloc()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures calloc()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures create()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures create(long address)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeatures.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().
-
nuniformBufferStandardLayout
public static int nuniformBufferStandardLayout(long struct)
Unsafe version ofuniformBufferStandardLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nuniformBufferStandardLayout
public static void nuniformBufferStandardLayout(long struct, int value)Unsafe version ofuniformBufferStandardLayout.
-
-