### Get SDL_TextEditingEvent Start Field Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDL_TextEditingEvent.Buffer.html Retrieves the value of the 'start' field from an SDL_TextEditingEvent. The 'start' field indicates the starting position of the text edit. ```java @NativeType("Sint32") public int start() ``` -------------------------------- ### POST /system/init Source: https://javadoc.lwjgl.org/org/lwjgl/bgfx/BGFX.html Initializes the bgfx rendering library with the provided configuration. ```APIDOC ## POST /system/init ### Description Initializes the bgfx library using the provided initialization structure. ### Method POST ### Endpoint /system/init ### Parameters #### Request Body - **_init** (long) - Required - Pointer to bgfx_init_t structure ### Response #### Success Response (200) - **bool** (boolean) - Returns true if initialization succeeded ``` -------------------------------- ### POST /alcCaptureStart Source: https://javadoc.lwjgl.org/org/lwjgl/openal/ALC11.html Starts the audio capture process on the specified device. ```APIDOC ## POST /alcCaptureStart ### Description Begins the recording process on the provided OpenAL capture device. ### Method POST ### Endpoint /alcCaptureStart ### Parameters #### Request Body - **device** (long) - Required - The handle of the capture device. ### Request Example { "device": 140735722897408 } ### Response #### Success Response (200) - **status** (string) - Capture started successfully. ``` -------------------------------- ### Unsafe Get start (Java) Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDL_HapticRamp.html Provides an unsafe method to get the 'start' field of an SDL_HapticRamp struct from a given memory address. Use with caution. ```java public static short nstart(long struct) ``` -------------------------------- ### io_uring_setup Source: https://javadoc.lwjgl.org/org/lwjgl/system/linux/liburing/LibURing.html Initializes an io_uring instance with the specified number of entries and parameters. ```APIDOC ## [FUNCTION] io_uring_setup ### Description Sets up the io_uring instance, allocating the necessary shared memory rings. ### Method C Function ### Parameters - **entries** (unsigned int) - Required - Number of entries in the submission queue. - **p** (struct io_uring_params *) - Required - Pointer to the configuration parameters. ### Response - **return** (int) - Returns 0 on success, or a negative error code on failure. ``` -------------------------------- ### Get Joystick GUID Source: https://javadoc.lwjgl.org/org/lwjgl/glfw/GLFW.html Retrieves the GUID of the specified joystick. The GUID is a unique identifier for the joystick that is consistent across different runs of an application. ```c char const * glfwGetJoystickGUID(int jid) ``` -------------------------------- ### Initialize and manage io_uring instances Source: https://javadoc.lwjgl.org/index-files/index-9.html Core setup functions to initialize the io_uring ring and manage buffer rings. ```C int io_uring_setup(unsigned int entries, struct io_uring_params * p); struct io_uring_buf_ring * io_uring_setup_buf_ring(struct io_uring * ring, unsigned int nentries, int bgid, unsigned int flags, int * err); ``` -------------------------------- ### Get Event Description ID (Java/C) Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMODStudio.html Retrieves the unique identifier (GUID) for an FMOD Studio event description. This function is used to get the ID associated with a specific event. It requires an event description handle and a pointer to store the GUID. ```java @NativeType("FMOD_RESULT") public static int FMOD_Studio_EventDescription_GetID(long eventdescription, long id) ``` ```c FMOD_RESULT FMOD_Studio_EventDescription_GetID(FMOD_STUDIO_EVENTDESCRIPTION * eventdescription, FMOD_GUID * id) ``` -------------------------------- ### Get Joystick GUID (Java, C) Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDLJoystick.html Retrieves the Globally Unique Identifier (GUID) for a joystick. This function has overloads for direct GUID retrieval and for populating a provided SDL_GUID structure. ```Java public static void nSDL_GetJoystickGUID(long joystick, long __result) ``` ```C SDL_GUID SDL_GetJoystickGUID(SDL_Joystick * joystick) ``` ```Java public static SDL_GUID SDL_GetJoystickGUID(@NativeType("SDL_Joystick *") long joystick, SDL_GUID __result) ``` -------------------------------- ### POST /system/initialize Source: https://javadoc.lwjgl.org/index-files/index-9.html Initializes core LWJGL system libraries or OpenGL capabilities to ensure shared libraries are loaded. ```APIDOC ## POST /system/initialize ### Description Ensures that the required shared libraries (such as lwjgl_opengl or core LWJGL) are loaded into the process memory. ### Method POST ### Endpoint /system/initialize ### Parameters None ### Request Example {} ### Response #### Success Response (200) - **status** (string) - Returns "success" upon successful library initialization. #### Response Example { "status": "success" } ``` -------------------------------- ### Start Recording - C and Java Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Starts audio recording from a specified driver. This function requires a valid FMOD_SYSTEM pointer, a driver ID, an FMOD_SOUND object to store the recording, and a loop flag. ```c FMOD_RESULT FMOD_System_RecordStart(FMOD_SYSTEM * system, int id, FMOD_SOUND * sound, FMOD_BOOL loop) ``` ```java @NativeType("FMOD_RESULT") public static int FMOD_System_RecordStart(@NativeType("FMOD_SYSTEM *") long system, int id, @NativeType("FMOD_SOUND *") long sound, @NativeType("FMOD_BOOL") int loop) ``` -------------------------------- ### Get SDL Joystick Player Index and GUID (Java) Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDLJoystick.html Obtains the player index and GUID for a given SDL joystick instance ID. The GUID is returned via a provided SDL_GUID object. ```Java public static int SDL_GetJoystickPlayerIndexForID(@NativeType("SDL_JoystickID") int instance_id) public static SDL_GUID SDL_GetJoystickGUIDForID(@NativeType("SDL_JoystickID") int instance_id, SDL_GUID __result) ``` -------------------------------- ### Begin Menubar (Java/C) Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/Nuklear.html Initiates the creation of a menubar. Supports Java and C representations of the function signature. This function does not return a value. ```java public static void nnk_menubar_begin(long ctx) ``` ```c `void nk_menubar_begin(struct nk_context * ctx)` ``` ```java public static void nk_menubar_begin(@NativeType("struct nk_context *") NkContext ctx) ``` -------------------------------- ### Get Simulation Start Time (microseconds) Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkLatencyTimingsFrameReportNV.html Retrieves the simulation start time in microseconds. This is a long integer value. ```Java long simStartTimeUs(); ``` -------------------------------- ### Begin Tooltip (C) Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/Nuklear.html Starts the process of displaying a tooltip, optionally specifying a maximum width. Returns true if the tooltip is shown. ```c nk_bool nk_tooltip_begin(struct nk_context * ctx, float width) ``` -------------------------------- ### Get LLVM Buffer Start Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/LLVMCore.html Retrieves the starting address of an LLVM memory buffer. This allows direct access to the buffer's content. ```c char const * LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf) ``` -------------------------------- ### Initialize and Allocate Struct Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceCooperativeMatrixFeaturesNV.html Demonstrates how to instantiate the struct using different memory allocation strategies such as malloc, calloc, or wrapping an existing ByteBuffer. ```java ByteBuffer buffer = ByteBuffer.allocateDirect(SIZEOF); VkPhysicalDeviceCooperativeMatrixFeaturesNV features = new VkPhysicalDeviceCooperativeMatrixFeaturesNV(buffer); // Allocate using native memory VkPhysicalDeviceCooperativeMatrixFeaturesNV nativeInstance = VkPhysicalDeviceCooperativeMatrixFeaturesNV.calloc(); // Remember to free native memory nativeInstance.free(); ``` -------------------------------- ### Get LLVM Memory Buffer Start Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/LLVMCore.html Retrieves the starting address of the buffer for an LLVM memory buffer. This function has a C-style and a simplified native interface. ```c char const * LLVMGetBufferStart(LLVMMemoryBufferRef MemBuf) static long nLLVMGetBufferStart(long MemBuf) ``` -------------------------------- ### Get Joystick GUID (C/Java) Source: https://javadoc.lwjgl.org/org/lwjgl/glfw/GLFW.html Retrieves the GUID of the specified joystick. The C version returns a char pointer, while the Java version returns a String. ```c char const * glfwGetJoystickGUID(int jid); ``` ```java static @Nullable String glfwGetJoystickGUID(int jid); ``` -------------------------------- ### io_uring_setup Function Source: https://javadoc.lwjgl.org/org/lwjgl/system/linux/liburing/LibURing.html Sets up a new io_uring instance. It requires the number of entries for the ring and a pointer to io_uring parameters. ```c int io_uring_setup(unsigned int entries, struct io_uring_params * p) ``` ```java public static int nio_uring_setup(int entries, long p) ``` ```java public static int io_uring_setup(@NativeType("unsigned int") int entries, @NativeType("struct io_uring_params *") IOURingParams p) ``` -------------------------------- ### Create and Configure Compiler Source: https://javadoc.lwjgl.org/org/lwjgl/util/spvc/Spvc.html Initializes a compiler instance for a specific backend and capture mode. Options can be set using boolean or unsigned integer setters before installing them onto the compiler. ```Java public static int nspvc_context_create_compiler(long context, int backend, long parsed_ir, int mode, long compiler); @NativeType("spvc_result") public static int spvc_compiler_options_set_bool(@NativeType("spvc_compiler_options") long options, @NativeType("spvc_compiler_option") int option, @NativeType("spvc_bool") boolean value); ``` ```C spvc_result spvc_context_create_compiler(spvc_context context, spvc_backend backend, spvc_parsed_ir parsed_ir, spvc_capture_mode mode, spvc_compiler * compiler); spvc_result spvc_compiler_options_set_bool(spvc_compiler_options options, spvc_compiler_option option, spvc_bool value); ``` -------------------------------- ### Get NkEditState Selection Start Field Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/NkEditState.Buffer.html Retrieves the value of the 'sel_start' field from the NkEditState struct. This method returns the integer value of the selection start position. ```java public int sel_start() { return sel_start(address()); } ``` -------------------------------- ### Initialize and Configure Struct Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkVertexInputBindingDivisorDescriptionKHR.html Example demonstrating how to instantiate and configure the VkVertexInputBindingDivisorDescriptionKHR struct using LWJGL's memory management utilities. ```Java try (MemoryStack stack = MemoryStack.stackPush()) { VkVertexInputBindingDivisorDescriptionKHR divisorDesc = VkVertexInputBindingDivisorDescriptionKHR.calloc(stack); divisorDesc.binding(0); divisorDesc.divisor(1); } ``` -------------------------------- ### GET /xrGetAudioOutputDeviceGuidOculus Source: https://javadoc.lwjgl.org/org/lwjgl/openxr/OCULUSAudioDeviceGuid.html Retrieves the audio output device GUID for the specified Oculus instance. ```APIDOC ## GET xrGetAudioOutputDeviceGuidOculus ### Description Retrieves the unique identifier for the Oculus audio output device. ### Method GET ### Endpoint xrGetAudioOutputDeviceGuidOculus(XrInstance instance, ByteBuffer buffer) ### Parameters #### Path Parameters - **instance** (XrInstance) - Required - The OpenXR instance handle. - **buffer** (ByteBuffer) - Required - A buffer to store the resulting wide-character string GUID. ### Request Example { "instance": "0x00000000", "buffer": "ByteBuffer(size=XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS)" } ### Response #### Success Response (200) - **result** (int) - Returns XrResult indicating success or failure. #### Response Example { "result": 0 } ``` -------------------------------- ### GET /xrGetAudioInputDeviceGuidOculus Source: https://javadoc.lwjgl.org/org/lwjgl/openxr/OCULUSAudioDeviceGuid.html Retrieves the audio input device GUID for the specified Oculus instance. ```APIDOC ## GET xrGetAudioInputDeviceGuidOculus ### Description Retrieves the unique identifier for the Oculus audio input device. ### Method GET ### Endpoint xrGetAudioInputDeviceGuidOculus(XrInstance instance, ByteBuffer buffer) ### Parameters #### Path Parameters - **instance** (XrInstance) - Required - The OpenXR instance handle. - **buffer** (ByteBuffer) - Required - A buffer to store the resulting wide-character string GUID. ### Request Example { "instance": "0x00000000", "buffer": "ByteBuffer(size=XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS)" } ### Response #### Success Response (200) - **result** (int) - Returns XrResult indicating success or failure. #### Response Example { "result": 0 } ``` -------------------------------- ### FMOD_STUDIO_COMMAND_INFO Constructors and Allocation Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD_STUDIO_COMMAND_INFO.html Demonstrates various ways to create and allocate FMOD_STUDIO_COMMAND_INFO instances and their buffers. This includes using ByteBuffer, memCalloc, memAlloc, BufferUtils, and MemoryStack for different allocation strategies. ```Java FMOD_STUDIO_COMMAND_INFO info = new FMOD_STUDIO_COMMAND_INFO(container); FMOD_STUDIO_COMMAND_INFO infoCalloc = FMOD_STUDIO_COMMAND_INFO.calloc(); FMOD_STUDIO_COMMAND_INFO.Buffer bufferCalloc = FMOD_STUDIO_COMMAND_INFO.calloc(capacity); FMOD_STUDIO_COMMAND_INFO.Buffer bufferCallocStack = FMOD_STUDIO_COMMAND_INFO.calloc(capacity, stack); FMOD_STUDIO_COMMAND_INFO infoCallocStack = FMOD_STUDIO_COMMAND_INFO.calloc(stack); FMOD_STUDIO_COMMAND_INFO infoCreate = FMOD_STUDIO_COMMAND_INFO.create(); FMOD_STUDIO_COMMAND_INFO.Buffer bufferCreate = FMOD_STUDIO_COMMAND_INFO.create(capacity); FMOD_STUDIO_COMMAND_INFO infoCreateAddr = FMOD_STUDIO_COMMAND_INFO.create(address); FMOD_STUDIO_COMMAND_INFO.Buffer bufferCreateAddr = FMOD_STUDIO_COMMAND_INFO.create(address, capacity); FMOD_STUDIO_COMMAND_INFO infoCreateSafe = FMOD_STUDIO_COMMAND_INFO.createSafe(address); FMOD_STUDIO_COMMAND_INFO.Buffer bufferCreateSafe = FMOD_STUDIO_COMMAND_INFO.createSafe(address, capacity); FMOD_STUDIO_COMMAND_INFO infoMalloc = FMOD_STUDIO_COMMAND_INFO.malloc(); FMOD_STUDIO_COMMAND_INFO.Buffer bufferMalloc = FMOD_STUDIO_COMMAND_INFO.malloc(capacity); FMOD_STUDIO_COMMAND_INFO.Buffer bufferMallocStack = FMOD_STUDIO_COMMAND_INFO.malloc(capacity, stack); FMOD_STUDIO_COMMAND_INFO infoMallocStack = FMOD_STUDIO_COMMAND_INFO.malloc(stack); ``` -------------------------------- ### Get Source Range Start and End Locations Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangIndex.html These functions retrieve the starting and ending source locations from a given CXSourceRange. They are essential for pinpointing specific regions within source code files. ```c CXSourceLocation clang_getRangeStart(CXSourceRange range) CXSourceLocation clang_getRangeEnd(CXSourceRange range) ``` ```java static CXSourceLocation clang_getRangeStart(CXSourceRange range) static CXSourceLocation clang_getRangeEnd(CXSourceRange range) ``` -------------------------------- ### bgfx_init: Initialize bgfx (C/C++) Source: https://javadoc.lwjgl.org/org/lwjgl/bgfx/BGFX.html Initializes the bgfx rendering backend. This C/C++ signature takes a constant pointer to a bgfx_init_t structure containing initialization parameters and returns a boolean indicating success. ```c bool bgfx_init(bgfx_init_t const * _init) ``` -------------------------------- ### Instantiate and Configure Struct Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR.html Demonstrates how to create an instance of the struct using a ByteBuffer and configure its fields using the provided setter methods. ```java ByteBuffer buffer = ByteBuffer.allocateDirect(SIZEOF); VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR features = new VkPhysicalDeviceShaderRelaxedExtendedInstructionFeaturesKHR(buffer); features.sType(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_RELAXED_EXTENDED_INSTRUCTION_FEATURES_KHR); features.shaderRelaxedExtendedInstruction(true); ``` -------------------------------- ### Get Joystick GUID Info (Java, C) Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDLJoystick.html Retrieves detailed information about a joystick GUID, including vendor, product, version, and CRC16. This function has overloads for direct pointer manipulation and for populating ShortBuffers. ```Java public static void nSDL_GetJoystickGUIDInfo(long guid, long vendor, long product, long version, long crc16) ``` ```C void SDL_GetJoystickGUIDInfo(SDL_GUID guid, Uint16 * vendor, Uint16 * product, Uint16 * version, Uint16 * crc16) ``` ```Java public static void SDL_GetJoystickGUIDInfo(SDL_GUID guid, @NativeType("Uint16 *") @Nullable ShortBuffer vendor, @NativeType("Uint16 *") @Nullable ShortBuffer product, @NativeType("Uint16 *") @Nullable ShortBuffer version, @NativeType("Uint16 *") @Nullable ShortBuffer crc16) ``` -------------------------------- ### Get Range Start - C and Java Bindings Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangIndex.html Retrieves the start location of a source range. This function is documented with its C signature and Java bindings, including versions with an explicit function address parameter. ```c CXSourceLocation clang_getRangeStart(CXSourceRange range); static void nclang_getRangeStart(long range, long __result); static void nclang_getRangeStart(long range, long __functionAddress, long __result); ``` ```java static native void nclang_getRangeStart(long range, long __result); static native void nclang_getRangeStart(long range, long __functionAddress, long __result); ``` -------------------------------- ### Setup Draw List Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/Nuklear.html Initializes a draw list with specific configuration, buffers for commands, vertices, and elements, and anti-aliasing settings. This prepares the canvas for rendering geometric primitives. ```Java nnk_draw_list_setup(long canvas, long config, long cmds, long vertices, long elements, int line_aa, int shape_aa); ``` ```C void nk_draw_list_setup(struct nk_draw_list * canvas, struct nk_convert_config const * config, struct nk_buffer * cmds, struct nk_buffer * vertices, struct nk_buffer * elements, enum nk_anti_aliasing line_aa, enum nk_anti_aliasing shape_aa); ``` -------------------------------- ### Get Joystick GUID (LWJGL/C) Source: https://javadoc.lwjgl.org/org/lwjgl/glfw/GLFW.html Retrieves the GUID (Globally Unique Identifier) of a joystick. This function is available in LWJGL (Java) as a String return type and in C as a char pointer. It requires the joystick ID. ```java @NativeType("char const *") public static @Nullable String glfwGetJoystickGUID(int jid) ``` ```c char const *glfwGetJoystickGUID(int jid) ``` -------------------------------- ### Initialize System Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMODStudio.html Initializes the FMOD Studio system with specified channels and flags. This is a mandatory step before performing audio operations. ```Java FMOD_Studio_System_Initialize(long system, int maxchannels, int studioflags, int flags, long extradriverdata) ``` ```C FMOD_RESULT FMOD_Studio_System_Initialize(FMOD_STUDIO_SYSTEM * system, int maxchannels, FMOD_STUDIO_INITFLAGS studioflags, FMOD_INITFLAGS flags, void * extradriverdata) ``` -------------------------------- ### Get GPU Timer Begin Time - Java Source: https://javadoc.lwjgl.org/org/lwjgl/bgfx/BGFXStats.Buffer.html Retrieves the starting timestamp of the GPU timer. This method returns the value of the `gpuTimeBegin` field, indicating when the GPU timing measurement started. ```java @NativeType("int64_t") public long gpuTimeBegin() Returns: the value of the `gpuTimeBegin` field. ``` -------------------------------- ### Initialize and Setup Draw List Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/Nuklear.html Functions to initialize a draw list structure and configure the rendering pipeline with buffers and anti-aliasing settings. ```C void nk_draw_list_init(struct nk_draw_list * list); void nk_draw_list_setup(struct nk_draw_list * canvas, struct nk_convert_config const * config, struct nk_buffer * cmds, struct nk_buffer * vertices, struct nk_buffer * elements, enum nk_anti_aliasing line_aa, enum nk_anti_aliasing shape_aa); ``` -------------------------------- ### Create GPU Pipelines and Samplers Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDLGPU.html Methods to instantiate compute pipelines, graphics pipelines, and samplers using device handles and configuration structures. ```Java public static long SDL_CreateGPUComputePipeline(long device, SDL_GPUComputePipelineCreateInfo createinfo); public static long SDL_CreateGPUGraphicsPipeline(long device, SDL_GPUGraphicsPipelineCreateInfo createinfo); public static long SDL_CreateGPUSampler(long device, long createinfo); ``` ```C SDL_GPUComputePipeline * SDL_CreateGPUComputePipeline(SDL_GPUDevice * device, SDL_GPUComputePipelineCreateInfo const * createinfo); SDL_GPUGraphicsPipeline * SDL_CreateGPUGraphicsPipeline(SDL_GPUDevice * device, SDL_GPUGraphicsPipelineCreateInfo const * createinfo); SDL_GPUSampler * SDL_CreateGPUSampler(SDL_GPUDevice * device, SDL_GPUSamplerCreateInfo const * createinfo); ``` -------------------------------- ### Get CPU Timer Begin Time - Java Source: https://javadoc.lwjgl.org/org/lwjgl/bgfx/BGFXStats.Buffer.html Retrieves the starting timestamp of the CPU timer. This method returns the value of the `cpuTimeBegin` field, indicating when the CPU timing measurement started. ```java @NativeType("int64_t") public long cpuTimeBegin() Returns: the value of the `cpuTimeBegin` field. ``` -------------------------------- ### Begin Popup (Java-like and C) Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/Nuklear.html Begins a popup window. This version accepts the title as CharSequence or ByteBuffer. It takes the context, popup type, title, flags, and a rectangle defining its position and size. Returns a boolean indicating success. ```c nk_bool nk_popup_begin(struct nk_context * ctx, enum nk_popup_type type, char const * title, nk_flags flags, struct nk_rect rect) static boolean ``` ```c nk_bool nk_popup_begin(struct nk_context * ctx, enum nk_popup_type type, char const * title, nk_flags flags, struct nk_rect rect) static boolean ``` -------------------------------- ### Get Token Location Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangIndex.html Retrieves the source location of a given CXToken. This complements `clang_getTokenExtent` by providing the starting point of the token. ```c CXSourceLocation clang_getTokenLocation(CXTranslationUnit TU, CXToken token) ``` ```java static CXSourceLocation clang_getTokenLocation(long TU, CXToken token, CXSourceLocation __result) ``` -------------------------------- ### Create Target Machine With Options (C) Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/LLVMTargetMachine.html Creates a target machine using a target machine options object in C. Requires target, triple, and options reference. ```c LLVMTargetMachineRef LLVMCreateTargetMachineWithOptions(LLVMTargetRef T, char const * Triple, LLVMTargetMachineOptionsRef Options); ``` -------------------------------- ### GET /clang/HTMLStartTag/attr Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangDocumentation.html Retrieves attribute names or values from an HTML start tag comment. ```APIDOC ## GET /clang/HTMLStartTag/attr ### Description Retrieves the name or value of an attribute at a specific index for an HTML start tag. ### Method GET ### Endpoint /clang/HTMLStartTag/attr ### Parameters #### Query Parameters - **Comment** (long) - Required - The pointer to the CXComment structure. - **AttrIdx** (int) - Required - The index of the attribute to retrieve. ### Response #### Success Response (200) - **attrValue** (CXString) - The requested attribute name or value. #### Response Example { "attrValue": "class-name" } ``` -------------------------------- ### Initialize VkPhysicalDeviceShaderCorePropertiesAMD.Buffer Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceShaderCorePropertiesAMD.Buffer.html Demonstrates how to instantiate the buffer class using a memory address and capacity, or a ByteBuffer container. ```java // Initialize with address and capacity VkPhysicalDeviceShaderCorePropertiesAMD.Buffer buffer = new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer(address, capacity); // Initialize with a ByteBuffer container VkPhysicalDeviceShaderCorePropertiesAMD.Buffer bufferFromBuffer = new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer(byteBuffer); ``` -------------------------------- ### GET /vulkan/latency-timings Source: https://javadoc.lwjgl.org/index-files/index-4.html Retrieves latency timing information for frame reports, specifically start and end times for driver operations. ```APIDOC ## GET /vulkan/latency-timings ### Description Retrieves the driver start and end timestamps for latency-sensitive frame reporting. ### Method GET ### Endpoint /vulkan/latency-timings ### Parameters #### Query Parameters - **frameId** (int) - Required - The frame index to retrieve timing data for. ### Request Example { "frameId": 1024 } ### Response #### Success Response (200) - **driverStartTimeUs** (long) - Start time of the driver operation in microseconds. - **driverEndTimeUs** (long) - End time of the driver operation in microseconds. #### Response Example { "driverStartTimeUs": 1625000000, "driverEndTimeUs": 1625000050 } ``` -------------------------------- ### SpvcHlslRootConstants.Buffer Field Accessors (Get) Source: https://javadoc.lwjgl.org/org/lwjgl/util/spvc/SpvcHlslRootConstants.Buffer.html Methods to retrieve the values of the 'start', 'end', 'binding', and 'space' fields from a SpvcHlslRootConstants.Buffer. ```java @NativeType("unsigned int") public int start() Returns: the value of the `start` field. ``` ```java @NativeType("unsigned int") public int end() Returns: the value of the `end` field. ``` ```java @NativeType("unsigned int") public int binding() Returns: the value of the `binding` field. ``` ```java @NativeType("unsigned int") public int space() Returns: the value of the `space` field. ``` -------------------------------- ### Initialize VkPhysicalDeviceDisplacementMicromapPropertiesNV.Buffer Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceDisplacementMicromapPropertiesNV.Buffer.html Demonstrates how to instantiate the buffer using a ByteBuffer container or a direct memory address. ```java import org.lwjgl.vulkan.VkPhysicalDeviceDisplacementMicromapPropertiesNV; import java.nio.ByteBuffer; // Initialize via ByteBuffer ByteBuffer container = ByteBuffer.allocateDirect(VkPhysicalDeviceDisplacementMicromapPropertiesNV.SIZEOF); VkPhysicalDeviceDisplacementMicromapPropertiesNV.Buffer buffer = new VkPhysicalDeviceDisplacementMicromapPropertiesNV.Buffer(container); // Initialize via direct address VkPhysicalDeviceDisplacementMicromapPropertiesNV.Buffer directBuffer = new VkPhysicalDeviceDisplacementMicromapPropertiesNV.Buffer(address, capacity); ``` -------------------------------- ### Get Fields from VkDedicatedAllocationBufferCreateInfoNV.Buffer (Java) Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkDedicatedAllocationBufferCreateInfoNV.Buffer.html Provides examples of retrieving the values of 'sType', 'pNext', and 'dedicatedAllocation' fields from a VkDedicatedAllocationBufferCreateInfoNV.Buffer instance. ```java VkDedicatedAllocationBufferCreateInfoNV.Buffer struct = ...; int sType = struct.sType(); long pNext = struct.pNext(); boolean dedicatedAllocation = struct.dedicatedAllocation(); ``` -------------------------------- ### io_uring Ring Setup and Configuration Source: https://javadoc.lwjgl.org/org/lwjgl/system/linux/liburing/LibURing.html Functions for setting up, resizing, and configuring io_uring rings. This includes initializing rings with a specified number of entries and parameters, and disabling forking. ```c int io_uring_setup(unsigned int entries, struct io_uring_params * p); int io_uring_resize_rings(struct io_uring * ring, struct io_uring_params * p); int io_uring_ring_dontfork(struct io_uring * ring); ``` -------------------------------- ### Get Display Bounds Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDLVideo.html Retrieves the bounding rectangle of a display, which defines its position and size within the virtual desktop. This is useful for multi-monitor setups. ```Java static boolean nSDL_GetDisplayBounds(int displayID, long rect) ``` ```C bool SDL_GetDisplayBounds(SDL_DisplayID displayID, SDL_Rect * rect) ``` -------------------------------- ### Begin Query (EXT) Source: https://javadoc.lwjgl.org/org/lwjgl/opengles/GLESCapabilities.html Begins a query. This function is part of the EXT extension for queries. ```java public final long glBeginQueryEXT ``` -------------------------------- ### Get LLVM Entry Basic Block Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/LLVMCore.html Retrieves the entry basic block of an LLVM function. This is the starting point for function execution in LLVM IR. ```c LLVMBasicBlockRef LLVMGetEntryBasicBlock(LLVMValueRef Fn) ``` -------------------------------- ### Initialize Struct Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceShaderImageFootprintFeaturesNV.html Demonstrates how to create a new instance of the struct from a ByteBuffer, which allows for direct memory mapping and interaction with the underlying native Vulkan structure. ```java public VkPhysicalDeviceShaderImageFootprintFeaturesNV(ByteBuffer container) { // Creates an instance at the current position of the specified ByteBuffer super(container); } ``` -------------------------------- ### Initialize Buffer Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.Buffer.html Demonstrates how to instantiate a Buffer object backed by a ByteBuffer, allowing for direct interaction with native Vulkan memory structures. ```java import java.nio.ByteBuffer; import org.lwjgl.vulkan.VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV; // Create a buffer instance backed by a container ByteBuffer container = ByteBuffer.allocateDirect(VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.SIZEOF); VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.Buffer buffer = new VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV.Buffer(container); ``` -------------------------------- ### Get Definition Spelling and Extent (C) Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangIndex.html Retrieves the spelling and extent (start and end line/column) of a definition. This function is part of the Clang C API. ```c void clang_getDefinitionSpellingAndExtent(CXCursor cursor, char const ** startBuf, char const ** endBuf, unsigned * startLine, unsigned * startColumn, unsigned * endLine, unsigned * endColumn) ``` -------------------------------- ### Initialize FMOD_STUDIO_BANK_INFO.Buffer Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD_STUDIO_BANK_INFO.Buffer.html Demonstrates how to instantiate a buffer for FMOD_STUDIO_BANK_INFO structures using a memory address or a ByteBuffer container. ```java // Creating a buffer from a ByteBuffer container ByteBuffer container = ByteBuffer.allocateDirect(size); FMOD_STUDIO_BANK_INFO.Buffer buffer = new FMOD_STUDIO_BANK_INFO.Buffer(container); // Creating a buffer from a raw memory address long address = MemoryUtil.nmemAlloc(size); FMOD_STUDIO_BANK_INFO.Buffer bufferFromAddress = new FMOD_STUDIO_BANK_INFO.Buffer(address, capacity); ``` -------------------------------- ### Get Source Range Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangIndex.html This function creates a CXSourceRange object given a starting and ending CXSourceLocation. It is used to define a specific segment of source code. ```c CXSourceRange clang_getRange(CXSourceLocation begin, CXSourceLocation end) ``` -------------------------------- ### Initialize Buffer Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.Buffer.html Demonstrates how to instantiate a Buffer object using a ByteBuffer container, which links the buffer to a specific memory region. ```java import org.lwjgl.vulkan.VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT; import java.nio.ByteBuffer; // Create a buffer instance backed by a ByteBuffer VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.Buffer buffer = new VkPhysicalDeviceShaderReplicatedCompositesFeaturesEXT.Buffer(container); ``` -------------------------------- ### Get Driver Information Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Retrieves information about the current audio driver, including name, GUID, and system rate. Used to query hardware capabilities. ```Java (JNI) nFMOD_System_GetDriverInfo(long system, int id, long name, int namelen, long guid, long systemrate, long speakermode, long speakermodechannels); ``` ```C FMOD_RESULT FMOD_System_GetDriverInfo(FMOD_SYSTEM * system, int id, char * name, int namelen, FMOD_GUID * guid, int * systemrate, FMOD_SPEAKERMODE * speakermode, int * speakermodechannels); ``` -------------------------------- ### Get Loop Points - FMOD C API Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Retrieves the start and end points for looping an FMOD sound on its channel, along with the time units for these points. ```c FMOD_RESULT FMOD_Channel_GetLoopPoints(FMOD_CHANNEL * channel, unsigned int * loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int * loopend, FMOD_TIMEUNIT loopendtype) ``` -------------------------------- ### Initialize VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.html Demonstrates how to instantiate the struct using a ByteBuffer or memory allocation methods. These methods allow for direct interaction with native Vulkan memory structures. ```java ByteBuffer container = ByteBuffer.allocateDirect(SIZEOF); VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM features = new VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM(container); // Allocation methods VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM malloced = VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.malloc(); VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM calloced = VkPhysicalDeviceShaderCoreBuiltinsFeaturesARM.calloc(); ``` -------------------------------- ### Get Root Sample from Sample Tree (C) Source: https://javadoc.lwjgl.org/index-files/index-18.html Retrieves the root sample from a given rmtSampleTree. This function is essential for starting the traversal of the profiling data structure. ```c rmtSample * rmt_SampleTreeGetRootSample(rmtSampleTree * sample_tree) ``` -------------------------------- ### POST /dsp/init Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD_DSP_DESCRIPTION.html Initializes the FMOD_DSP_DESCRIPTION struct with all required callbacks and configuration settings. ```APIDOC ## POST /dsp/init ### Description Initializes the DSP description with full configuration including versioning, buffer counts, and all required processing callbacks. ### Method POST ### Parameters #### Request Body - **pluginsdkversion** (int) - Required - The version of the plugin SDK. - **name** (ByteBuffer) - Required - The name of the DSP. - **numinputbuffers** (int) - Required - Number of input buffers. - **numoutputbuffers** (int) - Required - Number of output buffers. - **process** (Callback) - Optional - The main processing callback. ### Response #### Success Response (200) - **FMOD_DSP_DESCRIPTION** (Object) - The initialized struct. ``` -------------------------------- ### Initialize Struct Instance in Java Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPipelineViewportShadingRateImageStateCreateInfoNV.html Demonstrates how to create a new instance of the struct using a ByteBuffer container, allowing for direct memory mapping between Java and native Vulkan structures. ```java public VkPipelineViewportShadingRateImageStateCreateInfoNV(ByteBuffer container) { super(container); } ``` -------------------------------- ### Get Display Information (SDL) Source: https://javadoc.lwjgl.org/org/lwjgl/sdl/SDLVideo.html Retrieves an array of display identifiers available on the system. This method is essential for multi-monitor setups or querying information about each connected display. ```Java @NativeType("SDL_DisplayID *") public static @Nullable IntBuffer SDL_GetDisplays(); public static long nSDL_GetDisplays(long count); ``` ```C SDL_DisplayID * SDL_GetDisplays(int * count); ``` -------------------------------- ### Get Default Mix Matrix - FMOD API Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Obtains the default mixing matrix used for routing audio between speakers. This is essential for complex audio setups. ```c FMOD_RESULT FMOD_System_GetDefaultMixMatrix(FMOD_SYSTEM * system, FMOD_SPEAKERMODE sourcespeakermode, FMOD_SPEAKERMODE targetspeakermode, float * matrix, int matrixhop) static int ``` ```java FMOD_System_GetDefaultMixMatrix(long system, int sourcespeakermode, int targetspeakermode, FloatBuffer matrix, int matrixhop) ``` -------------------------------- ### Initialize FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer.html Demonstrates how to instantiate a buffer for FMOD studio parameter descriptions using a memory address or a ByteBuffer container. ```java // Initialize with address and capacity FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer buffer = new FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer(address, capacity); // Initialize with a ByteBuffer container FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer bufferFromBuffer = new FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer(byteBuffer); ``` -------------------------------- ### Allocate and Initialize Struct Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPipelineViewportDepthClampControlCreateInfoEXT.html Examples of various memory allocation strategies for the struct, including manual allocation and creating instances from existing memory addresses. ```java // Allocate new instance with memAlloc VkPipelineViewportDepthClampControlCreateInfoEXT instance = VkPipelineViewportDepthClampControlCreateInfoEXT.malloc(); // Create instance from existing address VkPipelineViewportDepthClampControlCreateInfoEXT struct = VkPipelineViewportDepthClampControlCreateInfoEXT.create(address); // Explicitly free memory instance.free(); ``` -------------------------------- ### NkKeyboard Method Implementations (Java) Source: https://javadoc.lwjgl.org/org/lwjgl/nuklear/NkKeyboard.html Provides Java code examples for NkKeyboard methods. This includes methods for getting the struct size, accessing key buffers and individual keys, retrieving text input buffers and individual characters, and getting the length of the text input. ```java public int sizeof() { // Returns sizeof(struct). // Specified by: sizeof in class Struct return 0; // Placeholder } @NativeType("struct nk_key[NK_KEY_MAX]") public NkKey.Buffer keys() { // Returns a NkKey.Buffer view of the keys field. return null; // Placeholder } @NativeType("struct nk_key") public NkKey keys(int index) { // Returns a NkKey view of the struct at the specified index of the keys field. return null; // Placeholder } @NativeType("char[NK_INPUT_MAX]") public ByteBuffer text() { // Returns a ByteBuffer view of the text field. return null; // Placeholder } @NativeType("char") public byte text(int index) { // Returns the value at the specified index of the text field. return 0; // Placeholder } public int text_len() { // Returns the value of the text_len field. return 0; // Placeholder } ``` -------------------------------- ### Get Delay from ChannelGroup (C/JNI) Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Retrieves the delay information (start and end DSP clock) for a channel group. This function is available in both C and as a JNI wrapper for Java. ```c FMOD_RESULT FMOD_ChannelGroup_GetDelay(FMOD_CHANNELGROUP * channelgroup, unsigned long long * dspclock_start, unsigned long long * dspclock_end, FMOD_BOOL * stopchannels); static int nFMOD_ChannelGroup_GetDelay(long channelgroup, long dspclock_start, long dspclock_end, long stopchannels); ``` -------------------------------- ### Create FMOD Studio System (C) Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMODStudio.html Creates and initializes an FMOD Studio System object. This is the primary entry point for using the FMOD Studio API. It requires a pointer to an FMOD_STUDIO_SYSTEM pointer to be filled and the header version. ```c FMOD_RESULT FMOD_Studio_System_Create(FMOD_STUDIO_SYSTEM ** system, unsigned int headerversion) ``` -------------------------------- ### Initialize VkPhysicalDeviceVideoFormatInfoKHR instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceVideoFormatInfoKHR.html Demonstrates how to instantiate the struct using a ByteBuffer container or via memory allocation methods. These methods allow for direct interaction with native memory. ```Java ByteBuffer buffer = ByteBuffer.allocateDirect(SIZEOF); VkPhysicalDeviceVideoFormatInfoKHR info = new VkPhysicalDeviceVideoFormatInfoKHR(buffer); // Or using allocation utilities VkPhysicalDeviceVideoFormatInfoKHR allocated = VkPhysicalDeviceVideoFormatInfoKHR.calloc(); // ... use the struct ... allocated.free(); ``` -------------------------------- ### Get Cursor Extent Address (Java) Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/ClangIndex.Functions.html Retrieves the memory address for the `getCursorExtent` function. This function returns the source code extent (start and end locations) of a cursor. ```java public static final long getCursorExtent ``` -------------------------------- ### Get Stride of BGFX Vertex Layout Source: https://javadoc.lwjgl.org/org/lwjgl/bgfx/BGFX.html Returns the stride (total size in bytes) of a single vertex in the BGFX vertex layout. This is the distance between the start of consecutive vertices. ```c uint16_t bgfx_vertex_layout_get_stride(bgfx_vertex_layout_t const * _this) ``` -------------------------------- ### Initialize and Configure Buffer Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceCustomResolveFeaturesEXT.Buffer.html Demonstrates how to instantiate a buffer from a ByteBuffer and configure its fields such as sType and customResolve. ```java import org.lwjgl.vulkan.VkPhysicalDeviceCustomResolveFeaturesEXT; import java.nio.ByteBuffer; // Create buffer from existing container ByteBuffer container = ByteBuffer.allocateDirect(VkPhysicalDeviceCustomResolveFeaturesEXT.SIZEOF); VkPhysicalDeviceCustomResolveFeaturesEXT.Buffer buffer = new VkPhysicalDeviceCustomResolveFeaturesEXT.Buffer(container); // Configure fields buffer.sType$Default(); buffer.customResolve(true); buffer.pNext(0L); ``` -------------------------------- ### Initialize VkSamplerCreateInfo.Buffer Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkSamplerCreateInfo.Buffer.html Demonstrates how to instantiate a buffer for VkSamplerCreateInfo, either by specifying a memory address and capacity or by wrapping an existing ByteBuffer. ```java VkSamplerCreateInfo.Buffer buffer = new VkSamplerCreateInfo.Buffer(address, cap); VkSamplerCreateInfo.Buffer bufferFromContainer = new VkSamplerCreateInfo.Buffer(byteBuffer); ``` -------------------------------- ### Configure Multicast Viewport Arrays (OpenGL/Java) Source: https://javadoc.lwjgl.org/org/lwjgl/opengl/NVXGpuMulticast2.html Sets the viewport parameters for a specific GPU in a multicast setup. It takes a starting index and an array of floating-point values defining the viewports. ```Java public static void glMulticastViewportArrayvNVX(int gpu, int first, float[] v); ``` -------------------------------- ### Get Next Use of LLVM Use (Java) Source: https://javadoc.lwjgl.org/org/lwjgl/llvm/LLVMCore.html Retrieves the next use (LLVMUseRef) in a linked list of uses, starting from a given LLVMUseRef. Used for iterating through all uses of a value. ```Java @NativeType("LLVMUseRef") public static long LLVMGetNextUse(@NativeType("LLVMUseRef") long U) `LLVMUseRef LLVMGetNextUse(LLVMUseRef U)` ``` -------------------------------- ### Window Configuration Hints Source: https://javadoc.lwjgl.org/org/lwjgl/glfw/GLFW.html Functions to set window hints before creation, allowing customization of the window environment and properties. ```Java glfwWindowHint(hint, value); glfwWindowHintString(hint, value); ``` ```C glfwWindowHint(hint, value); glfwWindowHintString(hint, value); ``` -------------------------------- ### Get Delay - FMOD C API Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Retrieves the delay in DSP clock ticks for the start and end of playback on an FMOD channel, and whether this delay affects stopped channels. ```c FMOD_RESULT FMOD_Channel_GetDelay(FMOD_CHANNEL * channel, unsigned long long * dspclock_start, unsigned long long * dspclock_end, FMOD_BOOL * stopchannels) ``` -------------------------------- ### Begin Query (Java/C) Source: https://javadoc.lwjgl.org/org/lwjgl/opengl/GL15C.html Begins a query object, initiating the measurement of a specific GL operation. Requires a target and a query ID. The C signature matches the Java implementation. ```java public static void glBeginQuery(@NativeType("GLenum") int target, @NativeType("GLuint") int id) ``` ```c void glBeginQuery(GLenum target, GLuint id) ``` -------------------------------- ### Initialize VkPhysicalDeviceShaderCoreProperties2AMD instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkPhysicalDeviceShaderCoreProperties2AMD.html Demonstrates how to create a new instance of the struct using a ByteBuffer, which maps the struct to native memory. ```java public VkPhysicalDeviceShaderCoreProperties2AMD(ByteBuffer container) { // Creates an instance at the current position of the specified ByteBuffer } ``` -------------------------------- ### Get Driver Info - FMOD API Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Retrieves detailed information about a specific audio driver, including its name, GUID, sample rate, speaker mode, and channel count. ```c FMOD_RESULT FMOD_System_GetDriverInfo(FMOD_SYSTEM * system, int id, char * name, int namelen, FMOD_GUID * guid, int * systemrate, FMOD_SPEAKERMODE * speakermode, int * speakermodechannels) static int ``` ```java FMOD_System_GetDriverInfo(long system, int id, ByteBuffer name, FMOD_GUID guid, IntBuffer systemrate, IntBuffer speakermode, IntBuffer speakermodechannels) ``` -------------------------------- ### Initialize VkCommandBufferBeginInfo Instance Source: https://javadoc.lwjgl.org/org/lwjgl/vulkan/VkCommandBufferBeginInfo.html Demonstrates how to instantiate a VkCommandBufferBeginInfo object using a ByteBuffer container, which allows for direct memory mapping between Java and native Vulkan structures. ```Java public VkCommandBufferBeginInfo(ByteBuffer container) { // Creates a VkCommandBufferBeginInfo instance at the current position of the specified ByteBuffer container. } ``` -------------------------------- ### Get VCA ID (C/C++) Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMODStudio.html Retrieves the unique ID (GUID) of a VCA (Voltage Controlled Amplifier) in the FMOD Studio system. This function is accessible via C and C++. ```c static int nFMOD_Studio_VCA_GetID(long vca, long id) ``` ```cpp FMOD_RESULT FMOD_Studio_VCA_GetID(FMOD_STUDIO_VCA * vca, FMOD_GUID * id) ``` -------------------------------- ### FMOD_System_RecordStart Source: https://javadoc.lwjgl.org/org/lwjgl/fmod/FMOD.html Starts recording from a specified recording device into an FMOD sound object. ```APIDOC ## FMOD_System_RecordStart ### Description Starts recording from a specified recording device into an FMOD sound object. ### Method POST (Implied) ### Endpoint N/A (This is a function call, not a REST endpoint) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **system** (FMOD_SYSTEM *) - Pointer to the FMOD system object. - **id** (int) - The ID of the recording device. - **sound** (FMOD_SOUND *) - Pointer to the FMOD sound object to record into. - **loop** (FMOD_BOOL) - Boolean flag to indicate if recording should loop. ### Request Example ```java // Java example using LWJGL bindings long system = ...; // FMOD_SYSTEM pointer int id = 0; // ID of the recording device long sound = ...; // FMOD_SOUND pointer int loop = 0; // 0 for false, 1 for true FMOD_RESULT result = FMOD_System_RecordStart(system, id, sound, loop); ``` ### Response #### Success Response (FMOD_OK) None (operation is performed) #### Response Example None ```