Package org.lwjgl.vulkan
Class VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the workgroup storage explicit layout features that can be supported by an implementation.Description
If the
VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32workgroupMemoryExplicitLayout(); VkBool32workgroupMemoryExplicitLayoutScalarBlockLayout(); VkBool32workgroupMemoryExplicitLayout8BitAccess(); VkBool32workgroupMemoryExplicitLayout16BitAccess(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.BufferAn array ofVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRstructs.
-
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
WORKGROUPMEMORYEXPLICITLAYOUT
WORKGROUPMEMORYEXPLICITLAYOUT16BITACCESS
WORKGROUPMEMORYEXPLICITLAYOUT8BITACCESS
WORKGROUPMEMORYEXPLICITLAYOUTSCALARBLOCKLAYOUTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRcalloc()Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRcreate()Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRmalloc()Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance 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 intnworkgroupMemoryExplicitLayout(long struct)Unsafe version ofworkgroupMemoryExplicitLayout().static voidnworkgroupMemoryExplicitLayout(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayout.static intnworkgroupMemoryExplicitLayout16BitAccess(long struct)Unsafe version ofworkgroupMemoryExplicitLayout16BitAccess().static voidnworkgroupMemoryExplicitLayout16BitAccess(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayout16BitAccess.static intnworkgroupMemoryExplicitLayout8BitAccess(long struct)Unsafe version ofworkgroupMemoryExplicitLayout8BitAccess().static voidnworkgroupMemoryExplicitLayout8BitAccess(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayout8BitAccess.static intnworkgroupMemoryExplicitLayoutScalarBlockLayout(long struct)Unsafe version ofworkgroupMemoryExplicitLayoutScalarBlockLayout().static voidnworkgroupMemoryExplicitLayoutScalarBlockLayout(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayoutScalarBlockLayout.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRset(int sType, long pNext, boolean workgroupMemoryExplicitLayout, boolean workgroupMemoryExplicitLayoutScalarBlockLayout, boolean workgroupMemoryExplicitLayout8BitAccess, boolean workgroupMemoryExplicitLayout16BitAccess)Initializes this struct with the specified values.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRset(VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHRvalue to thesType()field.booleanworkgroupMemoryExplicitLayout()indicates whether the implementation supports the SPIR-VWorkgroupMemoryExplicitLayoutKHRcapability.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRworkgroupMemoryExplicitLayout(boolean value)Sets the specified value to theworkgroupMemoryExplicitLayout()field.booleanworkgroupMemoryExplicitLayout16BitAccess()indicates whether objects in theWorkgroupstorage class with theBlockdecoration can have 16-bit integer and 16-bit floating-point members.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRworkgroupMemoryExplicitLayout16BitAccess(boolean value)Sets the specified value to theworkgroupMemoryExplicitLayout16BitAccess()field.booleanworkgroupMemoryExplicitLayout8BitAccess()indicates whether objects in theWorkgroupstorage class with theBlockdecoration can have 8-bit integer members.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRworkgroupMemoryExplicitLayout8BitAccess(boolean value)Sets the specified value to theworkgroupMemoryExplicitLayout8BitAccess()field.booleanworkgroupMemoryExplicitLayoutScalarBlockLayout()indicates whether the implementation supports scalar alignment for laying out Workgroup Blocks.VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRworkgroupMemoryExplicitLayoutScalarBlockLayout(boolean value)Sets the specified value to theworkgroupMemoryExplicitLayoutScalarBlockLayout()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance 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.
-
workgroupMemoryExplicitLayout
public boolean workgroupMemoryExplicitLayout()
indicates whether the implementation supports the SPIR-VWorkgroupMemoryExplicitLayoutKHRcapability.
-
workgroupMemoryExplicitLayoutScalarBlockLayout
public boolean workgroupMemoryExplicitLayoutScalarBlockLayout()
indicates whether the implementation supports scalar alignment for laying out Workgroup Blocks.
-
workgroupMemoryExplicitLayout8BitAccess
public boolean workgroupMemoryExplicitLayout8BitAccess()
indicates whether objects in theWorkgroupstorage class with theBlockdecoration can have 8-bit integer members. If this feature is not enabled, 8-bit integer members must not be used in such objects. This also indicates whether shader modules can declare theWorkgroupMemoryExplicitLayout8BitAccessKHRcapability.
-
workgroupMemoryExplicitLayout16BitAccess
public boolean workgroupMemoryExplicitLayout16BitAccess()
indicates whether objects in theWorkgroupstorage class with theBlockdecoration can have 16-bit integer and 16-bit floating-point members. If this feature is not enabled, 16-bit integer or 16-bit floating-point members must not be used in such objects. This also indicates whether shader modules can declare theWorkgroupMemoryExplicitLayout16BitAccessKHRcapability.
-
sType
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
workgroupMemoryExplicitLayout
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayout(boolean value)
Sets the specified value to theworkgroupMemoryExplicitLayout()field.
-
workgroupMemoryExplicitLayoutScalarBlockLayout
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayoutScalarBlockLayout(boolean value)
Sets the specified value to theworkgroupMemoryExplicitLayoutScalarBlockLayout()field.
-
workgroupMemoryExplicitLayout8BitAccess
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayout8BitAccess(boolean value)
Sets the specified value to theworkgroupMemoryExplicitLayout8BitAccess()field.
-
workgroupMemoryExplicitLayout16BitAccess
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR workgroupMemoryExplicitLayout16BitAccess(boolean value)
Sets the specified value to theworkgroupMemoryExplicitLayout16BitAccess()field.
-
set
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR set(int sType, long pNext, boolean workgroupMemoryExplicitLayout, boolean workgroupMemoryExplicitLayoutScalarBlockLayout, boolean workgroupMemoryExplicitLayout8BitAccess, boolean workgroupMemoryExplicitLayout16BitAccess)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR set(VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR malloc()
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR calloc()
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR create()
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR.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().
-
nworkgroupMemoryExplicitLayout
public static int nworkgroupMemoryExplicitLayout(long struct)
Unsafe version ofworkgroupMemoryExplicitLayout().
-
nworkgroupMemoryExplicitLayoutScalarBlockLayout
public static int nworkgroupMemoryExplicitLayoutScalarBlockLayout(long struct)
Unsafe version ofworkgroupMemoryExplicitLayoutScalarBlockLayout().
-
nworkgroupMemoryExplicitLayout8BitAccess
public static int nworkgroupMemoryExplicitLayout8BitAccess(long struct)
Unsafe version ofworkgroupMemoryExplicitLayout8BitAccess().
-
nworkgroupMemoryExplicitLayout16BitAccess
public static int nworkgroupMemoryExplicitLayout16BitAccess(long struct)
Unsafe version ofworkgroupMemoryExplicitLayout16BitAccess().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nworkgroupMemoryExplicitLayout
public static void nworkgroupMemoryExplicitLayout(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayout.
-
nworkgroupMemoryExplicitLayoutScalarBlockLayout
public static void nworkgroupMemoryExplicitLayoutScalarBlockLayout(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayoutScalarBlockLayout.
-
nworkgroupMemoryExplicitLayout8BitAccess
public static void nworkgroupMemoryExplicitLayout8BitAccess(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayout8BitAccess.
-
nworkgroupMemoryExplicitLayout16BitAccess
public static void nworkgroupMemoryExplicitLayout16BitAccess(long struct, int value)Unsafe version ofworkgroupMemoryExplicitLayout16BitAccess.
-
-