Class VkPhysicalDeviceFeatures2

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
    Direct Known Subclasses:
    VkPhysicalDeviceFeatures2KHR

    public class VkPhysicalDeviceFeatures2
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing the fine-grained features that can be supported by an implementation.
    Description

    The pNext chain of this structure is used to extend the structure with features defined by extensions. This structure can be used in GetPhysicalDeviceFeatures2 or can be in the pNext chain of a VkDeviceCreateInfo structure, in which case it controls which features are enabled in the device in lieu of pEnabledFeatures.

    Valid Usage (Implicit)
    See Also

    VkPhysicalDeviceFeatures, GetPhysicalDeviceFeatures2, GetPhysicalDeviceFeatures2KHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • features – a structure of type VkPhysicalDeviceFeatures describing the fine-grained features of the Vulkan 1.0 API.

    Layout

    
     struct VkPhysicalDeviceFeatures2 {
         VkStructureType sType;
         void * pNext;
         VkPhysicalDeviceFeatures features;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FEATURES

        The struct member offsets.
    • Constructor Detail

      • VkPhysicalDeviceFeatures2

        public VkPhysicalDeviceFeatures2​(java.nio.ByteBuffer container)
        Creates a VkPhysicalDeviceFeatures2 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.