Class VkSpecializationInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkSpecializationInfo
    extends Struct
    implements NativeResource
    Structure specifying specialization info.

    pMapEntries points to a structure of type VkSpecializationMapEntry.

    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
    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, VkSpecializationMapEntry

    Member documentation

    • mapEntryCount – the number of entries in the pMapEntries array.
    • pMapEntries – a pointer to an array of VkSpecializationMapEntry which maps constant IDs to offsets in pData.
    • dataSize – the byte size of the pData buffer.
    • pData – contains the actual constant values to specialize with.


     struct VkSpecializationInfo {
         uint32_t mapEntryCount;
         VkSpecializationMapEntry const * pMapEntries;
         size_t dataSize;
         void const * pData;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VkSpecializationInfo

        public VkSpecializationInfo​(java.nio.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.