Package org.lwjgl.vulkan
Class VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for std430-like packing in uniform buffers.Description
If the
VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto enable this feature.Valid Usage (Implicit)
Member documentation
uniformBufferStandardLayout– indicates that the implementation supports the same layouts for uniform buffers as for storage and other kinds of buffers. See Standard Buffer Layout.
Layout
struct VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR { VkStructureType sType; void * pNext; VkBool32 uniformBufferStandardLayout; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.BufferAn array ofVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRstructs.
-
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 VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcalloc()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcallocStack()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcreate()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRmalloc()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRmallocStack()Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance 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()Returns the value of thepNextfield.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRset(int sType, long pNext, boolean uniformBufferStandardLayout)Initializes this struct with the specified values.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRset(VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRsType(int value)Sets the specified value to thesTypefield.booleanuniformBufferStandardLayout()Returns the value of theuniformBufferStandardLayoutfield.VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRuniformBufferStandardLayout(boolean value)Sets the specified value to theuniformBufferStandardLayoutfield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR
public VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
uniformBufferStandardLayout
public boolean uniformBufferStandardLayout()
Returns the value of theuniformBufferStandardLayoutfield.
-
sType
public VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR pNext(long value)
Sets the specified value to thepNextfield.
-
uniformBufferStandardLayout
public VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR uniformBufferStandardLayout(boolean value)
Sets the specified value to theuniformBufferStandardLayoutfield.
-
set
public VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR set(int sType, long pNext, boolean uniformBufferStandardLayout)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR set(VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR malloc()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR calloc()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR create()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR mallocStack()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR callocStack()
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceUniformBufferStandardLayoutFeaturesKHR.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.
-
-