Class SDL_GPUVulkanOptions.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_GPUVulkanOptions>, NativeResource, Pointer
Enclosing class:
SDL_GPUVulkanOptions

public static class SDL_GPUVulkanOptions.Buffer extends StructBuffer<SDL_GPUVulkanOptions, SDL_GPUVulkanOptions.Buffer> implements NativeResource
An array of SDL_GPUVulkanOptions structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_GPUVulkanOptions.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SDL_GPUVulkanOptions.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • vulkan_api_version

      @NativeType("Uint32") public int vulkan_api_version()
      Returns:
      the value of the vulkan_api_version field.
    • feature_list

      @NativeType("void *") public long feature_list()
      Returns:
      the value of the feature_list field.
    • vulkan_10_physical_device_features

      @NativeType("void *") public long vulkan_10_physical_device_features()
      Returns:
      the value of the vulkan_10_physical_device_features field.
    • device_extension_count

      @NativeType("Uint32") public int device_extension_count()
      Returns:
      the value of the device_extension_count field.
    • device_extension_names

      @NativeType("char const **") public @Nullable PointerBuffer device_extension_names()
      Returns:
      a PointerBuffer view of the data pointed to by the device_extension_names field.
    • instance_extension_count

      @NativeType("Uint32") public int instance_extension_count()
      Returns:
      the value of the instance_extension_count field.
    • instance_extension_names

      @NativeType("char const **") public @Nullable PointerBuffer instance_extension_names()
      Returns:
      a PointerBuffer view of the data pointed to by the instance_extension_names field.
    • vulkan_api_version

      public SDL_GPUVulkanOptions.Buffer vulkan_api_version(@NativeType("Uint32") int value)
      Sets the specified value to the vulkan_api_version field.
    • feature_list

      public SDL_GPUVulkanOptions.Buffer feature_list(@NativeType("void *") long value)
      Sets the specified value to the feature_list field.
    • vulkan_10_physical_device_features

      public SDL_GPUVulkanOptions.Buffer vulkan_10_physical_device_features(@NativeType("void *") long value)
      Sets the specified value to the vulkan_10_physical_device_features field.
    • device_extension_count

      public SDL_GPUVulkanOptions.Buffer device_extension_count(@NativeType("Uint32") int value)
      Sets the specified value to the device_extension_count field.
    • device_extension_names

      public SDL_GPUVulkanOptions.Buffer device_extension_names(@NativeType("char const **") @Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the device_extension_names field.
    • instance_extension_count

      public SDL_GPUVulkanOptions.Buffer instance_extension_count(@NativeType("Uint32") int value)
      Sets the specified value to the instance_extension_count field.
    • instance_extension_names

      public SDL_GPUVulkanOptions.Buffer instance_extension_names(@NativeType("char const **") @Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the instance_extension_names field.