Package org.lwjgl.vulkan
Class VkPipelineCacheCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineCacheCreateInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkPipelineCacheCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how a pipeline cache object should be created.
Valid Usage
sType
must beSTRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO
pNext
must beNULL
flags
must be 0- If
initialDataSize
is not 0,pInitialData
must be a pointer to an array ofinitialDataSize
bytes - If
initialDataSize
is not 0, it must be equal to the size ofpInitialData
, as returned byGetPipelineCacheData
whenpInitialData
was originally retrieved - If
initialDataSize
is not 0,pInitialData
must have been retrieved from a previous call toGetPipelineCacheData
Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO
pNext
– reserved for use by extensionsflags
– reserved for future useinitialDataSize
– the number of bytes inpInitialData
pInitialData
– a pointer to previously retrieved pipeline cache data
Layout
struct VkPipelineCacheCreateInfo { VkStructureType sType; const void * pNext; VkPipelineCacheCreateFlags flags; size_t initialDataSize; const void * pInitialData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkPipelineCacheCreateInfo.Buffer
An array ofVkPipelineCacheCreateInfo
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkPipelineCacheCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineCacheCreateInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkPipelineCacheCreateInfo
calloc()
Returns a newVkPipelineCacheCreateInfo
instance allocated withmemCalloc
.static VkPipelineCacheCreateInfo.Buffer
calloc(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated withmemCalloc
.static VkPipelineCacheCreateInfo
callocStack()
Returns a newVkPipelineCacheCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineCacheCreateInfo.Buffer
callocStack(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineCacheCreateInfo.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineCacheCreateInfo
callocStack(MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineCacheCreateInfo
create()
Returns a newVkPipelineCacheCreateInfo
instance allocated withBufferUtils
.static VkPipelineCacheCreateInfo.Buffer
create(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated withBufferUtils
.static VkPipelineCacheCreateInfo
create(long address)
Returns a newVkPipelineCacheCreateInfo
instance for the specified memory address ornull
if the address isNULL
.static VkPipelineCacheCreateInfo.Buffer
create(long address, int capacity)
Create aVkPipelineCacheCreateInfo.Buffer
instance at the specified memory.int
flags()
Returns the value of theflags
field.VkPipelineCacheCreateInfo
flags(int value)
Sets the specified value to theflags
field.long
initialDataSize()
Returns the value of theinitialDataSize
field.static VkPipelineCacheCreateInfo
malloc()
Returns a newVkPipelineCacheCreateInfo
instance allocated withmemAlloc
.static VkPipelineCacheCreateInfo.Buffer
malloc(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated withmemAlloc
.static VkPipelineCacheCreateInfo
mallocStack()
Returns a newVkPipelineCacheCreateInfo
instance allocated on the thread-localMemoryStack
.static VkPipelineCacheCreateInfo.Buffer
mallocStack(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineCacheCreateInfo.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineCacheCreateInfo
mallocStack(MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo
instance allocated on the specifiedMemoryStack
.VkPipelineCacheCreateInfo
nset(long struct)
Unsafe version ofset
.java.nio.ByteBuffer
pInitialData()
Returns aByteBuffer
view of the data pointed to by thepInitialData
field.VkPipelineCacheCreateInfo
pInitialData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepInitialData
field.long
pNext()
Returns the value of thepNext
field.VkPipelineCacheCreateInfo
pNext(long value)
Sets the specified value to thepNext
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()
Returns thesizeof(struct)
.int
sType()
Returns the value of thesType
field.VkPipelineCacheCreateInfo
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)
CallsVkPipelineCacheCreateInfo.validate(long)
for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkPipelineCacheCreateInfo
public VkPipelineCacheCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineCacheCreateInfo
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()
Description copied from class:Struct
Returns thesizeof(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
public java.nio.ByteBuffer pInitialData()
Returns aByteBuffer
view of the data pointed to by thepInitialData
field.
-
sType
public VkPipelineCacheCreateInfo sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineCacheCreateInfo pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkPipelineCacheCreateInfo flags(int value)
Sets the specified value to theflags
field.
-
pInitialData
public VkPipelineCacheCreateInfo pInitialData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepInitialData
field.
-
set
public VkPipelineCacheCreateInfo set(int sType, long pNext, int flags, java.nio.ByteBuffer pInitialData)
Initializes this struct with the specified values.
-
nset
public VkPipelineCacheCreateInfo nset(long struct)
Unsafe version ofset
.
-
set
public VkPipelineCacheCreateInfo set(VkPipelineCacheCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineCacheCreateInfo malloc()
Returns a newVkPipelineCacheCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineCacheCreateInfo calloc()
Returns a newVkPipelineCacheCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineCacheCreateInfo create()
Returns a newVkPipelineCacheCreateInfo
instance allocated withBufferUtils
.
-
create
public static VkPipelineCacheCreateInfo create(long address)
Returns a newVkPipelineCacheCreateInfo
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkPipelineCacheCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineCacheCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineCacheCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineCacheCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineCacheCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkPipelineCacheCreateInfo mallocStack()
Returns a newVkPipelineCacheCreateInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineCacheCreateInfo callocStack()
Returns a newVkPipelineCacheCreateInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineCacheCreateInfo mallocStack(MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineCacheCreateInfo callocStack(MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPipelineCacheCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineCacheCreateInfo.Buffer callocStack(int capacity)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineCacheCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPipelineCacheCreateInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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)
CallsVkPipelineCacheCreateInfo.validate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-