Package org.lwjgl.vulkan
Class VkPhysicalDeviceRobustness2FeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceRobustness2FeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceRobustness2FeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the out-of-bounds behavior for an implementation.Description
If the
VkPhysicalDeviceRobustness2FeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceRobustness2FeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage
- If
robustBufferAccess2is enabled thenrobustBufferAccessmust also be enabled
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT
Layout
struct VkPhysicalDeviceRobustness2FeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32robustBufferAccess2(); VkBool32robustImageAccess2(); VkBool32nullDescriptor(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceRobustness2FeaturesEXT.BufferAn array ofVkPhysicalDeviceRobustness2FeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNULLDESCRIPTOR
PNEXT
ROBUSTBUFFERACCESS2
ROBUSTIMAGEACCESS2The struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceRobustness2FeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceRobustness2FeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceRobustness2FeaturesEXTcalloc()Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceRobustness2FeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceRobustness2FeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRobustness2FeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRobustness2FeaturesEXTcreate()Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceRobustness2FeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceRobustness2FeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceRobustness2FeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceRobustness2FeaturesEXTcreateSafe(long address)static VkPhysicalDeviceRobustness2FeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceRobustness2FeaturesEXTmalloc()Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceRobustness2FeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceRobustness2FeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRobustness2FeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated on the specifiedMemoryStack.static intnnullDescriptor(long struct)Unsafe version ofnullDescriptor().static voidnnullDescriptor(long struct, int value)Unsafe version ofnullDescriptor.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrobustBufferAccess2(long struct)Unsafe version ofrobustBufferAccess2().static voidnrobustBufferAccess2(long struct, int value)Unsafe version ofrobustBufferAccess2.static intnrobustImageAccess2(long struct)Unsafe version ofrobustImageAccess2().static voidnrobustImageAccess2(long struct, int value)Unsafe version ofrobustImageAccess2.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.booleannullDescriptor()indicates whether descriptors can be written with aNULL_HANDLEresource or view, which are considered valid to access and act as if the descriptor were bound to nothing.VkPhysicalDeviceRobustness2FeaturesEXTnullDescriptor(boolean value)Sets the specified value to thenullDescriptor()field.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceRobustness2FeaturesEXTpNext(long value)Sets the specified value to thepNext()field.booleanrobustBufferAccess2()indicates whether buffer accesses are tightly bounds-checked against the range of the descriptor.VkPhysicalDeviceRobustness2FeaturesEXTrobustBufferAccess2(boolean value)Sets the specified value to therobustBufferAccess2()field.booleanrobustImageAccess2()indicates whether image accesses are tightly bounds-checked against the dimensions of the image view.VkPhysicalDeviceRobustness2FeaturesEXTrobustImageAccess2(boolean value)Sets the specified value to therobustImageAccess2()field.VkPhysicalDeviceRobustness2FeaturesEXTset(int sType, long pNext, boolean robustBufferAccess2, boolean robustImageAccess2, boolean nullDescriptor)Initializes this struct with the specified values.VkPhysicalDeviceRobustness2FeaturesEXTset(VkPhysicalDeviceRobustness2FeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceRobustness2FeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceRobustness2FeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceRobustness2FeaturesEXT
public VkPhysicalDeviceRobustness2FeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceRobustness2FeaturesEXTinstance 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.
-
robustBufferAccess2
public boolean robustBufferAccess2()
indicates whether buffer accesses are tightly bounds-checked against the range of the descriptor. Uniform buffers must be bounds-checked to the range of the descriptor, where the range is rounded up to a multiple of robustUniformBufferAccessSizeAlignment. Storage buffers must be bounds-checked to the range of the descriptor, where the range is rounded up to a multiple of robustStorageBufferAccessSizeAlignment. Out of bounds buffer loads will return zero values, and formatted loads will have(0,0,1)values inserted for missing G, B, or A components based on the format.
-
robustImageAccess2
public boolean robustImageAccess2()
indicates whether image accesses are tightly bounds-checked against the dimensions of the image view. Out of bounds image loads will return zero values, with(0,0,1)values inserted for missing G, B, or A components based on the format.
-
nullDescriptor
public boolean nullDescriptor()
indicates whether descriptors can be written with aNULL_HANDLEresource or view, which are considered valid to access and act as if the descriptor were bound to nothing.
-
sType
public VkPhysicalDeviceRobustness2FeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceRobustness2FeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceRobustness2FeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
robustBufferAccess2
public VkPhysicalDeviceRobustness2FeaturesEXT robustBufferAccess2(boolean value)
Sets the specified value to therobustBufferAccess2()field.
-
robustImageAccess2
public VkPhysicalDeviceRobustness2FeaturesEXT robustImageAccess2(boolean value)
Sets the specified value to therobustImageAccess2()field.
-
nullDescriptor
public VkPhysicalDeviceRobustness2FeaturesEXT nullDescriptor(boolean value)
Sets the specified value to thenullDescriptor()field.
-
set
public VkPhysicalDeviceRobustness2FeaturesEXT set(int sType, long pNext, boolean robustBufferAccess2, boolean robustImageAccess2, boolean nullDescriptor)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceRobustness2FeaturesEXT set(VkPhysicalDeviceRobustness2FeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceRobustness2FeaturesEXT malloc()
Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceRobustness2FeaturesEXT calloc()
Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceRobustness2FeaturesEXT create()
Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceRobustness2FeaturesEXT create(long address)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceRobustness2FeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceRobustness2FeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceRobustness2FeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRobustness2FeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2FeaturesEXT.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().
-
nrobustBufferAccess2
public static int nrobustBufferAccess2(long struct)
Unsafe version ofrobustBufferAccess2().
-
nrobustImageAccess2
public static int nrobustImageAccess2(long struct)
Unsafe version ofrobustImageAccess2().
-
nnullDescriptor
public static int nnullDescriptor(long struct)
Unsafe version ofnullDescriptor().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nrobustBufferAccess2
public static void nrobustBufferAccess2(long struct, int value)Unsafe version ofrobustBufferAccess2.
-
nrobustImageAccess2
public static void nrobustImageAccess2(long struct, int value)Unsafe version ofrobustImageAccess2.
-
nnullDescriptor
public static void nnullDescriptor(long struct, int value)Unsafe version ofnullDescriptor.
-
-