Class SDL_GPUVulkanOptions
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUVulkanOptions(ByteBuffer container) Creates aSDL_GPUVulkanOptionsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUVulkanOptionscalloc()Returns a newSDL_GPUVulkanOptionsinstance allocated withmemCalloc.static SDL_GPUVulkanOptions.Buffercalloc(int capacity) Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated withmemCalloc.static SDL_GPUVulkanOptions.Buffercalloc(int capacity, MemoryStack stack) Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUVulkanOptionscalloc(MemoryStack stack) Returns a newSDL_GPUVulkanOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUVulkanOptionscreate()Returns a newSDL_GPUVulkanOptionsinstance allocated withBufferUtils.static SDL_GPUVulkanOptions.Buffercreate(int capacity) Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated withBufferUtils.static SDL_GPUVulkanOptionscreate(long address) Returns a newSDL_GPUVulkanOptionsinstance for the specified memory address.static SDL_GPUVulkanOptions.Buffercreate(long address, int capacity) Create aSDL_GPUVulkanOptions.Bufferinstance at the specified memory.static @Nullable SDL_GPUVulkanOptionscreateSafe(long address) static @Nullable SDL_GPUVulkanOptions.BuffercreateSafe(long address, int capacity) intdevice_extension_count(int value) Sets the specified value to thedevice_extension_countfield.@Nullable PointerBufferdevice_extension_names(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thedevice_extension_namesfield.longfeature_list(long value) Sets the specified value to thefeature_listfield.intinstance_extension_count(int value) Sets the specified value to theinstance_extension_countfield.@Nullable PointerBufferinstance_extension_names(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theinstance_extension_namesfield.static SDL_GPUVulkanOptionsmalloc()Returns a newSDL_GPUVulkanOptionsinstance allocated withmemAlloc.static SDL_GPUVulkanOptions.Buffermalloc(int capacity) Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated withmemAlloc.static SDL_GPUVulkanOptions.Buffermalloc(int capacity, MemoryStack stack) Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUVulkanOptionsmalloc(MemoryStack stack) Returns a newSDL_GPUVulkanOptionsinstance allocated on the specifiedMemoryStack.static intndevice_extension_count(long struct) Unsafe version ofdevice_extension_count().static voidndevice_extension_count(long struct, int value) Sets the specified value to thedevice_extension_countfield of the specifiedstruct.static @Nullable PointerBufferndevice_extension_names(long struct) Unsafe version ofdevice_extension_names.static voidndevice_extension_names(long struct, @Nullable PointerBuffer value) Unsafe version ofdevice_extension_names.static longnfeature_list(long struct) Unsafe version offeature_list().static voidnfeature_list(long struct, long value) Unsafe version offeature_list.static intninstance_extension_count(long struct) Unsafe version ofinstance_extension_count().static voidninstance_extension_count(long struct, int value) Sets the specified value to theinstance_extension_countfield of the specifiedstruct.static @Nullable PointerBufferninstance_extension_names(long struct) Unsafe version ofinstance_extension_names.static voidninstance_extension_names(long struct, @Nullable PointerBuffer value) Unsafe version ofinstance_extension_names.static longnvulkan_10_physical_device_features(long struct) Unsafe version ofvulkan_10_physical_device_features().static voidnvulkan_10_physical_device_features(long struct, long value) Unsafe version ofvulkan_10_physical_device_features.static intnvulkan_api_version(long struct) Unsafe version ofvulkan_api_version().static voidnvulkan_api_version(long struct, int value) Unsafe version ofvulkan_api_version.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(SDL_GPUVulkanOptions src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longvulkan_10_physical_device_features(long value) Sets the specified value to thevulkan_10_physical_device_featuresfield.intvulkan_api_version(int value) Sets the specified value to thevulkan_api_versionfield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VULKAN_API_VERSION
public static final int VULKAN_API_VERSIONThe struct member offsets. -
FEATURE_LIST
public static final int FEATURE_LISTThe struct member offsets. -
VULKAN_10_PHYSICAL_DEVICE_FEATURES
public static final int VULKAN_10_PHYSICAL_DEVICE_FEATURESThe struct member offsets. -
DEVICE_EXTENSION_COUNT
public static final int DEVICE_EXTENSION_COUNTThe struct member offsets. -
DEVICE_EXTENSION_NAMES
public static final int DEVICE_EXTENSION_NAMESThe struct member offsets. -
INSTANCE_EXTENSION_COUNT
public static final int INSTANCE_EXTENSION_COUNTThe struct member offsets. -
INSTANCE_EXTENSION_NAMES
public static final int INSTANCE_EXTENSION_NAMESThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUVulkanOptions
Creates aSDL_GPUVulkanOptionsinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SDL_GPUVulkanOptions>
-
vulkan_api_version
- Returns:
- the value of the
vulkan_api_versionfield.
-
feature_list
- Returns:
- the value of the
feature_listfield.
-
vulkan_10_physical_device_features
- Returns:
- the value of the
vulkan_10_physical_device_featuresfield.
-
device_extension_count
- Returns:
- the value of the
device_extension_countfield.
-
device_extension_names
- Returns:
- a
PointerBufferview of the data pointed to by thedevice_extension_namesfield.
-
instance_extension_count
- Returns:
- the value of the
instance_extension_countfield.
-
instance_extension_names
- Returns:
- a
PointerBufferview of the data pointed to by theinstance_extension_namesfield.
-
vulkan_api_version
Sets the specified value to thevulkan_api_versionfield. -
feature_list
Sets the specified value to thefeature_listfield. -
vulkan_10_physical_device_features
Sets the specified value to thevulkan_10_physical_device_featuresfield. -
device_extension_count
Sets the specified value to thedevice_extension_countfield. -
device_extension_names
public SDL_GPUVulkanOptions device_extension_names(@NativeType("char const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto thedevice_extension_namesfield. -
instance_extension_count
Sets the specified value to theinstance_extension_countfield. -
instance_extension_names
public SDL_GPUVulkanOptions instance_extension_names(@NativeType("char const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theinstance_extension_namesfield. -
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
Returns a newSDL_GPUVulkanOptionsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUVulkanOptionsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUVulkanOptionsinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUVulkanOptionsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUVulkanOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUVulkanOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUVulkanOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUVulkanOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvulkan_api_version
public static int nvulkan_api_version(long struct) Unsafe version ofvulkan_api_version(). -
nfeature_list
public static long nfeature_list(long struct) Unsafe version offeature_list(). -
nvulkan_10_physical_device_features
public static long nvulkan_10_physical_device_features(long struct) Unsafe version ofvulkan_10_physical_device_features(). -
ndevice_extension_count
public static int ndevice_extension_count(long struct) Unsafe version ofdevice_extension_count(). -
ndevice_extension_names
Unsafe version ofdevice_extension_names. -
ninstance_extension_count
public static int ninstance_extension_count(long struct) Unsafe version ofinstance_extension_count(). -
ninstance_extension_names
Unsafe version ofinstance_extension_names. -
nvulkan_api_version
public static void nvulkan_api_version(long struct, int value) Unsafe version ofvulkan_api_version. -
nfeature_list
public static void nfeature_list(long struct, long value) Unsafe version offeature_list. -
nvulkan_10_physical_device_features
public static void nvulkan_10_physical_device_features(long struct, long value) Unsafe version ofvulkan_10_physical_device_features. -
ndevice_extension_count
public static void ndevice_extension_count(long struct, int value) Sets the specified value to thedevice_extension_countfield of the specifiedstruct. -
ndevice_extension_names
Unsafe version ofdevice_extension_names. -
ninstance_extension_count
public static void ninstance_extension_count(long struct, int value) Sets the specified value to theinstance_extension_countfield of the specifiedstruct. -
ninstance_extension_names
Unsafe version ofinstance_extension_names.
-