Package org.lwjgl.vulkan
Class VkPhysicalDeviceMaintenance4Features
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceMaintenance4Features
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceMaintenance4FeaturesKHR
public class VkPhysicalDeviceMaintenance4Features extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether the implementation supports maintenance4 functionality.Description
If the
VkPhysicalDeviceMaintenance4Featuresstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceMaintenance4Featurescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES
Layout
struct VkPhysicalDeviceMaintenance4Features { VkStructureType sType; void * pNext; VkBool32maintenance4(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceMaintenance4Features.BufferAn array ofVkPhysicalDeviceMaintenance4Featuresstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAINTENANCE4
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceMaintenance4Features(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceMaintenance4Featuresinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceMaintenance4Featurescalloc()Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated withmemCalloc.static VkPhysicalDeviceMaintenance4Features.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceMaintenance4Features.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMaintenance4Featurescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMaintenance4Featurescreate()Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated withBufferUtils.static VkPhysicalDeviceMaintenance4Features.Buffercreate(int capacity)Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceMaintenance4Featurescreate(long address)Returns a newVkPhysicalDeviceMaintenance4Featuresinstance for the specified memory address.static VkPhysicalDeviceMaintenance4Features.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceMaintenance4Features.Bufferinstance at the specified memory.static VkPhysicalDeviceMaintenance4FeaturescreateSafe(long address)static VkPhysicalDeviceMaintenance4Features.BuffercreateSafe(long address, int capacity)booleanmaintenance4()indicates that the implementation supports the following: The application may destroy aVkPipelineLayoutobject immediately after using it to create another object.LocalSizeIdcan be used as an alternative toLocalSizeto specify the local workgroup size with specialization constants. Images created with identical creation parameters will always have the same alignment requirements. The size memory requirement of a buffer or image is never greater than that of another buffer or image created with a greater or equal size. Push constants do not have to be initialized before they are dynamically accessed. The interface matching rules allow a larger output vector to match with a smaller input vector, with additional values being discarded.VkPhysicalDeviceMaintenance4Featuresmaintenance4(boolean value)Sets the specified value to themaintenance4()field.static VkPhysicalDeviceMaintenance4Featuresmalloc()Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated withmemAlloc.static VkPhysicalDeviceMaintenance4Features.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceMaintenance4Features.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceMaintenance4Featuresmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated on the specifiedMemoryStack.static intnmaintenance4(long struct)Unsafe version ofmaintenance4().static voidnmaintenance4(long struct, int value)Unsafe version ofmaintenance4.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.longpNext()VkPhysicalDeviceMaintenance4FeaturespNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceMaintenance4Featuresset(int sType, long pNext, boolean maintenance4)Initializes this struct with the specified values.VkPhysicalDeviceMaintenance4Featuresset(VkPhysicalDeviceMaintenance4Features src)Copies the specified struct data to this struct.intsizeof()intsType()VkPhysicalDeviceMaintenance4FeaturessType(int value)Sets the specified value to thesTypefield.VkPhysicalDeviceMaintenance4FeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURESvalue to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceMaintenance4Features
public VkPhysicalDeviceMaintenance4Features(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMaintenance4Featuresinstance 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 the
sTypefield.
-
pNext
public long pNext()
- Returns:
- the value of the
pNextfield.
-
maintenance4
public boolean maintenance4()
indicates that the implementation supports the following:- The application may destroy a
VkPipelineLayoutobject immediately after using it to create another object. LocalSizeIdcan be used as an alternative toLocalSizeto specify the local workgroup size with specialization constants.- Images created with identical creation parameters will always have the same alignment requirements.
- The size memory requirement of a buffer or image is never greater than that of another buffer or image created with a greater or equal size.
- Push constants do not have to be initialized before they are dynamically accessed.
- The interface matching rules allow a larger output vector to match with a smaller input vector, with additional values being discarded.
- The application may destroy a
-
sType
public VkPhysicalDeviceMaintenance4Features sType(int value)
Sets the specified value to thesTypefield.
-
sType$Default
public VkPhysicalDeviceMaintenance4Features sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURESvalue to thesTypefield.
-
pNext
public VkPhysicalDeviceMaintenance4Features pNext(long value)
Sets the specified value to thepNextfield.
-
maintenance4
public VkPhysicalDeviceMaintenance4Features maintenance4(boolean value)
Sets the specified value to themaintenance4()field.
-
set
public VkPhysicalDeviceMaintenance4Features set(int sType, long pNext, boolean maintenance4)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceMaintenance4Features set(VkPhysicalDeviceMaintenance4Features src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceMaintenance4Features malloc()
Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMaintenance4Features calloc()
Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMaintenance4Features create()
Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceMaintenance4Features create(long address)
Returns a newVkPhysicalDeviceMaintenance4Featuresinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceMaintenance4Features createSafe(long address)
-
malloc
public static VkPhysicalDeviceMaintenance4Features.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMaintenance4Features.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMaintenance4Features.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMaintenance4Features.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMaintenance4Features.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceMaintenance4Features.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceMaintenance4Features malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceMaintenance4Features calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMaintenance4Featuresinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceMaintenance4Features.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMaintenance4Features.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMaintenance4Features.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMaintenance4Features.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().
-
nmaintenance4
public static int nmaintenance4(long struct)
Unsafe version ofmaintenance4().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nmaintenance4
public static void nmaintenance4(long struct, int value)Unsafe version ofmaintenance4.
-
-