mirror of
https://github.com/VirtualDrivers/Virtual-Display-Driver.git
synced 2026-12-06 07:01:23 +09:00
Initialize D3D12 frame metadata for IddCx
This commit is contained in:
1 parent
e1137ca41d
commit
0a81e9fb56
2 files changed
+9
-1
No files matched your search
@@ -3476,6 +3476,9 @@ void SwapChainProcessor::RunCore()
|
||||
BufferInArgs.Size = d3d12Queue ? sizeof(BufferInArgs) : offsetof(IDARG_IN_RELEASEANDACQUIREBUFFER2, pD3D12CommandQueue);
|
||||
BufferInArgs.pD3D12CommandQueue = d3d12Queue.Get();
|
||||
IDARG_OUT_RELEASEANDACQUIREBUFFER2 Buffer = {};
|
||||
if (d3d12Queue) {
|
||||
Buffer.MetaData.Size = sizeof(Buffer.MetaData);
|
||||
}
|
||||
hr = IddCxSwapChainReleaseAndAcquireBuffer2(m_hSwapChain, &BufferInArgs, &Buffer);
|
||||
if (Buffer.MetaData.ValidFlags & IDDCX_METADATA2_VALID_FLAGS_D3D12_SURFACE) {
|
||||
d3d12Surface = Buffer.MetaData.pD3D12Surface;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
5. Click "Have Disk..." and click the "Browse..." button. Navigate to the extracted files and select the inf file.
|
||||
|
||||
6. You are done! Go to display settings to customize the resolution of the additional displays. These displays show up in Oculus and should be able to be streamed from.
|
||||
|
||||
## IddCx 1.11 options
|
||||
|
||||
Build the x64 or ARM64 driver with the Windows 28000 SDK and WDK. The release build keeps the existing minimum IddCx target. The driver queries Windows for the individual 1.11 capabilities before creating an adapter.
|
||||
@@ -23,4 +24,8 @@ Build the x64 or ARM64 driver with the Windows 28000 SDK and WDK. The release bu
|
||||
| `VirtualI2c` | Enable the atomic I2C callback and the paired legacy callbacks on compatible runtimes. The virtual display serves its EDID and read-only DDC/CI identity queries. |
|
||||
| `StaticDesktopReencodeFrameCount` | Set the adapter’s initial static desktop reencode count. The default is `0`. |
|
||||
|
||||
The first three options default to `false`. Restart the driver after changing the XML. `GETIDDCXFEATURES` returns the OS feature mask. `SETREENCODECOUNT <unsigned integer>` queues an override for current and subsequent swap chains until the driver restarts. Driver logs report the result of applying the override. [Microsoft’s IddCx 1.11 documentation](https://learn.microsoft.com/en-us/windows-hardware/drivers/display/iddcx1-dot-11-updates)
|
||||
The first three options default to `false`. Restart the driver after changing the XML or registry settings.
|
||||
|
||||
Virtual Driver Control 2.0 can remove these XML fields when it saves. To keep the settings across Control saves, use DWORD values in `HKLM\SOFTWARE\MikeTheTech\VirtualDisplayDriver`. Set `D3D12SWAPCHAIN`, `CUSTOMDISPLAYID`, or `VIRTUALI2C` to `1` to enable them. To disable an override, remove the DWORD and leave the corresponding XML option disabled. Set `STATICDESKTOPREENCODEFRAMECOUNT` to a value from `0` to `2147483647` for the initial count.
|
||||
|
||||
In the Control console, `GETIDDCXFEATURES` returns the OS feature mask. `SETREENCODECOUNT <unsigned integer>` queues an override for current and subsequent swap chains until the driver restarts. Driver logs report the result of applying the override. [Microsoft’s IddCx 1.11 documentation](https://learn.microsoft.com/en-us/windows-hardware/drivers/display/iddcx1-dot-11-updates)
|
||||
Reference in new issue
Block a user