Package org.lwjgl.vulkan
Class VkValidationFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkValidationFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkValidationFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify validation features to enable or disable for a Vulkan instance.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_VALIDATION_FEATURES_EXT- If
enabledValidationFeatureCountis not 0,pEnabledValidationFeaturesmust be a valid pointer to an array ofenabledValidationFeatureCountvalidVkValidationFeatureEnableEXTvalues - If
disabledValidationFeatureCountis not 0,pDisabledValidationFeaturesmust be a valid pointer to an array ofdisabledValidationFeatureCountvalidVkValidationFeatureDisableEXTvalues
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.enabledValidationFeatureCount– the number of features to enable.pEnabledValidationFeatures– a pointer to an array ofVkValidationFeatureEnableEXTvalues specifying the validation features to be enabled.disabledValidationFeatureCount– the number of features to disable.pDisabledValidationFeatures– a pointer to an array ofVkValidationFeatureDisableEXTvalues specifying the validation features to be disabled.
Layout
struct VkValidationFeaturesEXT { VkStructureType sType; void const * pNext; uint32_t enabledValidationFeatureCount; VkValidationFeatureEnableEXT const * pEnabledValidationFeatures; uint32_t disabledValidationFeatureCount; VkValidationFeatureDisableEXT const * pDisabledValidationFeatures; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkValidationFeaturesEXT.BufferAn array ofVkValidationFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDISABLEDVALIDATIONFEATURECOUNT
ENABLEDVALIDATIONFEATURECOUNT
PDISABLEDVALIDATIONFEATURES
PENABLEDVALIDATIONFEATURES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkValidationFeaturesEXT(java.nio.ByteBuffer container)Creates aVkValidationFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkValidationFeaturesEXTcalloc()Returns a newVkValidationFeaturesEXTinstance allocated withmemCalloc.static VkValidationFeaturesEXT.Buffercalloc(int capacity)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkValidationFeaturesEXTcallocStack()Returns a newVkValidationFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkValidationFeaturesEXT.BuffercallocStack(int capacity)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkValidationFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkValidationFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkValidationFeaturesEXTcreate()Returns a newVkValidationFeaturesEXTinstance allocated withBufferUtils.static VkValidationFeaturesEXT.Buffercreate(int capacity)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkValidationFeaturesEXTcreate(long address)Returns a newVkValidationFeaturesEXTinstance for the specified memory address.static VkValidationFeaturesEXT.Buffercreate(long address, int capacity)Create aVkValidationFeaturesEXT.Bufferinstance at the specified memory.static VkValidationFeaturesEXTcreateSafe(long address)static VkValidationFeaturesEXT.BuffercreateSafe(long address, int capacity)intdisabledValidationFeatureCount()Returns the value of thedisabledValidationFeatureCountfield.intenabledValidationFeatureCount()Returns the value of theenabledValidationFeatureCountfield.static VkValidationFeaturesEXTmalloc()Returns a newVkValidationFeaturesEXTinstance allocated withmemAlloc.static VkValidationFeaturesEXT.Buffermalloc(int capacity)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkValidationFeaturesEXTmallocStack()Returns a newVkValidationFeaturesEXTinstance allocated on the thread-localMemoryStack.static VkValidationFeaturesEXT.BuffermallocStack(int capacity)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkValidationFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkValidationFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStack.static intndisabledValidationFeatureCount(long struct)Unsafe version ofdisabledValidationFeatureCount().static voidndisabledValidationFeatureCount(long struct, int value)Sets the specified value to thedisabledValidationFeatureCountfield of the specifiedstruct.static intnenabledValidationFeatureCount(long struct)Unsafe version ofenabledValidationFeatureCount().static voidnenabledValidationFeatureCount(long struct, int value)Sets the specified value to theenabledValidationFeatureCountfield of the specifiedstruct.static java.nio.IntBuffernpDisabledValidationFeatures(long struct)Unsafe version ofpDisabledValidationFeatures.static voidnpDisabledValidationFeatures(long struct, java.nio.IntBuffer value)Unsafe version ofpDisabledValidationFeatures.static java.nio.IntBuffernpEnabledValidationFeatures(long struct)Unsafe version ofpEnabledValidationFeatures.static voidnpEnabledValidationFeatures(long struct, java.nio.IntBuffer value)Unsafe version ofpEnabledValidationFeatures.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.java.nio.IntBufferpDisabledValidationFeatures()Returns aIntBufferview of the data pointed to by thepDisabledValidationFeaturesfield.VkValidationFeaturesEXTpDisabledValidationFeatures(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepDisabledValidationFeaturesfield.java.nio.IntBufferpEnabledValidationFeatures()Returns aIntBufferview of the data pointed to by thepEnabledValidationFeaturesfield.VkValidationFeaturesEXTpEnabledValidationFeatures(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepEnabledValidationFeaturesfield.longpNext()Returns the value of thepNextfield.VkValidationFeaturesEXTpNext(long value)Sets the specified value to thepNextfield.VkValidationFeaturesEXTset(int sType, long pNext, java.nio.IntBuffer pEnabledValidationFeatures, java.nio.IntBuffer pDisabledValidationFeatures)Initializes this struct with the specified values.VkValidationFeaturesEXTset(VkValidationFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkValidationFeaturesEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkValidationFeaturesEXT
public VkValidationFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkValidationFeaturesEXTinstance 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.
-
enabledValidationFeatureCount
public int enabledValidationFeatureCount()
Returns the value of theenabledValidationFeatureCountfield.
-
pEnabledValidationFeatures
@Nullable public java.nio.IntBuffer pEnabledValidationFeatures()
Returns aIntBufferview of the data pointed to by thepEnabledValidationFeaturesfield.
-
disabledValidationFeatureCount
public int disabledValidationFeatureCount()
Returns the value of thedisabledValidationFeatureCountfield.
-
pDisabledValidationFeatures
@Nullable public java.nio.IntBuffer pDisabledValidationFeatures()
Returns aIntBufferview of the data pointed to by thepDisabledValidationFeaturesfield.
-
sType
public VkValidationFeaturesEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkValidationFeaturesEXT pNext(long value)
Sets the specified value to thepNextfield.
-
pEnabledValidationFeatures
public VkValidationFeaturesEXT pEnabledValidationFeatures(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepEnabledValidationFeaturesfield.
-
pDisabledValidationFeatures
public VkValidationFeaturesEXT pDisabledValidationFeatures(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepDisabledValidationFeaturesfield.
-
set
public VkValidationFeaturesEXT set(int sType, long pNext, @Nullable java.nio.IntBuffer pEnabledValidationFeatures, @Nullable java.nio.IntBuffer pDisabledValidationFeatures)
Initializes this struct with the specified values.
-
set
public VkValidationFeaturesEXT set(VkValidationFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkValidationFeaturesEXT malloc()
Returns a newVkValidationFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkValidationFeaturesEXT calloc()
Returns a newVkValidationFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkValidationFeaturesEXT create()
Returns a newVkValidationFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkValidationFeaturesEXT create(long address)
Returns a newVkValidationFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkValidationFeaturesEXT createSafe(long address)
-
malloc
public static VkValidationFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkValidationFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkValidationFeaturesEXT.Buffer create(int capacity)
Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkValidationFeaturesEXT.Buffer create(long address, int capacity)
Create aVkValidationFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkValidationFeaturesEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkValidationFeaturesEXT mallocStack()
Returns a newVkValidationFeaturesEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkValidationFeaturesEXT callocStack()
Returns a newVkValidationFeaturesEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkValidationFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkValidationFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkValidationFeaturesEXT.Buffer mallocStack(int capacity)
Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkValidationFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkValidationFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkValidationFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT.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().
-
nenabledValidationFeatureCount
public static int nenabledValidationFeatureCount(long struct)
Unsafe version ofenabledValidationFeatureCount().
-
npEnabledValidationFeatures
@Nullable public static java.nio.IntBuffer npEnabledValidationFeatures(long struct)
Unsafe version ofpEnabledValidationFeatures.
-
ndisabledValidationFeatureCount
public static int ndisabledValidationFeatureCount(long struct)
Unsafe version ofdisabledValidationFeatureCount().
-
npDisabledValidationFeatures
@Nullable public static java.nio.IntBuffer npDisabledValidationFeatures(long struct)
Unsafe version ofpDisabledValidationFeatures.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nenabledValidationFeatureCount
public static void nenabledValidationFeatureCount(long struct, int value)Sets the specified value to theenabledValidationFeatureCountfield of the specifiedstruct.
-
npEnabledValidationFeatures
public static void npEnabledValidationFeatures(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpEnabledValidationFeatures.
-
ndisabledValidationFeatureCount
public static void ndisabledValidationFeatureCount(long struct, int value)Sets the specified value to thedisabledValidationFeatureCountfield of the specifiedstruct.
-
npDisabledValidationFeatures
public static void npDisabledValidationFeatures(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpDisabledValidationFeatures.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-