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
- If the
pEnabledValidationFeaturesarray containsVALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT, then it must also containVALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT - If the
pEnabledValidationFeaturesarray containsVALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT, then it must not containVALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT
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
Layout
struct VkValidationFeaturesEXT { VkStructureTypesType(); void const *pNext(); uint32_tenabledValidationFeatureCount(); VkValidationFeatureEnableEXT const *pEnabledValidationFeatures(); uint32_tdisabledValidationFeatureCount(); 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 Deprecated 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 VkValidationFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkValidationFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkValidationFeaturesEXTcallocStack()Deprecated.static VkValidationFeaturesEXT.BuffercallocStack(int capacity)Deprecated.static VkValidationFeaturesEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkValidationFeaturesEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the number of features to disable.intenabledValidationFeatureCount()the number of features to enable.static VkValidationFeaturesEXTmalloc()Returns a newVkValidationFeaturesEXTinstance allocated withmemAlloc.static VkValidationFeaturesEXT.Buffermalloc(int capacity)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkValidationFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkValidationFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStack.static VkValidationFeaturesEXTmallocStack()Deprecated.static VkValidationFeaturesEXT.BuffermallocStack(int capacity)Deprecated.static VkValidationFeaturesEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkValidationFeaturesEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofVkValidationFeatureDisableEXTvalues specifying the validation features to be disabled.VkValidationFeaturesEXTpDisabledValidationFeatures(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepDisabledValidationFeatures()field.java.nio.IntBufferpEnabledValidationFeatures()a pointer to an array ofVkValidationFeatureEnableEXTvalues specifying the validation features to be enabled.VkValidationFeaturesEXTpEnabledValidationFeatures(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepEnabledValidationFeatures()field.longpNext()NULLor a pointer to a structure extending this structure.VkValidationFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkValidationFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkValidationFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_VALIDATION_FEATURES_EXTvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
enabledValidationFeatureCount
public int enabledValidationFeatureCount()
the number of features to enable.
-
pEnabledValidationFeatures
@Nullable public java.nio.IntBuffer pEnabledValidationFeatures()
a pointer to an array ofVkValidationFeatureEnableEXTvalues specifying the validation features to be enabled.
-
disabledValidationFeatureCount
public int disabledValidationFeatureCount()
the number of features to disable.
-
pDisabledValidationFeatures
@Nullable public java.nio.IntBuffer pDisabledValidationFeatures()
a pointer to an array ofVkValidationFeatureDisableEXTvalues specifying the validation features to be disabled.
-
sType
public VkValidationFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkValidationFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_VALIDATION_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkValidationFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
pEnabledValidationFeatures
public VkValidationFeaturesEXT pEnabledValidationFeatures(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepEnabledValidationFeatures()field.
-
pDisabledValidationFeatures
public VkValidationFeaturesEXT pDisabledValidationFeatures(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepDisabledValidationFeatures()field.
-
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
@Deprecated public static VkValidationFeaturesEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkValidationFeaturesEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkValidationFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkValidationFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkValidationFeaturesEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkValidationFeaturesEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkValidationFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkValidationFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkValidationFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkValidationFeaturesEXT calloc(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
-
malloc
public static VkValidationFeaturesEXT.Buffer malloc(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
-
calloc
public static VkValidationFeaturesEXT.Buffer calloc(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
-
-