Class VkSpecializationMapEntry

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

    public class VkSpecializationMapEntry
    extends Struct
    implements NativeResource
    Structure specifying a specialization map entry.
    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

    Member documentation

    • constantID – the ID of the specialization constant in SPIR-V.
    • offset – the byte offset of the specialization constant value within the supplied data buffer.
    • size – the byte size of the specialization constant value within the supplied data buffer.

    Layout

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