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.NativeResource
Specify validation features to enable or disable for a Vulkan instance.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_VALIDATION_FEATURES_EXT
- If
enabledValidationFeatureCount
is not 0,pEnabledValidationFeatures
must be a valid pointer to an array ofenabledValidationFeatureCount
validVkValidationFeatureEnableEXT
values - If
disabledValidationFeatureCount
is not 0,pDisabledValidationFeatures
must be a valid pointer to an array ofdisabledValidationFeatureCount
validVkValidationFeatureDisableEXT
values
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.enabledValidationFeatureCount
– the number of features to enable.pEnabledValidationFeatures
– a pointer to an array ofVkValidationFeatureEnableEXT
values specifying the validation features to be enabled.disabledValidationFeatureCount
– the number of features to disable.pDisabledValidationFeatures
– a pointer to an array ofVkValidationFeatureDisableEXT
values 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 class
VkValidationFeaturesEXT.Buffer
An array ofVkValidationFeaturesEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
DISABLEDVALIDATIONFEATURECOUNT
ENABLEDVALIDATIONFEATURECOUNT
PDISABLEDVALIDATIONFEATURES
PENABLEDVALIDATIONFEATURES
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkValidationFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkValidationFeaturesEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkValidationFeaturesEXT
calloc()
Returns a newVkValidationFeaturesEXT
instance allocated withmemCalloc
.static VkValidationFeaturesEXT.Buffer
calloc(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated withmemCalloc
.static VkValidationFeaturesEXT
callocStack()
Returns a newVkValidationFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkValidationFeaturesEXT.Buffer
callocStack(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkValidationFeaturesEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkValidationFeaturesEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkValidationFeaturesEXT
create()
Returns a newVkValidationFeaturesEXT
instance allocated withBufferUtils
.static VkValidationFeaturesEXT.Buffer
create(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated withBufferUtils
.static VkValidationFeaturesEXT
create(long address)
Returns a newVkValidationFeaturesEXT
instance for the specified memory address.static VkValidationFeaturesEXT.Buffer
create(long address, int capacity)
Create aVkValidationFeaturesEXT.Buffer
instance at the specified memory.static VkValidationFeaturesEXT
createSafe(long address)
static VkValidationFeaturesEXT.Buffer
createSafe(long address, int capacity)
int
disabledValidationFeatureCount()
Returns the value of thedisabledValidationFeatureCount
field.int
enabledValidationFeatureCount()
Returns the value of theenabledValidationFeatureCount
field.static VkValidationFeaturesEXT
malloc()
Returns a newVkValidationFeaturesEXT
instance allocated withmemAlloc
.static VkValidationFeaturesEXT.Buffer
malloc(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated withmemAlloc
.static VkValidationFeaturesEXT
mallocStack()
Returns a newVkValidationFeaturesEXT
instance allocated on the thread-localMemoryStack
.static VkValidationFeaturesEXT.Buffer
mallocStack(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkValidationFeaturesEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkValidationFeaturesEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT
instance allocated on the specifiedMemoryStack
.static int
ndisabledValidationFeatureCount(long struct)
Unsafe version ofdisabledValidationFeatureCount()
.static void
ndisabledValidationFeatureCount(long struct, int value)
Sets the specified value to thedisabledValidationFeatureCount
field of the specifiedstruct
.static int
nenabledValidationFeatureCount(long struct)
Unsafe version ofenabledValidationFeatureCount()
.static void
nenabledValidationFeatureCount(long struct, int value)
Sets the specified value to theenabledValidationFeatureCount
field of the specifiedstruct
.static java.nio.IntBuffer
npDisabledValidationFeatures(long struct)
Unsafe version ofpDisabledValidationFeatures
.static void
npDisabledValidationFeatures(long struct, java.nio.IntBuffer value)
Unsafe version ofpDisabledValidationFeatures
.static java.nio.IntBuffer
npEnabledValidationFeatures(long struct)
Unsafe version ofpEnabledValidationFeatures
.static void
npEnabledValidationFeatures(long struct, java.nio.IntBuffer value)
Unsafe version ofpEnabledValidationFeatures
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.java.nio.IntBuffer
pDisabledValidationFeatures()
Returns aIntBuffer
view of the data pointed to by thepDisabledValidationFeatures
field.VkValidationFeaturesEXT
pDisabledValidationFeatures(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepDisabledValidationFeatures
field.java.nio.IntBuffer
pEnabledValidationFeatures()
Returns aIntBuffer
view of the data pointed to by thepEnabledValidationFeatures
field.VkValidationFeaturesEXT
pEnabledValidationFeatures(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepEnabledValidationFeatures
field.long
pNext()
Returns the value of thepNext
field.VkValidationFeaturesEXT
pNext(long value)
Sets the specified value to thepNext
field.VkValidationFeaturesEXT
set(int sType, long pNext, java.nio.IntBuffer pEnabledValidationFeatures, java.nio.IntBuffer pDisabledValidationFeatures)
Initializes this struct with the specified values.VkValidationFeaturesEXT
set(VkValidationFeaturesEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkValidationFeaturesEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkValidationFeaturesEXT
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
enabledValidationFeatureCount
public int enabledValidationFeatureCount()
Returns the value of theenabledValidationFeatureCount
field.
-
pEnabledValidationFeatures
@Nullable public java.nio.IntBuffer pEnabledValidationFeatures()
Returns aIntBuffer
view of the data pointed to by thepEnabledValidationFeatures
field.
-
disabledValidationFeatureCount
public int disabledValidationFeatureCount()
Returns the value of thedisabledValidationFeatureCount
field.
-
pDisabledValidationFeatures
@Nullable public java.nio.IntBuffer pDisabledValidationFeatures()
Returns aIntBuffer
view of the data pointed to by thepDisabledValidationFeatures
field.
-
sType
public VkValidationFeaturesEXT sType(int value)
Sets the specified value 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 specifiedIntBuffer
to thepEnabledValidationFeatures
field.
-
pDisabledValidationFeatures
public VkValidationFeaturesEXT pDisabledValidationFeatures(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to 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 newVkValidationFeaturesEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkValidationFeaturesEXT calloc()
Returns a newVkValidationFeaturesEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkValidationFeaturesEXT create()
Returns a newVkValidationFeaturesEXT
instance allocated withBufferUtils
.
-
create
public static VkValidationFeaturesEXT create(long address)
Returns a newVkValidationFeaturesEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkValidationFeaturesEXT createSafe(long address)
-
malloc
public static VkValidationFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkValidationFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkValidationFeaturesEXT.Buffer create(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkValidationFeaturesEXT.Buffer create(long address, int capacity)
Create aVkValidationFeaturesEXT.Buffer
instance 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 newVkValidationFeaturesEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkValidationFeaturesEXT callocStack()
Returns a newVkValidationFeaturesEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkValidationFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkValidationFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationFeaturesEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkValidationFeaturesEXT.Buffer callocStack(int capacity)
Returns a newVkValidationFeaturesEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 theenabledValidationFeatureCount
field 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 thedisabledValidationFeatureCount
field 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
-
-