Package org.lwjgl.vulkan
Class VkPhysicalDeviceVulkanMemoryModelFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceVulkanMemoryModelFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceVulkanMemoryModelFeaturesKHR
public class VkPhysicalDeviceVulkanMemoryModelFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing features supported by the memory model.Description
If the
VkPhysicalDeviceVulkanMemoryModelFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceVulkanMemoryModelFeatures { VkStructureTypesType(); void *pNext(); VkBool32vulkanMemoryModel(); VkBool32vulkanMemoryModelDeviceScope(); VkBool32vulkanMemoryModelAvailabilityVisibilityChains(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceVulkanMemoryModelFeatures.BufferAn array ofVkPhysicalDeviceVulkanMemoryModelFeaturesstructs.
-
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
VULKANMEMORYMODEL
VULKANMEMORYMODELAVAILABILITYVISIBILITYCHAINS
VULKANMEMORYMODELDEVICESCOPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceVulkanMemoryModelFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceVulkanMemoryModelFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceVulkanMemoryModelFeaturescalloc()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVulkanMemoryModelFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVulkanMemoryModelFeaturescreate()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceVulkanMemoryModelFeaturescreate(long address)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance for the specified memory address.static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceVulkanMemoryModelFeaturescreateSafe(long address)static VkPhysicalDeviceVulkanMemoryModelFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceVulkanMemoryModelFeaturesmalloc()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceVulkanMemoryModelFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance 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 intnvulkanMemoryModel(long struct)Unsafe version ofvulkanMemoryModel().static voidnvulkanMemoryModel(long struct, int value)Unsafe version ofvulkanMemoryModel.static intnvulkanMemoryModelAvailabilityVisibilityChains(long struct)Unsafe version ofvulkanMemoryModelAvailabilityVisibilityChains().static voidnvulkanMemoryModelAvailabilityVisibilityChains(long struct, int value)Unsafe version ofvulkanMemoryModelAvailabilityVisibilityChains.static intnvulkanMemoryModelDeviceScope(long struct)Unsafe version ofvulkanMemoryModelDeviceScope().static voidnvulkanMemoryModelDeviceScope(long struct, int value)Unsafe version ofvulkanMemoryModelDeviceScope.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceVulkanMemoryModelFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceVulkanMemoryModelFeaturesset(int sType, long pNext, boolean vulkanMemoryModel, boolean vulkanMemoryModelDeviceScope, boolean vulkanMemoryModelAvailabilityVisibilityChains)Initializes this struct with the specified values.VkPhysicalDeviceVulkanMemoryModelFeaturesset(VkPhysicalDeviceVulkanMemoryModelFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceVulkanMemoryModelFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceVulkanMemoryModelFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURESvalue to thesType()field.booleanvulkanMemoryModel()indicates whether the Vulkan Memory Model is supported, as defined in Vulkan Memory Model.VkPhysicalDeviceVulkanMemoryModelFeaturesvulkanMemoryModel(boolean value)Sets the specified value to thevulkanMemoryModel()field.booleanvulkanMemoryModelAvailabilityVisibilityChains()indicates whether the Vulkan Memory Model can use availability and visibility chains with more than one element.VkPhysicalDeviceVulkanMemoryModelFeaturesvulkanMemoryModelAvailabilityVisibilityChains(boolean value)Sets the specified value to thevulkanMemoryModelAvailabilityVisibilityChains()field.booleanvulkanMemoryModelDeviceScope()indicates whether the Vulkan Memory Model can useDevicescope synchronization.VkPhysicalDeviceVulkanMemoryModelFeaturesvulkanMemoryModelDeviceScope(boolean value)Sets the specified value to thevulkanMemoryModelDeviceScope()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceVulkanMemoryModelFeatures
public VkPhysicalDeviceVulkanMemoryModelFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceVulkanMemoryModelFeaturesinstance 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.
-
vulkanMemoryModel
public boolean vulkanMemoryModel()
indicates whether the Vulkan Memory Model is supported, as defined in Vulkan Memory Model. This also indicates whether shader modules can declare theVulkanMemoryModelcapability.
-
vulkanMemoryModelDeviceScope
public boolean vulkanMemoryModelDeviceScope()
indicates whether the Vulkan Memory Model can useDevicescope synchronization. This also indicates whether shader modules can declare theVulkanMemoryModelDeviceScopecapability.
-
vulkanMemoryModelAvailabilityVisibilityChains
public boolean vulkanMemoryModelAvailabilityVisibilityChains()
indicates whether the Vulkan Memory Model can use availability and visibility chains with more than one element.
-
sType
public VkPhysicalDeviceVulkanMemoryModelFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceVulkanMemoryModelFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceVulkanMemoryModelFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
vulkanMemoryModel
public VkPhysicalDeviceVulkanMemoryModelFeatures vulkanMemoryModel(boolean value)
Sets the specified value to thevulkanMemoryModel()field.
-
vulkanMemoryModelDeviceScope
public VkPhysicalDeviceVulkanMemoryModelFeatures vulkanMemoryModelDeviceScope(boolean value)
Sets the specified value to thevulkanMemoryModelDeviceScope()field.
-
vulkanMemoryModelAvailabilityVisibilityChains
public VkPhysicalDeviceVulkanMemoryModelFeatures vulkanMemoryModelAvailabilityVisibilityChains(boolean value)
Sets the specified value to thevulkanMemoryModelAvailabilityVisibilityChains()field.
-
set
public VkPhysicalDeviceVulkanMemoryModelFeatures set(int sType, long pNext, boolean vulkanMemoryModel, boolean vulkanMemoryModelDeviceScope, boolean vulkanMemoryModelAvailabilityVisibilityChains)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceVulkanMemoryModelFeatures set(VkPhysicalDeviceVulkanMemoryModelFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures malloc()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures calloc()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeatures create()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeatures create(long address)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceVulkanMemoryModelFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceVulkanMemoryModelFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeatures.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().
-
nvulkanMemoryModel
public static int nvulkanMemoryModel(long struct)
Unsafe version ofvulkanMemoryModel().
-
nvulkanMemoryModelDeviceScope
public static int nvulkanMemoryModelDeviceScope(long struct)
Unsafe version ofvulkanMemoryModelDeviceScope().
-
nvulkanMemoryModelAvailabilityVisibilityChains
public static int nvulkanMemoryModelAvailabilityVisibilityChains(long struct)
Unsafe version ofvulkanMemoryModelAvailabilityVisibilityChains().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nvulkanMemoryModel
public static void nvulkanMemoryModel(long struct, int value)Unsafe version ofvulkanMemoryModel.
-
nvulkanMemoryModelDeviceScope
public static void nvulkanMemoryModelDeviceScope(long struct, int value)Unsafe version ofvulkanMemoryModelDeviceScope.
-
nvulkanMemoryModelAvailabilityVisibilityChains
public static void nvulkanMemoryModelAvailabilityVisibilityChains(long struct, int value)Unsafe version ofvulkanMemoryModelAvailabilityVisibilityChains.
-
-