Class VkPipelineCacheCreateInfo

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPipelineCacheCreateInfo>
org.lwjgl.vulkan.VkPipelineCacheCreateInfo
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkPipelineCacheCreateInfo extends org.lwjgl.system.Struct<VkPipelineCacheCreateInfo> implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created pipeline cache.
Valid Usage
  • If initialDataSize is not 0, it must be equal to the size of pInitialData, as returned by vkGetPipelineCacheData when pInitialData was originally retrieved
  • If initialDataSize is not 0, pInitialData must have been retrieved from a previous call to vkGetPipelineCacheData
  • If the pipelineCreationCacheControl feature is not enabled, flags must not include PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO
  • pNext must be NULL
  • flags must be a valid combination of VkPipelineCacheCreateFlagBits values
  • If initialDataSize is not 0, pInitialData must be a valid pointer to an array of initialDataSize bytes
See Also

CreatePipelineCache

Layout


 struct VkPipelineCacheCreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkPipelineCacheCreateFlags flags();
     size_t initialDataSize();
     void const * pInitialData();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • INITIALDATASIZE

      public static final int INITIALDATASIZE
      The struct member offsets.
    • PINITIALDATA

      public static final int PINITIALDATA
      The struct member offsets.
  • Constructor Details

    • VkPipelineCacheCreateInfo

      public VkPipelineCacheCreateInfo(ByteBuffer container)
      Creates a 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.

  • Method Details