Class SDL_GPUVulkanOptions.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SDL_GPUVulkanOptions.Buffer>
org.lwjgl.system.StructBuffer<SDL_GPUVulkanOptions, SDL_GPUVulkanOptions.Buffer>
org.lwjgl.sdl.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newSDL_GPUVulkanOptions.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintdevice_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.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 StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSDL_GPUVulkanOptions.Bufferinstance 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
- 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
public SDL_GPUVulkanOptions.Buffer vulkan_10_physical_device_features(@NativeType("void *") long value) 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.Buffer 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.Buffer instance_extension_names(@NativeType("char const **") @Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theinstance_extension_namesfield.
-