VKSPECIALIZATIONINFO(3)

NAME
VkSpecializationInfo - Structure specifying specialization info

C SPECIFICATION

The VkSpecializationInfo structure is defined as:

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

MEMBERS

    • mapEntryCount is the number of entries in the pMapEntries array.

    • pMapEntries is a pointer to an array of VkSpecializationMapEntry which maps constant IDs to offsets in pData.

    • dataSize is the byte size of the pData buffer.

    • pData contains the actual constant values to specialize with.

DESCRIPTION

pMapEntries points to a structure of type VkSpecializationMapEntry. Valid Usage

    • The offset member of any given element of pMapEntries must be less than dataSize

    • For any given element of pMapEntries, size must be less than or equal to dataSize minus offset
Valid Usage (Implicit)

    • If mapEntryCount is not 0, pMapEntries must be a pointer to an array of mapEntryCount valid VkSpecializationMapEntry structures

    • If dataSize is not 0, pData must be a pointer to an array of dataSize bytes

SEE ALSO

VkPipelineShaderStageCreateInfo, VkSpecializationMapEntry

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#VkSpecializationInfo

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.

COPYRIGHT

Copyright (c) 2014-2016 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.

AUTHOR

Khronos Group
    Author.