Package org.lwjgl.vulkan
Class VkValidationCacheCreateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkValidationCacheCreateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkValidationCacheCreateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created validation cache.Valid Usage
- If
initialDataSize
is not 0, it must be equal to the size ofpInitialData
, as returned byvkGetValidationCacheDataEXT
whenpInitialData
was originally retrieved - If
initialDataSize
is not 0,pInitialData
must have been retrieved from a previous call tovkGetValidationCacheDataEXT
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_VALIDATION_CACHE_CREATE_INFO_EXT
pNext
must beNULL
flags
must be 0- If
initialDataSize
is not 0,pInitialData
must be a valid pointer to an array ofinitialDataSize
bytes
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– reserved for future use.initialDataSize
– the number of bytes inpInitialData
. IfinitialDataSize
is zero, the validation cache will initially be empty.pInitialData
– a pointer to previously retrieved validation cache data. If the validation cache data is incompatible (as defined below) with the device, the validation cache will be initially empty. IfinitialDataSize
is zero,pInitialData
is ignored.
Layout
struct VkValidationCacheCreateInfoEXT { VkStructureType sType; void const * pNext; VkValidationCacheCreateFlagsEXT flags; size_t initialDataSize; void const * pInitialData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkValidationCacheCreateInfoEXT.Buffer
An array ofVkValidationCacheCreateInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FLAGS
INITIALDATASIZE
PINITIALDATA
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkValidationCacheCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkValidationCacheCreateInfoEXT
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 VkValidationCacheCreateInfoEXT
calloc()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated withmemCalloc
.static VkValidationCacheCreateInfoEXT.Buffer
calloc(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated withmemCalloc
.static VkValidationCacheCreateInfoEXT
callocStack()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkValidationCacheCreateInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkValidationCacheCreateInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkValidationCacheCreateInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkValidationCacheCreateInfoEXT
create()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated withBufferUtils
.static VkValidationCacheCreateInfoEXT.Buffer
create(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated withBufferUtils
.static VkValidationCacheCreateInfoEXT
create(long address)
Returns a newVkValidationCacheCreateInfoEXT
instance for the specified memory address.static VkValidationCacheCreateInfoEXT.Buffer
create(long address, int capacity)
Create aVkValidationCacheCreateInfoEXT.Buffer
instance at the specified memory.static VkValidationCacheCreateInfoEXT
createSafe(long address)
static VkValidationCacheCreateInfoEXT.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkValidationCacheCreateInfoEXT
flags(int value)
Sets the specified value to theflags
field.long
initialDataSize()
Returns the value of theinitialDataSize
field.static VkValidationCacheCreateInfoEXT
malloc()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated withmemAlloc
.static VkValidationCacheCreateInfoEXT.Buffer
malloc(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated withmemAlloc
.static VkValidationCacheCreateInfoEXT
mallocStack()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the thread-localMemoryStack
.static VkValidationCacheCreateInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkValidationCacheCreateInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkValidationCacheCreateInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the specifiedMemoryStack
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
ninitialDataSize(long struct)
Unsafe version ofinitialDataSize()
.static void
ninitialDataSize(long struct, long value)
Sets the specified value to theinitialDataSize
field of the specifiedstruct
.static java.nio.ByteBuffer
npInitialData(long struct)
Unsafe version ofpInitialData
.static void
npInitialData(long struct, java.nio.ByteBuffer value)
Unsafe version ofpInitialData
.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.ByteBuffer
pInitialData()
Returns aByteBuffer
view of the data pointed to by thepInitialData
field.VkValidationCacheCreateInfoEXT
pInitialData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepInitialData
field.long
pNext()
Returns the value of thepNext
field.VkValidationCacheCreateInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkValidationCacheCreateInfoEXT
set(int sType, long pNext, int flags, java.nio.ByteBuffer pInitialData)
Initializes this struct with the specified values.VkValidationCacheCreateInfoEXT
set(VkValidationCacheCreateInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkValidationCacheCreateInfoEXT
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
-
VkValidationCacheCreateInfoEXT
public VkValidationCacheCreateInfoEXT(java.nio.ByteBuffer container)
Creates aVkValidationCacheCreateInfoEXT
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.
-
flags
public int flags()
Returns the value of theflags
field.
-
initialDataSize
public long initialDataSize()
Returns the value of theinitialDataSize
field.
-
pInitialData
@Nullable public java.nio.ByteBuffer pInitialData()
Returns aByteBuffer
view of the data pointed to by thepInitialData
field.
-
sType
public VkValidationCacheCreateInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkValidationCacheCreateInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkValidationCacheCreateInfoEXT flags(int value)
Sets the specified value to theflags
field.
-
pInitialData
public VkValidationCacheCreateInfoEXT pInitialData(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepInitialData
field.
-
set
public VkValidationCacheCreateInfoEXT set(int sType, long pNext, int flags, @Nullable java.nio.ByteBuffer pInitialData)
Initializes this struct with the specified values.
-
set
public VkValidationCacheCreateInfoEXT set(VkValidationCacheCreateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkValidationCacheCreateInfoEXT malloc()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkValidationCacheCreateInfoEXT calloc()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkValidationCacheCreateInfoEXT create()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkValidationCacheCreateInfoEXT create(long address)
Returns a newVkValidationCacheCreateInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkValidationCacheCreateInfoEXT createSafe(long address)
-
malloc
public static VkValidationCacheCreateInfoEXT.Buffer malloc(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkValidationCacheCreateInfoEXT.Buffer calloc(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkValidationCacheCreateInfoEXT.Buffer create(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkValidationCacheCreateInfoEXT.Buffer create(long address, int capacity)
Create aVkValidationCacheCreateInfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkValidationCacheCreateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkValidationCacheCreateInfoEXT mallocStack()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkValidationCacheCreateInfoEXT callocStack()
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkValidationCacheCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkValidationCacheCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkValidationCacheCreateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkValidationCacheCreateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkValidationCacheCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkValidationCacheCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkValidationCacheCreateInfoEXT.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()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
ninitialDataSize
public static long ninitialDataSize(long struct)
Unsafe version ofinitialDataSize()
.
-
npInitialData
@Nullable public static java.nio.ByteBuffer npInitialData(long struct)
Unsafe version ofpInitialData
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nflags
public static void nflags(long struct, int value)
Unsafe version offlags
.
-
ninitialDataSize
public static void ninitialDataSize(long struct, long value)
Sets the specified value to theinitialDataSize
field of the specifiedstruct
.
-
npInitialData
public static void npInitialData(long struct, @Nullable java.nio.ByteBuffer value)
Unsafe version ofpInitialData
.
-
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
-
-