Package org.lwjgl.vulkan
Class VkPhysicalDeviceVulkanMemoryModelFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceVulkanMemoryModelFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceVulkanMemoryModelFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing features supported by VK_KHR_vulkan_memory_model.Valid Usage (Implicit)
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.vulkanMemoryModel– indicates whether the Vulkan Memory Model is supported, as defined in Vulkan Memory Model. This also indicates whether shader modules can declare theVulkanMemoryModelKHRcapability.vulkanMemoryModelDeviceScope– indicates whether the Vulkan Memory Model can useDevicescope synchronization. This also indicates whether shader modules can declare theVulkanMemoryModelDeviceScopeKHRcapability.vulkanMemoryModelAvailabilityVisibilityChains– indicates whether the Vulkan Memory Model can use availability and visibility chains with more than one element.
Layout
struct VkPhysicalDeviceVulkanMemoryModelFeaturesKHR { VkStructureType sType; void * pNext; VkBool32 vulkanMemoryModel; VkBool32 vulkanMemoryModelDeviceScope; VkBool32 vulkanMemoryModelAvailabilityVisibilityChains; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.BufferAn array ofVkPhysicalDeviceVulkanMemoryModelFeaturesKHRstructs.
-
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 VkPhysicalDeviceVulkanMemoryModelFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcalloc()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcallocStack()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcreate()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRmalloc()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRmallocStack()Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceVulkanMemoryModelFeaturesKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance 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()Returns the value of thepNextfield.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRset(int sType, long pNext, boolean vulkanMemoryModel, boolean vulkanMemoryModelDeviceScope, boolean vulkanMemoryModelAvailabilityVisibilityChains)Initializes this struct with the specified values.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRset(VkPhysicalDeviceVulkanMemoryModelFeaturesKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRsType(int value)Sets the specified value to thesTypefield.booleanvulkanMemoryModel()Returns the value of thevulkanMemoryModelfield.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRvulkanMemoryModel(boolean value)Sets the specified value to thevulkanMemoryModelfield.booleanvulkanMemoryModelAvailabilityVisibilityChains()Returns the value of thevulkanMemoryModelAvailabilityVisibilityChainsfield.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRvulkanMemoryModelAvailabilityVisibilityChains(boolean value)Sets the specified value to thevulkanMemoryModelAvailabilityVisibilityChainsfield.booleanvulkanMemoryModelDeviceScope()Returns the value of thevulkanMemoryModelDeviceScopefield.VkPhysicalDeviceVulkanMemoryModelFeaturesKHRvulkanMemoryModelDeviceScope(boolean value)Sets the specified value to thevulkanMemoryModelDeviceScopefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceVulkanMemoryModelFeaturesKHR
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance 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.
-
vulkanMemoryModel
public boolean vulkanMemoryModel()
Returns the value of thevulkanMemoryModelfield.
-
vulkanMemoryModelDeviceScope
public boolean vulkanMemoryModelDeviceScope()
Returns the value of thevulkanMemoryModelDeviceScopefield.
-
vulkanMemoryModelAvailabilityVisibilityChains
public boolean vulkanMemoryModelAvailabilityVisibilityChains()
Returns the value of thevulkanMemoryModelAvailabilityVisibilityChainsfield.
-
sType
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR pNext(long value)
Sets the specified value to thepNextfield.
-
vulkanMemoryModel
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR vulkanMemoryModel(boolean value)
Sets the specified value to thevulkanMemoryModelfield.
-
vulkanMemoryModelDeviceScope
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR vulkanMemoryModelDeviceScope(boolean value)
Sets the specified value to thevulkanMemoryModelDeviceScopefield.
-
vulkanMemoryModelAvailabilityVisibilityChains
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR vulkanMemoryModelAvailabilityVisibilityChains(boolean value)
Sets the specified value to thevulkanMemoryModelAvailabilityVisibilityChainsfield.
-
set
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR set(int sType, long pNext, boolean vulkanMemoryModel, boolean vulkanMemoryModelDeviceScope, boolean vulkanMemoryModelAvailabilityVisibilityChains)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceVulkanMemoryModelFeaturesKHR set(VkPhysicalDeviceVulkanMemoryModelFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR malloc()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR calloc()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR create()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR mallocStack()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR callocStack()
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceVulkanMemoryModelFeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceVulkanMemoryModelFeaturesKHR.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.
-
-