VKSPECIALIZATIONMAPE(3)

NAME
VkSpecializationMapEntry - Structure specifying a specialization map entry

C SPECIFICATION

The VkSpecializationMapEntry structure is defined as:

    typedef struct VkSpecializationMapEntry {
        uint32_t    constantID;
        uint32_t    offset;
        size_t      size;
    } VkSpecializationMapEntry;

MEMBERS

    • constantID is the ID of the specialization constant in SPIR-V.

    • offset is the byte offset of the specialization constant value within the supplied data buffer.

    • size is the byte size of the specialization constant value within the supplied data buffer.

DESCRIPTION

If a constantID value is not a specialization constant ID used in the shader, that map entry does not affect the behavior of the pipeline. Valid Usage

    • For a constantID specialization constant declared in a shader, size must match the byte size of the constantID. If the specialization constant is of type boolean, size must be the byte size of VkBool32

SEE ALSO

VkSpecializationInfo

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

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

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.