Class VkDescriptorPoolSize

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

public class VkDescriptorPoolSize extends org.lwjgl.system.Struct<VkDescriptorPoolSize> implements org.lwjgl.system.NativeResource
Structure specifying descriptor pool size.
Description
Note

When creating a descriptor pool that will contain descriptors for combined image samplers of multi-planar formats, an application needs to account for non-trivial descriptor consumption when choosing the descriptorCount value, as indicated by VkSamplerYcbcrConversionImageFormatProperties::combinedImageSamplerDescriptorCount.

For simplicity the application can use the VkPhysicalDeviceMaintenance6Properties::maxCombinedImageSamplerDescriptorCount property, which is sized to accommodate any and all formats that require a sampler Y′CBCR conversion supported by the implementation.

Valid Usage
Valid Usage (Implicit)
  • type must be a valid VkDescriptorType value
See Also

VkDescriptorPoolCreateInfo

Layout


 struct VkDescriptorPoolSize {
     VkDescriptorType type();
     uint32_t descriptorCount();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • DESCRIPTORCOUNT

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

    • VkDescriptorPoolSize

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