Skip to content

v191

Choose a tag to compare

@dzhdanNV dzhdanNV released this 30 Oct 10:13
· 55 commits to main since this release

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 DescriptorHeap entity with direct host-side updates and command binding
    • kept root constants, root descriptors and root samplers working through pipeline layouts
  • 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 Android support and application-owned presentation IDs
  • Upscaler: supported FSR 4, and supported NIS in WGPU
  • Build: added Android, Windows ARM64/ARM64EC, and macOS builds; 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::structureStride no longer encodes byte-address access; use BufferDesc::byteAddress for byte-address views
  • Core: DispatchDesc::{x, y, z} => {workGroupNumX, workGroupNumY, workGroupNumZ}
  • Core: CreateFence now takes FenceDesc { initialValue, shared } instead of an initial value
  • Core: removed DescriptorSetBits and DescriptorSetDesc::flags; "update-after-set" requirements now come from descriptor ranges
  • Core: attachment resolve sources require RESOLVE_ATTACHMENT_SOURCE access and RESOLVE_ATTACHMENT stage in addition to their drawing scopes
  • Core: attachment resolve destinations require RESOLVE_ATTACHMENT_DESTINATION access and RESOLVE_ATTACHMENT stage instead of COLOR_ATTACHMENT used for both access and stage
  • Creation: nriEnumerateAdapters gained desiredGraphicsAPIs; "C" callers must pass it explicitly, while C++ defaults to GraphicsAPI::ALL
  • Imgui: CmdCopyImguiData now outputs ImguiRenderData; pass it to CmdDrawImgui and configure StreamerDesc::hostDataCapacity
  • LowLatency/SwapChain: QueuePresent, WaitForPresent, SetLatencyMarker and LatencySleep gained a presentId argument
  • RayTracing: DispatchRaysDesc and DispatchRaysIndirectDesc: {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: WriteShaderGroupIdentifiers gained the required dstStride argument
  • Streamer: destination uploads require a StreamerCopyBatch from BeginStreamerCopyBatch; pass it to CmdCopyStreamedData, which consumes it

MERGED:

CLOSED:

CONTRIBUTORS:

DETAILS:

  • added Metal 4 backend (#271)
  • added NRIDescriptorHeap interface (#210)
  • added NRIVideo interface (#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::NONE for 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_ATTACHMENT and ALL_RESOLVE stage 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 ALL shader 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 _BUFFER suffix from some BufferUsageBits to avoid buffer-buffer (#245)
  • Core: BufferDesc::structureStride untangling: structureStride special values replaced with additional byteAddress field, 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 desiredGraphicsAPIs probe mask (#286)
  • Wrapper: included NRIRayTracing.h in NRIWrapperVK.h (#260)
  • Helper: added vma to ResourceGroupDesc (#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 reactive guide 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::preExposure for FSR and DLSS (#268)
  • Upscaler: fixed NGX cleanup after failed initialization
  • SwapChain: added Android support (#262)
  • SwapChain: added Result::NOT_READY for 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 EndStreamerFrame with 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 ImTextureData access across devices
  • Imgui: synced ImTextureData with 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_BUFFER sentinel 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 SRV and UAV ranges
  • 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_ARGUMENT for out-of-range GetQueue indices
  • 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 rasterizer1 pipeline subobject type (Invalid DepthBias value) (#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 CmdClearAttachments in 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_MISS without error reporting
  • D3D12: preserved enhanced-barrier synchronization with NONE access 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 STORE if 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 CmdZeroBuffer in the COPY stage (#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_DATE returns 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_DST capability reporting
  • Build: allowed config override via NRI_USER_CONFIG macro (#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 METAL backend is disabled
  • CI: added Android ARM64, Windows ARM64, Windows ARM64EC, and macOS build jobs
  • Scripts: all scripts moved to Scripts folder
  • Scripts: added scripts for macOS
  • updated dependencies
  • updated docs
  • refactoring