Class SDL_GPUVulkanOptions

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUVulkanOptions extends Struct<SDL_GPUVulkanOptions> implements NativeResource
struct SDL_GPUVulkanOptions {
    Uint32 vulkan_api_version;
    void * feature_list;
    void * vulkan_10_physical_device_features;
    Uint32 device_extension_count;
    char const ** device_extension_names;
    Uint32 instance_extension_count;
    char const ** instance_extension_names;
}
  • Field Details

    • SIZEOF

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

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

      public static final int VULKAN_API_VERSION
      The struct member offsets.
    • FEATURE_LIST

      public static final int FEATURE_LIST
      The struct member offsets.
    • VULKAN_10_PHYSICAL_DEVICE_FEATURES

      public static final int VULKAN_10_PHYSICAL_DEVICE_FEATURES
      The struct member offsets.
    • DEVICE_EXTENSION_COUNT

      public static final int DEVICE_EXTENSION_COUNT
      The struct member offsets.
    • DEVICE_EXTENSION_NAMES

      public static final int DEVICE_EXTENSION_NAMES
      The struct member offsets.
    • INSTANCE_EXTENSION_COUNT

      public static final int INSTANCE_EXTENSION_COUNT
      The struct member offsets.
    • INSTANCE_EXTENSION_NAMES

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

    • SDL_GPUVulkanOptions

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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<SDL_GPUVulkanOptions>
    • 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 vulkan_api_version(@NativeType("Uint32") int value)
      Sets the specified value to the vulkan_api_version field.
    • feature_list

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

      public SDL_GPUVulkanOptions 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 device_extension_count(@NativeType("Uint32") int value)
      Sets the specified value to the device_extension_count field.
    • device_extension_names

      public SDL_GPUVulkanOptions 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 instance_extension_count(@NativeType("Uint32") int value)
      Sets the specified value to the instance_extension_count field.
    • instance_extension_names

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

      public SDL_GPUVulkanOptions set(int vulkan_api_version, long feature_list, long vulkan_10_physical_device_features, int device_extension_count, @Nullable PointerBuffer device_extension_names, int instance_extension_count, @Nullable PointerBuffer instance_extension_names)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

      public static SDL_GPUVulkanOptions create()
      Returns a new SDL_GPUVulkanOptions instance allocated with BufferUtils.
    • create

      public static SDL_GPUVulkanOptions create(long address)
      Returns a new SDL_GPUVulkanOptions instance for the specified memory address.
    • createSafe

      public static @Nullable SDL_GPUVulkanOptions createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static SDL_GPUVulkanOptions.Buffer malloc(int capacity)
      Returns a new SDL_GPUVulkanOptions.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static SDL_GPUVulkanOptions.Buffer calloc(int capacity)
      Returns a new SDL_GPUVulkanOptions.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static SDL_GPUVulkanOptions.Buffer create(int capacity)
      Returns a new SDL_GPUVulkanOptions.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static SDL_GPUVulkanOptions.Buffer create(long address, int capacity)
      Create a SDL_GPUVulkanOptions.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable SDL_GPUVulkanOptions.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static SDL_GPUVulkanOptions malloc(MemoryStack stack)
      Returns a new SDL_GPUVulkanOptions instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static SDL_GPUVulkanOptions calloc(MemoryStack stack)
      Returns a new SDL_GPUVulkanOptions instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static SDL_GPUVulkanOptions.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUVulkanOptions.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static SDL_GPUVulkanOptions.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUVulkanOptions.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nvulkan_api_version

      public static int nvulkan_api_version(long struct)
      Unsafe version of vulkan_api_version().
    • nfeature_list

      public static long nfeature_list(long struct)
      Unsafe version of feature_list().
    • nvulkan_10_physical_device_features

      public static long nvulkan_10_physical_device_features(long struct)
    • ndevice_extension_count

      public static int ndevice_extension_count(long struct)
      Unsafe version of device_extension_count().
    • ndevice_extension_names

      public static @Nullable PointerBuffer ndevice_extension_names(long struct)
      Unsafe version of device_extension_names.
    • ninstance_extension_count

      public static int ninstance_extension_count(long struct)
      Unsafe version of instance_extension_count().
    • ninstance_extension_names

      public static @Nullable PointerBuffer ninstance_extension_names(long struct)
      Unsafe version of instance_extension_names.
    • nvulkan_api_version

      public static void nvulkan_api_version(long struct, int value)
      Unsafe version of vulkan_api_version.
    • nfeature_list

      public static void nfeature_list(long struct, long value)
      Unsafe version of feature_list.
    • nvulkan_10_physical_device_features

      public static void nvulkan_10_physical_device_features(long struct, long value)
    • ndevice_extension_count

      public static void ndevice_extension_count(long struct, int value)
      Sets the specified value to the device_extension_count field of the specified struct.
    • ndevice_extension_names

      public static void ndevice_extension_names(long struct, @Nullable PointerBuffer value)
      Unsafe version of device_extension_names.
    • ninstance_extension_count

      public static void ninstance_extension_count(long struct, int value)
      Sets the specified value to the instance_extension_count field of the specified struct.
    • ninstance_extension_names

      public static void ninstance_extension_names(long struct, @Nullable PointerBuffer value)
      Unsafe version of instance_extension_names.