Package org.lwjgl.vulkan
Class VkPhysicalDeviceImageRobustnessFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceImageRobustnessFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceImageRobustnessFeaturesEXT
public class VkPhysicalDeviceImageRobustnessFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the out-of-bounds behavior for an implementation.Description
If the
VkPhysicalDeviceImageRobustnessFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceImageRobustnessFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES
Layout
struct VkPhysicalDeviceImageRobustnessFeatures { VkStructureTypesType(); void *pNext(); VkBool32robustImageAccess(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceImageRobustnessFeatures.BufferAn array ofVkPhysicalDeviceImageRobustnessFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
ROBUSTIMAGEACCESSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceImageRobustnessFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceImageRobustnessFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceImageRobustnessFeaturescalloc()Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceImageRobustnessFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceImageRobustnessFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceImageRobustnessFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceImageRobustnessFeaturescreate()Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceImageRobustnessFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceImageRobustnessFeaturescreate(long address)Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance for the specified memory address.static VkPhysicalDeviceImageRobustnessFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceImageRobustnessFeaturescreateSafe(long address)static VkPhysicalDeviceImageRobustnessFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceImageRobustnessFeaturesmalloc()Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceImageRobustnessFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceImageRobustnessFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceImageRobustnessFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnrobustImageAccess(long struct)Unsafe version ofrobustImageAccess().static voidnrobustImageAccess(long struct, int value)Unsafe version ofrobustImageAccess.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.VkPhysicalDeviceImageRobustnessFeaturespNext(long value)Sets the specified value to thepNext()field.booleanrobustImageAccess()indicates whether image accesses are tightly bounds-checked against the dimensions of the image view.VkPhysicalDeviceImageRobustnessFeaturesrobustImageAccess(boolean value)Sets the specified value to therobustImageAccess()field.VkPhysicalDeviceImageRobustnessFeaturesset(int sType, long pNext, boolean robustImageAccess)Initializes this struct with the specified values.VkPhysicalDeviceImageRobustnessFeaturesset(VkPhysicalDeviceImageRobustnessFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceImageRobustnessFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceImageRobustnessFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceImageRobustnessFeatures
public VkPhysicalDeviceImageRobustnessFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceImageRobustnessFeaturesinstance 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.
-
robustImageAccess
public boolean robustImageAccess()
indicates whether image accesses are tightly bounds-checked against the dimensions of the image view. Invalid texels resulting from out of bounds image loads will be replaced as described in Texel Replacement, with either(0,0,1)or(0,0,0)values inserted for missing G, B, or A components based on the format.
-
sType
public VkPhysicalDeviceImageRobustnessFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceImageRobustnessFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceImageRobustnessFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
robustImageAccess
public VkPhysicalDeviceImageRobustnessFeatures robustImageAccess(boolean value)
Sets the specified value to therobustImageAccess()field.
-
set
public VkPhysicalDeviceImageRobustnessFeatures set(int sType, long pNext, boolean robustImageAccess)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceImageRobustnessFeatures set(VkPhysicalDeviceImageRobustnessFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceImageRobustnessFeatures malloc()
Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceImageRobustnessFeatures calloc()
Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceImageRobustnessFeatures create()
Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceImageRobustnessFeatures create(long address)
Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceImageRobustnessFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceImageRobustnessFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceImageRobustnessFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceImageRobustnessFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceImageRobustnessFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceImageRobustnessFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceImageRobustnessFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceImageRobustnessFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageRobustnessFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceImageRobustnessFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageRobustnessFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceImageRobustnessFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceImageRobustnessFeatures.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().
-
nrobustImageAccess
public static int nrobustImageAccess(long struct)
Unsafe version ofrobustImageAccess().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nrobustImageAccess
public static void nrobustImageAccess(long struct, int value)Unsafe version ofrobustImageAccess.
-
-