Package org.lwjgl.vulkan
Class VkPhysicalDeviceRobustness2PropertiesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceRobustness2PropertiesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceRobustness2PropertiesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing robust buffer access properties supported by an implementation.Description
If the
VkPhysicalDeviceRobustness2PropertiesEXTstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceRobustness2PropertiesEXT { VkStructureTypesType(); void *pNext(); VkDeviceSizerobustStorageBufferAccessSizeAlignment(); VkDeviceSizerobustUniformBufferAccessSizeAlignment(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceRobustness2PropertiesEXT.BufferAn array ofVkPhysicalDeviceRobustness2PropertiesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
ROBUSTSTORAGEBUFFERACCESSSIZEALIGNMENT
ROBUSTUNIFORMBUFFERACCESSSIZEALIGNMENTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceRobustness2PropertiesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceRobustness2PropertiesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceRobustness2PropertiesEXTcalloc()Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceRobustness2PropertiesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceRobustness2PropertiesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRobustness2PropertiesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceRobustness2PropertiesEXTcreate()Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceRobustness2PropertiesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceRobustness2PropertiesEXTcreate(long address)Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance for the specified memory address.static VkPhysicalDeviceRobustness2PropertiesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceRobustness2PropertiesEXTcreateSafe(long address)static VkPhysicalDeviceRobustness2PropertiesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceRobustness2PropertiesEXTmalloc()Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceRobustness2PropertiesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceRobustness2PropertiesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceRobustness2PropertiesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static longnrobustStorageBufferAccessSizeAlignment(long struct)Unsafe version ofrobustStorageBufferAccessSizeAlignment().static longnrobustUniformBufferAccessSizeAlignment(long struct)Unsafe version ofrobustUniformBufferAccessSizeAlignment().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceRobustness2PropertiesEXTpNext(long value)Sets the specified value to thepNext()field.longrobustStorageBufferAccessSizeAlignment()the number of bytes that the range of a storage buffer descriptor is rounded up to when used for bounds-checking whenrobustBufferAccess2is enabled.longrobustUniformBufferAccessSizeAlignment()the number of bytes that the range of a uniform buffer descriptor is rounded up to when used for bounds-checking whenrobustBufferAccess2is enabled.VkPhysicalDeviceRobustness2PropertiesEXTset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceRobustness2PropertiesEXTset(VkPhysicalDeviceRobustness2PropertiesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceRobustness2PropertiesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceRobustness2PropertiesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceRobustness2PropertiesEXT
public VkPhysicalDeviceRobustness2PropertiesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceRobustness2PropertiesEXTinstance 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.
-
robustStorageBufferAccessSizeAlignment
public long robustStorageBufferAccessSizeAlignment()
the number of bytes that the range of a storage buffer descriptor is rounded up to when used for bounds-checking whenrobustBufferAccess2is enabled. This value must be either 1 or 4.
-
robustUniformBufferAccessSizeAlignment
public long robustUniformBufferAccessSizeAlignment()
the number of bytes that the range of a uniform buffer descriptor is rounded up to when used for bounds-checking whenrobustBufferAccess2is enabled. This value must be a power of two in the range [1, 256].
-
sType
public VkPhysicalDeviceRobustness2PropertiesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceRobustness2PropertiesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceRobustness2PropertiesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceRobustness2PropertiesEXT set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceRobustness2PropertiesEXT set(VkPhysicalDeviceRobustness2PropertiesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceRobustness2PropertiesEXT malloc()
Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceRobustness2PropertiesEXT calloc()
Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceRobustness2PropertiesEXT create()
Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceRobustness2PropertiesEXT create(long address)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceRobustness2PropertiesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceRobustness2PropertiesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceRobustness2PropertiesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceRobustness2PropertiesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceRobustness2PropertiesEXT.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().
-
nrobustStorageBufferAccessSizeAlignment
public static long nrobustStorageBufferAccessSizeAlignment(long struct)
Unsafe version ofrobustStorageBufferAccessSizeAlignment().
-
nrobustUniformBufferAccessSizeAlignment
public static long nrobustUniformBufferAccessSizeAlignment(long struct)
Unsafe version ofrobustUniformBufferAccessSizeAlignment().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-