Class VkSpecializationInfo

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

public class VkSpecializationInfo extends org.lwjgl.system.Struct<VkSpecializationInfo> implements org.lwjgl.system.NativeResource
Structure specifying specialization information.
Valid Usage
  • The offset member of each element of pMapEntries must be less than dataSize
  • The size member of each element of pMapEntries must be less than or equal to dataSize minus offset
  • The constantID value of each element of pMapEntries must be unique within pMapEntries
Valid Usage (Implicit)
  • If mapEntryCount is not 0, pMapEntries must be a valid pointer to an array of mapEntryCount valid VkSpecializationMapEntry structures
  • If dataSize is not 0, pData must be a valid pointer to an array of dataSize bytes
See Also

VkPipelineShaderStageCreateInfo, VkShaderCreateInfoEXT, VkSpecializationMapEntry

Layout


 struct VkSpecializationInfo {
     uint32_t mapEntryCount();
     VkSpecializationMapEntry const * pMapEntries();
     size_t dataSize();
     void const * pData();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MAPENTRYCOUNT
      The struct member offsets.
    • PMAPENTRIES

      public static final int PMAPENTRIES
      The struct member offsets.
    • DATASIZE

      public static final int DATASIZE
      The struct member offsets.
    • PDATA

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

    • VkSpecializationInfo

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