Package org.lwjgl.vulkan
Class VkPipelineLibraryCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineLibraryCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPipelineLibraryCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying pipeline libraries to use when creating a pipeline.Valid Usage
- Each element of
pLibrariesmust have been created withPIPELINE_CREATE_LIBRARY_BIT_KHR
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_LIBRARY_CREATE_INFO_KHRpNextmust beNULL- If
libraryCountis not 0,pLibrariesmust be a valid pointer to an array oflibraryCountvalidVkPipelinehandles
See Also
VkRayTracingPipelineCreateInfoKHRLayout
struct VkPipelineLibraryCreateInfoKHR { VkStructureTypesType(); void const *pNext(); uint32_tlibraryCount(); VkPipeline const *pLibraries(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineLibraryCreateInfoKHR.BufferAn array ofVkPipelineLibraryCreateInfoKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLIBRARYCOUNT
PLIBRARIES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineLibraryCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkPipelineLibraryCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineLibraryCreateInfoKHRcalloc()Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated withmemCalloc.static VkPipelineLibraryCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkPipelineLibraryCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineLibraryCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineLibraryCreateInfoKHRcreate()Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated withBufferUtils.static VkPipelineLibraryCreateInfoKHR.Buffercreate(int capacity)Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkPipelineLibraryCreateInfoKHRcreate(long address)Returns a newVkPipelineLibraryCreateInfoKHRinstance for the specified memory address.static VkPipelineLibraryCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkPipelineLibraryCreateInfoKHR.Bufferinstance at the specified memory.static VkPipelineLibraryCreateInfoKHRcreateSafe(long address)static VkPipelineLibraryCreateInfoKHR.BuffercreateSafe(long address, int capacity)intlibraryCount()the number of pipeline libraries inpLibraries.static VkPipelineLibraryCreateInfoKHRmalloc()Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated withmemAlloc.static VkPipelineLibraryCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkPipelineLibraryCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineLibraryCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated on the specifiedMemoryStack.static intnlibraryCount(long struct)Unsafe version oflibraryCount().static voidnlibraryCount(long struct, int value)Sets the specified value to thelibraryCountfield of the specifiedstruct.static java.nio.LongBuffernpLibraries(long struct)Unsafe version ofpLibraries.static voidnpLibraries(long struct, java.nio.LongBuffer value)Unsafe version ofpLibraries.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.LongBufferpLibraries()a pointer to an array ofVkPipelinestructures specifying pipeline libraries to use when creating a pipeline.VkPipelineLibraryCreateInfoKHRpLibraries(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepLibraries()field.longpNext()NULLor a pointer to a structure extending this structure.VkPipelineLibraryCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkPipelineLibraryCreateInfoKHRset(int sType, long pNext, java.nio.LongBuffer pLibraries)Initializes this struct with the specified values.VkPipelineLibraryCreateInfoKHRset(VkPipelineLibraryCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPipelineLibraryCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkPipelineLibraryCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_LIBRARY_CREATE_INFO_KHRvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkPipelineLibraryCreateInfoKHR
public VkPipelineLibraryCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkPipelineLibraryCreateInfoKHRinstance 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.
-
libraryCount
public int libraryCount()
the number of pipeline libraries inpLibraries.
-
pLibraries
@Nullable public java.nio.LongBuffer pLibraries()
a pointer to an array ofVkPipelinestructures specifying pipeline libraries to use when creating a pipeline.
-
sType
public VkPipelineLibraryCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineLibraryCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_LIBRARY_CREATE_INFO_KHRvalue to thesType()field.
-
pNext
public VkPipelineLibraryCreateInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
pLibraries
public VkPipelineLibraryCreateInfoKHR pLibraries(@Nullable java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepLibraries()field.
-
set
public VkPipelineLibraryCreateInfoKHR set(int sType, long pNext, @Nullable java.nio.LongBuffer pLibraries)
Initializes this struct with the specified values.
-
set
public VkPipelineLibraryCreateInfoKHR set(VkPipelineLibraryCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineLibraryCreateInfoKHR malloc()
Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineLibraryCreateInfoKHR calloc()
Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineLibraryCreateInfoKHR create()
Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkPipelineLibraryCreateInfoKHR create(long address)
Returns a newVkPipelineLibraryCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineLibraryCreateInfoKHR createSafe(long address)
-
malloc
public static VkPipelineLibraryCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineLibraryCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineLibraryCreateInfoKHR.Buffer create(int capacity)
Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineLibraryCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkPipelineLibraryCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPipelineLibraryCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPipelineLibraryCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineLibraryCreateInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineLibraryCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPipelineLibraryCreateInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineLibraryCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPipelineLibraryCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineLibraryCreateInfoKHR.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().
-
nlibraryCount
public static int nlibraryCount(long struct)
Unsafe version oflibraryCount().
-
npLibraries
@Nullable public static java.nio.LongBuffer npLibraries(long struct)
Unsafe version ofpLibraries.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nlibraryCount
public static void nlibraryCount(long struct, int value)Sets the specified value to thelibraryCountfield of the specifiedstruct.
-
npLibraries
public static void npLibraries(long struct, @Nullable java.nio.LongBuffer value)Unsafe version ofpLibraries.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-