Microsoft’s new DirectX 12 Agility SDK opens the door to direct CPU VRAM access

Why it issues: On Thursday, Microsoft’s Agility SDK growth workforce introduced the preview launch of Agility SDK model 1.7.10.0. The brand new model brings builders two new options, GPU add heaps and non-normalized sampling. The updates, at the side of VRAM resizable base deal with register (BAR), present extra environment friendly VRAM knowledge dealing with throughout the CPU and GPU, in addition to enhancements bettering texture-related info administration and use.

The primary of the brand new options, referred to as GPU add heaps, decreases dynamic random entry reminiscence (DRAM) utilization by permitting the CPU to entry the GPU’s video RAM (VRAM). This entry eliminates the necessity for knowledge to be copied from VRAM to DRAM for CPU entry and use. Whereas the impression is at present unknown and requires additional testing, the discount in assets and required knowledge might very properly translate to new out there efficiencies for builders and efficiency enhancements for finish customers.

The second function, non-normalized sampling, supplies builders with a extra absolute technique to acquire texture sampling knowledge. Texture sampling refers back to the technique used to retrieve knowledge from a particular texture, which is later mixed or processed to create the pattern. The brand new Agility SDK’s non-normalized sampling function strikes away from typical sampling strategies, as a substitute permitting builders to put a sampler utilizing the D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES flag. When used, the flag refers back to the absolute texel location inside a texture, relatively than being certain by the standard values of 0 and 1. Like GPU add heaps, non-normalized sampling requires thorough testing earlier than any precise advantages will be documented.

GPU add heap depends on the usage of resizable BAR, the PCIE-based expertise that’s out there throughout lots of AMD, NVIDIA, and Intel’s more moderen GPUs. It permits a consumer’s CPU to entry the GPU’s framebuffer, ensuing within the potential to ship extra property per transaction. Transactions that do not use resizable bar are sometimes restricted to accessing 256MB chunks of VRAM. Testing has proven that resizable BAR’s impression on sport efficiency can fluctuate, with some video games seeing double-digit efficiency will increase, whereas others see no tangible profit.

Builders requiring Intel driver assist for the brand new Agility SDK options can use the Intel Arc & Iris Xe Graphics Driver model 31.0.101.4255 package deal. NVIDIA additionally supplies assist for the brand new DirectX 12 Agility SDK package deal through their Sport Prepared and Studio Drivers model 531.41. AMD has not but publicly launched a supported model of their driver package deal. Per Microsoft’s announcement, builders involved in early entry to the DirectX 12 Agility SDK-enabled AMD drivers ought to contact their AMD alliance supervisor immediately.

Source link