public class VkPipelineCacheCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
initialDataSize is not 0, it must be equal to the size of pInitialData, as returned by vkGetPipelineCacheData when pInitialData was originally retrievedinitialDataSize is not 0, pInitialData must have been retrieved from a previous call to vkGetPipelineCacheDatasType must be STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFOpNext must be NULLflags must be 0initialDataSize is not 0, pInitialData must be a valid pointer to an array of initialDataSize bytessType – 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 in pInitialData. If initialDataSize is zero, the pipeline cache will initially be empty.pInitialData – a pointer to previously retrieved pipeline cache data. If the pipeline cache data is incompatible (as defined below) with the device, the pipeline cache will be initially empty. If initialDataSize is zero, pInitialData is ignored.
struct VkPipelineCacheCreateInfo {
VkStructureType sType;
void const * pNext;
VkPipelineCacheCreateFlags flags;
size_t initialDataSize;
void const * pInitialData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPipelineCacheCreateInfo.Buffer
An array of
VkPipelineCacheCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
INITIALDATASIZE
The struct member offsets.
|
static int |
PINITIALDATA
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPipelineCacheCreateInfo(java.nio.ByteBuffer container)
Creates a
VkPipelineCacheCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPipelineCacheCreateInfo |
calloc()
Returns a new
VkPipelineCacheCreateInfo instance allocated with memCalloc. |
static VkPipelineCacheCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated with memCalloc. |
static VkPipelineCacheCreateInfo |
callocStack()
Returns a new
VkPipelineCacheCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineCacheCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPipelineCacheCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineCacheCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCacheCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPipelineCacheCreateInfo |
create()
Returns a new
VkPipelineCacheCreateInfo instance allocated with BufferUtils. |
static VkPipelineCacheCreateInfo.Buffer |
create(int capacity)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated with BufferUtils. |
static VkPipelineCacheCreateInfo |
create(long address)
Returns a new
VkPipelineCacheCreateInfo instance for the specified memory address. |
static VkPipelineCacheCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkPipelineCacheCreateInfo.Buffer instance at the specified memory. |
static VkPipelineCacheCreateInfo |
createSafe(long address)
|
static VkPipelineCacheCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkPipelineCacheCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
long |
initialDataSize()
Returns the value of the
initialDataSize field. |
static VkPipelineCacheCreateInfo |
malloc()
Returns a new
VkPipelineCacheCreateInfo instance allocated with memAlloc. |
static VkPipelineCacheCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated with memAlloc. |
static VkPipelineCacheCreateInfo |
mallocStack()
Returns a new
VkPipelineCacheCreateInfo instance allocated on the thread-local MemoryStack. |
static VkPipelineCacheCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkPipelineCacheCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCacheCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkPipelineCacheCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPipelineCacheCreateInfo instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
ninitialDataSize(long struct)
Unsafe version of
initialDataSize(). |
static void |
ninitialDataSize(long struct,
long value)
Sets the specified value to the
initialDataSize field of the specified struct. |
static java.nio.ByteBuffer |
npInitialData(long struct)
Unsafe version of
pInitialData. |
static void |
npInitialData(long struct,
java.nio.ByteBuffer value)
Unsafe version of
pInitialData. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
java.nio.ByteBuffer |
pInitialData()
Returns a
ByteBuffer view of the data pointed to by the pInitialData field. |
VkPipelineCacheCreateInfo |
pInitialData(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the pInitialData field. |
long |
pNext()
Returns the value of the
pNext field. |
VkPipelineCacheCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPipelineCacheCreateInfo |
set(int sType,
long pNext,
int flags,
java.nio.ByteBuffer pInitialData)
Initializes this struct with the specified values.
|
VkPipelineCacheCreateInfo |
set(VkPipelineCacheCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPipelineCacheCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int INITIALDATASIZE
public static final int PINITIALDATA
public VkPipelineCacheCreateInfo(java.nio.ByteBuffer container)
VkPipelineCacheCreateInfo instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public long initialDataSize()
initialDataSize field.@Nullable public java.nio.ByteBuffer pInitialData()
ByteBuffer view of the data pointed to by the pInitialData field.public VkPipelineCacheCreateInfo sType(int value)
sType field.public VkPipelineCacheCreateInfo pNext(long value)
pNext field.public VkPipelineCacheCreateInfo flags(int value)
flags field.public VkPipelineCacheCreateInfo pInitialData(@Nullable java.nio.ByteBuffer value)
ByteBuffer to the pInitialData field.public VkPipelineCacheCreateInfo set(int sType, long pNext, int flags, @Nullable java.nio.ByteBuffer pInitialData)
public VkPipelineCacheCreateInfo set(VkPipelineCacheCreateInfo src)
src - the source structpublic static VkPipelineCacheCreateInfo malloc()
VkPipelineCacheCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkPipelineCacheCreateInfo calloc()
VkPipelineCacheCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkPipelineCacheCreateInfo create()
VkPipelineCacheCreateInfo instance allocated with BufferUtils.public static VkPipelineCacheCreateInfo create(long address)
VkPipelineCacheCreateInfo instance for the specified memory address.@Nullable public static VkPipelineCacheCreateInfo createSafe(long address)
public static VkPipelineCacheCreateInfo.Buffer malloc(int capacity)
VkPipelineCacheCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineCacheCreateInfo.Buffer calloc(int capacity)
VkPipelineCacheCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPipelineCacheCreateInfo.Buffer create(int capacity)
VkPipelineCacheCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPipelineCacheCreateInfo.Buffer create(long address, int capacity)
VkPipelineCacheCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPipelineCacheCreateInfo.Buffer createSafe(long address, int capacity)
public static VkPipelineCacheCreateInfo mallocStack()
VkPipelineCacheCreateInfo instance allocated on the thread-local MemoryStack.public static VkPipelineCacheCreateInfo callocStack()
VkPipelineCacheCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPipelineCacheCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineCacheCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPipelineCacheCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkPipelineCacheCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPipelineCacheCreateInfo.Buffer mallocStack(int capacity)
VkPipelineCacheCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPipelineCacheCreateInfo.Buffer callocStack(int capacity)
VkPipelineCacheCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPipelineCacheCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineCacheCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPipelineCacheCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPipelineCacheCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static long ninitialDataSize(long struct)
initialDataSize().@Nullable public static java.nio.ByteBuffer npInitialData(long struct)
pInitialData.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void ninitialDataSize(long struct,
long value)
initialDataSize field of the specified struct.public static void npInitialData(long struct,
@Nullable
java.nio.ByteBuffer value)
pInitialData.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.