Package org.lwjgl.vulkan
Class VkPhysicalDeviceScalarBlockLayoutFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceScalarBlockLayoutFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceScalarBlockLayoutFeaturesEXT
public class VkPhysicalDeviceScalarBlockLayoutFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating support for scalar block layouts.Description
If the
VkPhysicalDeviceScalarBlockLayoutFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceScalarBlockLayoutFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceScalarBlockLayoutFeatures { VkStructureTypesType(); void *pNext(); VkBool32scalarBlockLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceScalarBlockLayoutFeatures.BufferAn array ofVkPhysicalDeviceScalarBlockLayoutFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SCALARBLOCKLAYOUTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceScalarBlockLayoutFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceScalarBlockLayoutFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceScalarBlockLayoutFeaturescalloc()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceScalarBlockLayoutFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceScalarBlockLayoutFeaturescreate()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceScalarBlockLayoutFeaturescreate(long address)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance for the specified memory address.static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceScalarBlockLayoutFeaturescreateSafe(long address)static VkPhysicalDeviceScalarBlockLayoutFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceScalarBlockLayoutFeaturesmalloc()Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceScalarBlockLayoutFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnscalarBlockLayout(long struct)Unsafe version ofscalarBlockLayout().static voidnscalarBlockLayout(long struct, int value)Unsafe version ofscalarBlockLayout.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.VkPhysicalDeviceScalarBlockLayoutFeaturespNext(long value)Sets the specified value to thepNext()field.booleanscalarBlockLayout()indicates that the implementation supports the layout of resource blocks in shaders using scalar alignment.VkPhysicalDeviceScalarBlockLayoutFeaturesscalarBlockLayout(boolean value)Sets the specified value to thescalarBlockLayout()field.VkPhysicalDeviceScalarBlockLayoutFeaturesset(int sType, long pNext, boolean scalarBlockLayout)Initializes this struct with the specified values.VkPhysicalDeviceScalarBlockLayoutFeaturesset(VkPhysicalDeviceScalarBlockLayoutFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceScalarBlockLayoutFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceScalarBlockLayoutFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceScalarBlockLayoutFeatures
public VkPhysicalDeviceScalarBlockLayoutFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceScalarBlockLayoutFeaturesinstance 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.
-
scalarBlockLayout
public boolean scalarBlockLayout()
indicates that the implementation supports the layout of resource blocks in shaders using scalar alignment.
-
sType
public VkPhysicalDeviceScalarBlockLayoutFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceScalarBlockLayoutFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceScalarBlockLayoutFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
scalarBlockLayout
public VkPhysicalDeviceScalarBlockLayoutFeatures scalarBlockLayout(boolean value)
Sets the specified value to thescalarBlockLayout()field.
-
set
public VkPhysicalDeviceScalarBlockLayoutFeatures set(int sType, long pNext, boolean scalarBlockLayout)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceScalarBlockLayoutFeatures set(VkPhysicalDeviceScalarBlockLayoutFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures malloc()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures calloc()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeatures create()
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeatures create(long address)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceScalarBlockLayoutFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceScalarBlockLayoutFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceScalarBlockLayoutFeatures.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().
-
nscalarBlockLayout
public static int nscalarBlockLayout(long struct)
Unsafe version ofscalarBlockLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nscalarBlockLayout
public static void nscalarBlockLayout(long struct, int value)Unsafe version ofscalarBlockLayout.
-
-