Class VkSpecializationMapEntry

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkSpecializationMapEntry>
org.lwjgl.vulkan.VkSpecializationMapEntry
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkSpecializationMapEntry extends org.lwjgl.system.Struct<VkSpecializationMapEntry> implements org.lwjgl.system.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

Layout


 struct VkSpecializationMapEntry {
     uint32_t constantID();
     uint32_t offset();
     size_t size();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • CONSTANTID

      public static final int CONSTANTID
      The struct member offsets.
    • OFFSET

      public static final int OFFSET
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
  • Constructor Details

    • VkSpecializationMapEntry

      public VkSpecializationMapEntry(ByteBuffer container)
      Creates a VkSpecializationMapEntry 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.

  • Method Details