Class VkPhysicalDeviceSubgroupProperties

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

    public class VkPhysicalDeviceSubgroupProperties
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing subgroup support for an implementation.
    Description

    If the VkPhysicalDeviceSubgroupProperties structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.

    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • subgroupSize – the default number of invocations in each subgroup. subgroupSize is at least 1 if any of the physical device’s queues support QUEUE_GRAPHICS_BIT or QUEUE_COMPUTE_BIT.
    • supportedStages – a bitfield of VkShaderStageFlagBits describing the shader stages that subgroup operations are supported in. supportedStages will have the SHADER_STAGE_COMPUTE_BIT bit set if any of the physical device’s queues support QUEUE_COMPUTE_BIT.
    • supportedOperations – a bitmask of VkSubgroupFeatureFlagBits specifying the sets of subgroup operations supported on this device. supportedOperations will have the SUBGROUP_FEATURE_BASIC_BIT bit set if any of the physical device’s queues support QUEUE_GRAPHICS_BIT or QUEUE_COMPUTE_BIT.
    • quadOperationsInAllStages – a boolean that specifies whether quad subgroup operations are available in all stages, or are restricted to fragment and compute stages.

    Layout

    
     struct VkPhysicalDeviceSubgroupProperties {
         VkStructureType sType;
         void * pNext;
         uint32_t subgroupSize;
         VkShaderStageFlags supportedStages;
         VkSubgroupFeatureFlags supportedOperations;
         VkBool32 quadOperationsInAllStages;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, SUBGROUPSIZE, SUPPORTEDSTAGES, SUPPORTEDOPERATIONS, QUADOPERATIONSINALLSTAGES

        The struct member offsets.
    • Constructor Detail

      • VkPhysicalDeviceSubgroupProperties

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