Class VkPhysicalDeviceGroupProperties

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

    public class VkPhysicalDeviceGroupProperties
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying physical device group properties.
    Valid Usage (Implicit)
    See Also

    EnumeratePhysicalDeviceGroups, EnumeratePhysicalDeviceGroupsKHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • physicalDeviceCount – the number of physical devices in the group.
    • physicalDevices[VK_MAX_DEVICE_GROUP_SIZE] – an array of physical device handles representing all physical devices in the group. The first physicalDeviceCount elements of the array will be valid.
    • subsetAllocation – specifies whether logical devices created from the group support allocating device memory on a subset of devices, via the deviceMask member of the VkMemoryAllocateFlagsInfo. If this is FALSE, then all device memory allocations are made across all physical devices in the group. If physicalDeviceCount is 1, then subsetAllocation must be FALSE.

    Layout

    
     struct VkPhysicalDeviceGroupProperties {
         VkStructureType sType;
         void * pNext;
         uint32_t physicalDeviceCount;
         VkPhysicalDevice physicalDevices[VK_MAX_DEVICE_GROUP_SIZE];
         VkBool32 subsetAllocation;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, PHYSICALDEVICECOUNT, PHYSICALDEVICES, SUBSETALLOCATION

        The struct member offsets.
    • Constructor Detail

      • VkPhysicalDeviceGroupProperties

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

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • physicalDeviceCount

        public int physicalDeviceCount()
        Returns the value of the physicalDeviceCount field.
      • physicalDevices

        public org.lwjgl.PointerBuffer physicalDevices()
        Returns a PointerBuffer view of the physicalDevices field.
      • physicalDevices

        public long physicalDevices​(int index)
        Returns the value at the specified index of the physicalDevices field.
      • subsetAllocation

        public boolean subsetAllocation()
        Returns the value of the subsetAllocation field.
      • malloc

        public static VkPhysicalDeviceGroupProperties malloc()
        Returns a new VkPhysicalDeviceGroupProperties instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkPhysicalDeviceGroupProperties calloc()
        Returns a new VkPhysicalDeviceGroupProperties instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkPhysicalDeviceGroupProperties create​(long address)
        Returns a new VkPhysicalDeviceGroupProperties instance for the specified memory address.
      • mallocStack

        public static VkPhysicalDeviceGroupProperties mallocStack()
        Returns a new VkPhysicalDeviceGroupProperties instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkPhysicalDeviceGroupProperties callocStack()
        Returns a new VkPhysicalDeviceGroupProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkPhysicalDeviceGroupProperties mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkPhysicalDeviceGroupProperties instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkPhysicalDeviceGroupProperties callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkPhysicalDeviceGroupProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nphysicalDeviceCount

        public static int nphysicalDeviceCount​(long struct)
        Unsafe version of physicalDeviceCount().
      • nphysicalDevices

        public static org.lwjgl.PointerBuffer nphysicalDevices​(long struct)
        Unsafe version of physicalDevices().
      • nphysicalDevices

        public static long nphysicalDevices​(long struct,
                                            int index)
        Unsafe version of physicalDevices.
      • nsubsetAllocation

        public static int nsubsetAllocation​(long struct)
        Unsafe version of subsetAllocation().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.