Class VkSpecializationInfo

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

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

    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.

    Layout

    
     struct VkSpecializationInfo {
         uint32_t mapEntryCount;
         VkSpecializationMapEntry const * pMapEntries;
         size_t dataSize;
         void const * pData;
     }