What's New
This documentation describes php-vio v2.44.1 (2026-11-11). The full commit-level history is in CHANGELOG.md; every release ships binaries for Linux x86_64/arm64, macOS x86_64/arm64 and Windows x64 (ts + nts) on the Releases page.
2.44.1
- Tessellation fixes – on D3D12 with Shader Model 6, hull shaders generated from GLSL keep their state local (a driver for Intel UHD 630 aborted on tessellation levels computed from control-point data); on Metal, an evaluation stage that does not read
gl_in[].gl_Positiondraws again.
2.44.0
- Adapter choice on Metal –
vio_create(['adapter' => 'AMD'])or the environment variableVIO_METAL_ADAPTERpicks the device on Macs with two GPUs. - Intel Macs and virtual machines – Metal runs on GPUs of the Mac1 family only (the paravirtual device of macOS VMs) and works around driver faults on Intel Mac hardware.
- OpenGL: per-program caches no longer outlive their context.
2.43.1
- Shader cache keys include the php-vio version, so a cache written by another version is not reused.
- D3D12: a freed SRV slot returns to the heap it came from.
2.43.0
- Adapter choice –
vio_create(['adapter' => …])opens the adapter at a position invio_adapters()or with a name part, on D3D11, D3D12 and Vulkan. - SDF fonts –
vio_font(…, ['sdf' => true])builds a signed-distance-field atlas: glyph edges stay sharp at any magnification. - Anisotropic bindless samplers –
vio_sampler_anisoandvio_sampler_aniso_clampat set 1, bindings 7 and 8 (Bindless). - D3D12 and Metal: the bindless table and storage buffers work in mesh-shader pipelines; D3D12 has four storage buffers for vertex, mesh and task stages; indirect and storage-instanced draws bind their texture table.
2.42.1
- Uniform tables and constant buffers are sized by the shader's reflection – blocks with more than 256 entries or 4096 bytes keep their last uniforms. OpenGL finds any element of a uniform struct array.
2.42.0
- Texture units from the backend – sampler tables are sized by what the backend offers and any unit may be a comparison sampler;
vio_texture_units()reports the units without the cost ofvio_backend_info().
2.41.1
- OpenGL: creating a render target keeps the bound target bound. D3D11: instanced draws keep their instance buffer per device, so a second context draws.
2.41.0
Desktop applications (guide):
- Event loop –
vio_wait_events()blocks until something happens,vio_wake()ends the wait; window eventsvio_on_close()(with veto),vio_on_focus(),vio_on_minimize(),vio_on_scale(),vio_on_refresh(). - Several windows –
vio_window()opens further windows on the context's device on every backend, also as child and modal windows. - Window details – cursor shapes and images, window icon, size limits, aspect ratio, always-on-top, opacity (Window).
- Dialogs and menus –
vio_file_dialog(),vio_message_box(),vio_menu_bar(),vio_popup_menu(). - Shell –
vio_notify(),vio_set_progress(),vio_tray(),vio_on_drop(),vio_open_url(),vio_reveal_file(). - IME composition –
vio_on_preedit(),vio_ime_rect(),vio_ime_enable()on Windows, macOS, X11 and Wayland. - Accessibility –
vio_a11y_update()describes the window to screen readers through AccessKit (UI Automation, NSAccessibility, AT-SPI). vio_platform_info()reports what the window system offers.
2.40.x
- Explicit present –
vio_begin($ctx, ['present' => bool])decides whether a frame reaches the screen, on every backend. - Clip z on Metal as on D3D and Vulkan: the depth buffer holds
(ndc_z + 1) / 2on every backend;vio_backend_info()['conventions']reports the conventions. - Every sampler reads the texture on its own unit, as on OpenGL (2.40.3);
vio_bind_cubemap()on Vulkan resolves the unit to the shader's sampler (2.40.2); avio_clear()inside a frame no longer becomes the next frame's screen clear (2.40.1).
2.39.0
- Upscaler preparation –
vio_upscaler_prepare()runs a provider's first-use work (DLSS: seconds of NGX initialisation) on a worker thread;vio_upscaler_info()['state']and['timings']report it. Library paths are UTF-8.
2.38.1
- Objects released inside a frame – a render target, texture, cubemap, buffer or compute pipeline that loses its last PHP reference while the frame still uses it no longer takes the device down on D3D12. A texture or cubemap from
vio_render_target_texture()now keeps its target alive, on every backend. Vulkan returns to the swapchain when the bound target is destroyed.
2.38.0
- Opacity micromap baker –
vio_opacity_micromap_bake()turns an alpha texture and uvs into a map for'opacity_micromap', without a GPU. At subdivision 6 rays through 40 stacked leaf cards skip 90 % of the any-hit calls on an RTX 2080. - Agility SDK 1.620 – php-vio builds against its headers and uses them only where the runtime has them.
vio_backend_info()reports the capsasync_commands,fence_barriersanddump_file; the device-removed report names the driver's error code; feature queries go throughCheckFeatureSupport1. Ray queries below Shader Model 6.9 opt into micromaps.
2.37.0
- HDR composite –
vio_create(['hdr_composite' => true])on D3D12: with an active HDR10 swapchain, draws to the screen blend in an SDR layer andvio_end()PQ-encodes once, so 50 % white over black no longer blends on PQ values.
2.36.1
- Faster
vio_update_buffer()on D3D12 – buffer updates go through an upload ring and one batch per frame instead of a committed buffer and a command list per call: 8 × 4 KiB per frame fell from 2.9–3.9 ms to 0.02 ms on an RTX 2080.
2.36.0
- Live spatial audio – pitch and pan while a sound plays, 2D/3D switch, attenuation models, Doppler, cones, a listener up vector and an offline render (Audio).
2.35.0
- Keypad constants –
VIO_KEY_KP_0–VIO_KEY_KP_9andVIO_KEY_KP_DECIMAL–VIO_KEY_KP_EQUAL(320–336) are registered as PHP constants (Numpad Keys); the codes themselves were already reported on every platform. - Stub –
vio.stub.phpnow declaresvio_gpu_flush(), so IDEs and static analysers see it; stub and registered functions match one to one (test 247). VIO_UINT1–VIO_UINT4andVIO_SHADER_HLSLstay internal on purpose – the reasons are under Vertex Formats and Shader Formats.
2.34.1
- Audio symbols – php-vio's bundled miniaudio now uses its own symbol names (
vio_ma_*). Static builds that link another extension's miniaudio into the same binary used to bind php-vio's calls to that other (older) implementation; both now stay apart.
2.34.0
- Ogg Opus and Ogg Vorbis – playback (
vio_audio_load(),vio_audio_load_data()), decoding and encoding without an audio device (vio_audio_info(),vio_audio_decode(),vio_audio_encode()), explicit engine start with a backend list (vio_audio_init(),VIO_AUDIO_BACKEND, thenulldevice for headless servers and CI) andvio_audio_formats(). See the Audio guide.
2.33.0
- System clipboard –
vio_clipboard_get()/vio_clipboard_set()on Win32, Cocoa, X11 and GLFW, process-local where the platform has none. - Layout key names –
vio_key_name()maps a physicalVIO_KEY_*position to the character it types in the current keyboard layout.
2.32.1 / 2.32.2
- D3D12 – compute and mip-generation descriptor blocks are no longer reused while the GPU still needs them (many dispatches or
vio_generate_mipmaps()calls per frame).
API reference catch-up
The API reference now covers every function of the extension. Pages added for functions that shipped in earlier releases: Touch, Input Recording & Replay, Platform & Clipboard, GPU Profiling, Batches, Bundles & Indirect Draws, Portable Upscaling, Ray Tracing, Mesh Shaders & Work Graphs, Variable Rate Shading and Bindless & Sampler Feedback; backend selection and adapters (vio_rank_backends(), vio_adapters(), vio_feature_info()), monitors and video modes (vio_monitors()), virtual gamepads, KTX2 textures, font faces and CPU text bitmaps, and the constants were completed. Later corrections: vio_gpu_flush() (registered by the extension; in vio.stub.php since 2.35.0) is documented, the keypad keys VIO_KEY_KP_* (PHP constants since 2.35.0) are listed, and the start-up warnings without a display are explained.
2.32.0
- 8 colour attachments –
VIO_MAX_COLOR_ATTACHMENTS= 8 (was 4) on every backend, enough for a temporal G-buffer (colour planes, motion vectors, reactive mask). - Depth of a colour target –
vio_render_target_texture($rt, VIO_RT_DEPTH)samples the depth of plain and MRT targets (VIO_FEATURE_RENDER_TARGET_DEPTH_SAMPLE). - Raw readback –
vio_read_render_target(…, ['raw' => true])returns float / half / packed texels bit-exact instead of clamped RGBA8. - Render targets as storage images –
'storage' => truelets a compute kernel read and write the attachments (details;VIO_FEATURE_RENDER_TARGET_STORAGE, D3D12 and Vulkan). - FSR 3.1 –
vio_upscaler_create()/vio_upscaler_dispatch()run AMD FidelityFX FSR 3.1 on D3D12 and Vulkan through the FidelityFX runtime, loaded at run time (vio.ffx_path, next to the PHP executable or php_vio); without itvio_upscaler_supported()isfalsewith a reason and no warning. One provider interface for FSR, DLSS and XeSS: jitter and motion vectors in render pixels.--with-ffx(on by default on Windows),VIO_FEATURE_UPSCALER_NATIVE,VIO_UPSCALER_*,VIO_UPSCALE_*. - DLSS Super Resolution / DLAA –
VIO_UPSCALER_DLSSthrough NVIDIA NGX on D3D12 and Vulkan, served by a plugin (vio_dlss.dll) behind the new versioned upscaler plugin ABI – php-vio itself contains no NVIDIA code (the SDK is NVIDIA-licensed). Same inputs and conventions as FSR; quality modes use NGX's optimal render size,VIO_UPSCALE_NATIVE_AAis DLAA. Plugin viavio.dlss_plugin_path, runtimenvngx_dlss.dllviavio.dlss_path, NGX project id viavio.dlss_project_id;vio_upscaler_info()['plugin']names the plugin loaded. - Provider render sizes –
vio_upscaler_render_size()tells the render size of a quality mode before creating an upscaler;vio_upscaler_info()gainsdriver.
2.10.0
- Honest capability flags –
vio_supports_feature()now reports exactly what a backend can do: Vulkan no longer claims a 3D pipeline, instancing, depth bias, tessellation or geometry shaders; D3D11/D3D12 drop tessellation/geometry; D3D12 reports no render-target MSAA.'auto'skips backends without a 3D pipeline when a later candidate has one (Linux: OpenGL before Vulkan). - Anisotropic filtering –
vio_texture()/vio_texture_3d()option'anisotropy' => 1..16on OpenGL, D3D11, D3D12 and Vulkan. - D3D12 – real sampler states (
filter×wrap×anisotropy, previously always linear/repeat), an asynchronous upload queue, static meshes in GPU-local memory, mip chains formipmaps => true, cube render targets +vio_generate_mipmaps(),vio_texture_update(), cube-face readback. - D3D11 – cube render targets with per-face mips,
vio_generate_mipmaps(), cube-face readback, MSAA render targets (samples), mip chains for cubemaps. - OpenGL – MSAA render targets are now implemented (they were advertised but ignored).
- Vulkan –
vsync => falseselects IMMEDIATE (fallback MAILBOX → FIFO),samplerAnisotropy, persistent upload command pool. - Headless – every backend renders exactly
width × height(a Win32 minimum-width quirk made small headless D3D surfaces 348 px wide); headless mouse injection ignores display scaling. - Fixes – the 2D batch keeps its textures/fonts alive until flushed;
mat4vertex inputs work on D3D;vio_draw_instanced_from_buffer()binds uniforms likevio_draw(); a second OpenGL context in one process no longer renders black when objects of the first are freed late. - Feature Gallery –
examples/gallery.phprenders every feature path headless.
2.9.0
- Metal 3D pipeline with D3D11/D3D12 parity (meshes, uniforms, textures, instancing, render-target sampling, cubemaps, MSAA, depth-only passes).
- Multiple render targets (
attachments, up to 4 colour attachments, 8 pixel formats) and cube render targets with per-face binds andvio_generate_mipmaps(). vio_read_render_target(),vio_texture_update(), eagervio_clear()inside a frame, defined initial render-target contents, pipeline destructor, 1:1 headless metrics.- Compute: storage images (
image2D/image3D), dispatch geometry from the shader'slocal_size,['async' => true]dispatch inside the frame +vio_compute_wait(). - Pipeline state:
depth_write,color_mask, blend modes premultiplied / multiply / screen / min / max. - D3D: textures resolved at draw time, D3D12 cubemap upload and render-target readback.
2.8.0
- Vertex-stage storage buffers –
vio_bind_storage_buffer()+vio_draw_instanced_from_buffer(): a compute-written buffer feeds the vertex shader directly (gl_InstanceIndex), no readback. Gate:VIO_FEATURE_VERTEX_STORAGE.
Earlier
2.7.x: headless 1:1 on Metal, fullscreen windows no longer auto-minimise on focus loss, vio_get_auto_iconify(). See the changelog for the complete list.