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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineCacheCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created pipeline cache.Valid Usage
- If
initialDataSizeis not 0, it must be equal to the size ofpInitialData, as returned byvkGetPipelineCacheDatawhenpInitialDatawas originally retrieved - If
initialDataSizeis not 0,pInitialDatamust have been retrieved from a previous call tovkGetPipelineCacheData - If the
pipelineCreationCacheControlfeature is not enabled,flagsmust not includePIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFOpNextmust beNULLflagsmust be a valid combination ofVkPipelineCacheCreateFlagBitsvalues- If
initialDataSizeis not 0,pInitialDatamust be a valid pointer to an array ofinitialDataSizebytes
See Also
Layout
struct VkPipelineCacheCreateInfo { VkStructureTypesType(); void const *pNext(); VkPipelineCacheCreateFlagsflags(); size_tinitialDataSize(); void const *pInitialData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineCacheCreateInfo.BufferAn array ofVkPipelineCacheCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLAGS
INITIALDATASIZE
PINITIALDATA
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineCacheCreateInfo(java.nio.ByteBuffer container)Creates aVkPipelineCacheCreateInfoinstance 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 VkPipelineCacheCreateInfocalloc()Returns a newVkPipelineCacheCreateInfoinstance allocated withmemCalloc.static VkPipelineCacheCreateInfo.Buffercalloc(int capacity)Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated withmemCalloc.static VkPipelineCacheCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineCacheCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCacheCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineCacheCreateInfocallocStack()Deprecated.static VkPipelineCacheCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkPipelineCacheCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineCacheCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineCacheCreateInfocreate()Returns a newVkPipelineCacheCreateInfoinstance allocated withBufferUtils.static VkPipelineCacheCreateInfo.Buffercreate(int capacity)Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated withBufferUtils.static VkPipelineCacheCreateInfocreate(long address)Returns a newVkPipelineCacheCreateInfoinstance for the specified memory address.static VkPipelineCacheCreateInfo.Buffercreate(long address, int capacity)Create aVkPipelineCacheCreateInfo.Bufferinstance at the specified memory.static VkPipelineCacheCreateInfocreateSafe(long address)static VkPipelineCacheCreateInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkPipelineCacheCreateFlagBitsspecifying the behavior of the pipeline cache.VkPipelineCacheCreateInfoflags(int value)Sets the specified value to theflags()field.longinitialDataSize()the number of bytes inpInitialData.static VkPipelineCacheCreateInfomalloc()Returns a newVkPipelineCacheCreateInfoinstance allocated withmemAlloc.static VkPipelineCacheCreateInfo.Buffermalloc(int capacity)Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated withmemAlloc.static VkPipelineCacheCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineCacheCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineCacheCreateInfoinstance allocated on the specifiedMemoryStack.static VkPipelineCacheCreateInfomallocStack()Deprecated.static VkPipelineCacheCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkPipelineCacheCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineCacheCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longninitialDataSize(long struct)Unsafe version ofinitialDataSize().static voidninitialDataSize(long struct, long value)Sets the specified value to theinitialDataSizefield of the specifiedstruct.static java.nio.ByteBuffernpInitialData(long struct)Unsafe version ofpInitialData.static voidnpInitialData(long struct, java.nio.ByteBuffer value)Unsafe version ofpInitialData.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.ByteBufferpInitialData()a pointer to previously retrieved pipeline cache data.VkPipelineCacheCreateInfopInitialData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thepInitialData()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineCacheCreateInfopNext(long value)Sets the specified value to thepNext()field.VkPipelineCacheCreateInfoset(int sType, long pNext, int flags, java.nio.ByteBuffer pInitialData)Initializes this struct with the specified values.VkPipelineCacheCreateInfoset(VkPipelineCacheCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineCacheCreateInfosType(int value)Sets the specified value to thesType()field.VkPipelineCacheCreateInfosType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkPipelineCacheCreateInfo
public VkPipelineCacheCreateInfo(java.nio.ByteBuffer container)
Creates aVkPipelineCacheCreateInfoinstance 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.
-
flags
public int flags()
a bitmask ofVkPipelineCacheCreateFlagBitsspecifying the behavior of the pipeline cache.
-
initialDataSize
public long initialDataSize()
the number of bytes inpInitialData. IfinitialDataSizeis zero, the pipeline cache will initially be empty.
-
pInitialData
@Nullable public java.nio.ByteBuffer 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. IfinitialDataSizeis zero,pInitialDatais ignored.
-
sType
public VkPipelineCacheCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineCacheCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFOvalue 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(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thepInitialData()field.
-
set
public VkPipelineCacheCreateInfo set(int sType, long pNext, int flags, @Nullable java.nio.ByteBuffer pInitialData)
Initializes this struct with the specified values.
-
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 newVkPipelineCacheCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineCacheCreateInfo calloc()
Returns a newVkPipelineCacheCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineCacheCreateInfo create()
Returns a newVkPipelineCacheCreateInfoinstance allocated withBufferUtils.
-
create
public static VkPipelineCacheCreateInfo create(long address)
Returns a newVkPipelineCacheCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineCacheCreateInfo createSafe(long address)
-
malloc
public static VkPipelineCacheCreateInfo.Buffer malloc(int capacity)
Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineCacheCreateInfo.Buffer calloc(int capacity)
Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineCacheCreateInfo.Buffer create(int capacity)
Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineCacheCreateInfo.Buffer create(long address, int capacity)
Create aVkPipelineCacheCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineCacheCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPipelineCacheCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineCacheCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineCacheCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineCacheCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineCacheCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineCacheCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineCacheCreateInfo.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 VkPipelineCacheCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineCacheCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCacheCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineCacheCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCacheCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineCacheCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineCacheCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineCacheCreateInfo.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().
-
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 theinitialDataSizefield 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
-
-