Repository navigation
v191
HIGHLIGHTS:
- added
METAL(Metal 4) backend - Core: added synchronous host texture upload/readback, shared resources and fences, copy-source descriptor pools, and device-lost diagnostics
- Video: added encode/decode interface (video queues and sessions, codec data, AV1 film grain decoding, DPB and rate-control handling), implemented in D3D12 and VK
- DescriptorHeap: added support for directly indexed descriptor heaps, enabling simpler true-bindless resource access without descriptor set management
- introduced
DescriptorHeapentity with direct host-side updates and command binding - kept root constants, root descriptors and root samplers working through pipeline layouts
- introduced
- Creation: optimized adapter enumeration and added a backend probe mask
- RayTracing: clarified dispatch and shader binding table APIs and added strided shader group identifier writes
- Imgui and Streamer: made concurrent use safe through explicit copy batches and per-call render data
- SwapChain and LowLatency: added
Androidsupport and application-owned presentation IDs - Upscaler: supported
FSR 4, and supportedNISinWGPU - Build: added
Android,Windows ARM64/ARM64EC, andmacOSbuilds; refreshed dependencies and scripts - numerous bug fixes across all backends
- updated dependencies to the latest versions (Agility SDK v1.620.1, Vulkan headers v1.4.367, NGX v310.9.16, FFX v2.4.0, VMA and D3D12MA, etc.)
- improved validation
- improved docs
BREAKING CHANGES:
- Core:
BufferUsageBits:VERTEX_BUFFER=>VERTEX,INDEX_BUFFER=>INDEX,CONSTANT_BUFFER=>CONSTANT,ARGUMENT_BUFFER=>ARGUMENT,SCRATCH_BUFFER=>SCRATCH - Core:
BufferDesc::structureStrideno longer encodes byte-address access; useBufferDesc::byteAddressfor byte-address views - Core:
DispatchDesc::{x, y, z}=>{workGroupNumX, workGroupNumY, workGroupNumZ} - Core:
CreateFencenow takesFenceDesc { initialValue, shared }instead of an initial value - Core: removed
DescriptorSetBitsandDescriptorSetDesc::flags; "update-after-set" requirements now come from descriptor ranges - Core: attachment resolve sources require
RESOLVE_ATTACHMENT_SOURCEaccess andRESOLVE_ATTACHMENTstage in addition to their drawing scopes - Core: attachment resolve destinations require
RESOLVE_ATTACHMENT_DESTINATIONaccess andRESOLVE_ATTACHMENTstage instead ofCOLOR_ATTACHMENTused for both access and stage - Creation:
nriEnumerateAdaptersgaineddesiredGraphicsAPIs; "C" callers must pass it explicitly, while C++ defaults toGraphicsAPI::ALL - Imgui:
CmdCopyImguiDatanow outputsImguiRenderData; pass it toCmdDrawImguiand configureStreamerDesc::hostDataCapacity - LowLatency/SwapChain:
QueuePresent,WaitForPresent,SetLatencyMarkerandLatencySleepgained apresentIdargument - RayTracing:
DispatchRaysDescandDispatchRaysIndirectDesc:{x, y, z}=>{width, height, depth} - RayTracing:
DispatchRaysDesc::raygenShader=>raygenShaderRecord - RayTracing:
DispatchRaysDesc::missShaders=>missShaderBindingTable - RayTracing:
DispatchRaysDesc::hitShaderGroups=>hitShaderBindingTable - RayTracing:
DispatchRaysDesc::callableShaders=>callableShaderBindingTable - RayTracing:
BottomLevelMicromapDesc=>BottomLevelTrianglesMicromapDesc - RayTracing:
TransformMatrix::transform=>matrix - RayTracing:
TopLevelInstance::shaderBindingTableLocalOffset=>shaderBindingTableRecordOffset - RayTracing:
CmdWriteMicromapsSizes=>CmdWriteMicromapSizes - RayTracing:
CmdWriteAccelerationStructuresSizes=>CmdWriteAccelerationStructureSizes - RayTracing:
WriteShaderGroupIdentifiersgained the requireddstStrideargument - Streamer: destination uploads require a
StreamerCopyBatchfromBeginStreamerCopyBatch; pass it toCmdCopyStreamedData, which consumes it
MERGED:
- #226, #241, #242, #243, #244, #245, #246, #247, #249, #250, #251, #252, #254, #255, #256, #257, #258, #259, #260, #263, #264, #265, #266, #267, #268, #269, #270, #271, #285, #287, #288, #289, #290, #292, #293, #294
CLOSED:
- #49, #176, #210, #261, #273, #274, #275, #276, #277, #278, #279, #280, #281, #282, #283, #284, #286, #295, #296, #297, #298, #299, #300, #301, #302, #303, #304, #305, #306
CONTRIBUTORS:
- @astrdark, @BjornSAIM, @Bonzai-Dev, @ChillstepCoder, @Daedie-git, @duckdoom5, @eyalezer, @JoraPupkin, @MaxFreedomPollard, @Nullpoint56, @segfaultcpp, @selimsandal, @vertver
DETAILS:
- added
Metal 4backend (#271) - added
NRIDescriptorHeapinterface (#210) - added
NRIVideointerface (#226) - Core: added synchronous host texture upload and readback (#176, #254)
- Core: added descriptor copy-source pools
- Core: added
features.resourceAliasing(#242) - Core: added
StoreOp::NONEfor read-only attachments (#258) - Core: added explicit texture view layouts for read-only depth/stencil access (
TextureViewDesc::layout, #273) - Core: added explicit attachment resolve accesses and stages, plus
ALL_ATTACHMENTandALL_RESOLVEstage masks - Core: added shared buffers, textures and fences on D3D12/VK (#49, #294)
- Core: fixed root descriptor offset and range semantics
- Core: fixed whole-size buffer views with offsets
- Core: fixed
ALLshader stage handling and resolved descriptor/root visibility to effective pipeline layout stages (#302) - Core: fixed compressed Vulkan format conversion (#276)
- Core: fixed block-aligned mip extents for non-power-of-two and non-square ASTC blocks (#293)
- Core: clarified copy-queue timestamp query requirements, host upload overlap restriction, synchronous host-copy behavior and descriptor pool/heap terminology
- Core: documented texture type restrictions
- Core: exposed constant-alpha blend factor support
- Core: exposed rectangular clear capabilities
- Core: removed
_BUFFERsuffix from someBufferUsageBitsto avoidbuffer-buffer(#245) - Core:
BufferDesc::structureStrideuntangling:structureStridespecial values replaced with additionalbyteAddressfield, which makes 4-byte structured buffers usable (#243) - Core: allowed texture views to inherit their texture format
- Core: derived descriptor set update-after-set requirements from ranges and removed redundant set flags
- Core: handled host allocation failures and rolled back failed resource allocation or binding (#292, #301)
- Creation: preserved caller-owned queue family descriptors
- Creation: optimized adapter enumeration and added the
desiredGraphicsAPIsprobe mask (#286) - Wrapper: included
NRIRayTracing.hinNRIWrapperVK.h(#260) - Helper: added
vmatoResourceGroupDesc(#247) - Helper: initialized memory heap alignment (#275)
- Helper: included the last buffer and texture when sorting memory allocation groups (#305)
- LowLatency: made presentation IDs application-owned (#250)
- Upscaler: added configurable FFX debug logging (#252)
- Upscaler: fixed FSR depth plane mapping for inverted depth (#251)
- Upscaler: updated to FidelityFX SDK v2.4.0
- Upscaler: updated NGX, hooked up
reactiveguide for DLSS-RR - Upscaler: added WGPU support for NIS
- Upscaler: added an optional output format for devices without
shaderFeatures.storageWriteWithoutFormat - Upscaler: replaced NGX evaluation helpers with direct API calls, added "preTransparency" guide for DLSS-RR
- Upscaler: supported
MetalFX - Upscaler: added
DispatchUpscaleDesc::preExposurefor FSR and DLSS (#268) - Upscaler: fixed NGX cleanup after failed initialization
- SwapChain: added Android support (#262)
- SwapChain: added
Result::NOT_READYfor zero-sized VK surfaces and temporarily unavailable WGPU textures (#280, #285) - RayTracing: cleaned up ray tracing and dispatch APIs (clarified some ray tracing names, distinguished shader records from shader binding tables, added strided host writes for shader group identifiers, fixed D3D12 raygen record sizing and Vulkan offset overflow)
- Streamer: added explicit copy batches to isolate destination requests
- Streamer: added a read/write host-data ring for transient CPU payloads
- Streamer: synchronized
EndStreamerFramewith streaming operations - Streamer: fixed compressed texture uploads to use block rows (#274)
- Streamer: allowed omitted row/slice pitches for tightly packed texture uploads
- Imgui: replaced instance-shared draw state with per-call render data
- Imgui: resolved texture descriptors before draw recording
- Imgui: synchronized shared
ImTextureDataaccess across devices - Imgui: synced
ImTextureDatawith upstream ImGui layout (#255) - Validation: checked ray tracing query write ranges
- Validation: checked root parameter bindings
- Validation: fixed descriptor allocation and validation
- Validation: fixed host texture copy validation
- Validation: fixed host texture state validation
- Validation: fixed queue caching and memory-type lookup (keyed queues by type/index, guarded cache access and copied memory locations under the device lock)
- Validation: rejected unsupported partially bound ranges
- Validation: used implementation descriptors for AS memory queries
- Validation: checked read-only depth-stencil writes in SetPipeline only (#269)
- Validation: preserved the
HAS_BUFFERsentinel during acceleration structure geometry conversion (#279) - Validation: checked attachment resolve inputs and texture view layer restrictions
- D3D11: batched host readbacks
- D3D11: disabled independent blending for logic operations
- D3D11: fixed texture-to-buffer readback
- D3D11: fixed wrapped host-copy support
- D3D11: improved host-copy staging
- D3D11: serialized queue submissions
- D3D11: stopped skipping global-only barriers
- D3D11: tracked overlapping
SRVandUAVranges - D3D11/D3D12: fixed stencil clears when only the depth attachment is set (#298)
- D3D11/D3D12: fixed layer selection for non-array texture views (#306)
- D3D12/VK: fixed transfer context reuse after failed waits
- D3D12/VK: returned
INVALID_ARGUMENTfor out-of-rangeGetQueueindices - D3D12: added device removed diagnostics (#241)
- D3D12: fixed host-copy state restoration
- D3D12: fixed micromap post-build address lookup
- D3D12: fixed post-build query offsets
- D3D12: fixed potential UB (#246)
- D3D12: fixed shader model detection (#257)
- D3D12: fixed
rasterizer1pipeline subobject type (InvalidDepthBiasvalue) (#244) - D3D12: fixed patch-list primitive topology mapping
- D3D12: fixed depth/stencil plane formats for buffer-texture copies
- D3D12: fixed copy-queue barrier synchronization (#283)
- D3D12: fixed attachment resolve transitions, state restoration, array layers and destination mip indexing
- D3D12: fixed
CmdClearAttachmentsin stencil-only passes (#297) - D3D12: fixed micromap write barriers (#299)
- D3D12: fixed acceleration structure placement and memory requirements with tight alignment (#300)
- D3D12: honored texture view plane bits
- D3D12: normalized depth-stencil read/write access in enhanced and legacy barriers (#263)
- D3D12: preserved 64-bit buffer view offsets
- D3D12: propagated queue wait failures
- D3D12: swap chain cleanup (removed unreachable code)
- D3D12: allowed sampling a depth buffer bound as a read-only attachment (#266)
- D3D12: included the root signature in the pipeline cache key (#270)
- D3D12: handled
FAIL_ON_CACHE_MISSwithout error reporting - D3D12: preserved enhanced-barrier synchronization with
NONEaccess and a defined layout (#281) - NONE: populated dummy object outputs
- VK/WGPU: fixed binding-slot mapping for out-of-order vertex streams (#295)
- VK: fixed host-copy layout and Vulkan mapping ranges
- VK: fixed instance API version selection for older loaders
- VK: fixed regression in
TrySelectPreferredQueueType(fixed #261) - VK: fixed Vulkan host-copy layout alignment
- VK: fixed dynamic vertex stride state for empty vertex input (#296)
- VK: added Vulkan device fault diagnostics
- VK: batched native Vulkan host copies
- VK: enabled KHR/EXT load-store-op-none extensions and added fallback to
STOREif unsupported (polishing of #258) - VK: used mip extents for whole texture copies
- VK: capped the device API version by the instance version (#278)
- VK: corrected swap chain extent selection and present-scaling limits (#277, #285)
- VK: included
CmdZeroBufferin theCOPYstage (#282) - VK: avoided local ownership transfers for concurrent textures (#284)
- VK: corrected attachment resolve scopes and implicit input-attachment layouts
- VK: reported a zero sampler LOD bias limit when portability devices do not support bias (#303)
- VK: kept expected
OUT_OF_DATEreturns quiet and downgraded unexpected reports to warnings (#304) - VK: worked around NVIDIA encode-feedback query copy hangs (#265)
- WGPU: fixed compilation (#253)
- WGPU: fixed compilation after SDK update
- WGPU: fixed descriptor copies and binding arrays
- WGPU: copied all texture mip levels
- WGPU: created comparison root samplers correctly
- WGPU: fixes for GCC (#253)
- WGPU: honored read-only depth-stencil planes
- WGPU: honored the selected adapter
- WGPU: made queue submissions and fences thread-safe
- WGPU: used aspect-specific depth-stencil view formats
- WGPU: skipped empty host uploads
- WGPU: respected surface usages and requested non-sRGB formats on macOS (#280)
- WGPU: worked around incorrect surface
COPY_DSTcapability reporting - Build: allowed config override via
NRI_USER_CONFIGmacro (#252) - CMake: enabled WGPU in CI builds (#253)
- CMake: enabled NVAPI and NGX SDK on Windows ARM64
- CMake: various fixes
- CMake: removed output noise when the
METALbackend is disabled - CI: added Android ARM64, Windows ARM64, Windows ARM64EC, and macOS build jobs
- Scripts: all scripts moved to
Scriptsfolder - Scripts: added scripts for macOS
- updated dependencies
- updated docs
- refactoring