Skip to content

Commit

Permalink
Use hardware acceleration on d3d11 #18
Browse files Browse the repository at this point in the history
  • Loading branch information
MolotovCherry committed Oct 12, 2023
1 parent 401b006 commit fe72ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtual-display-driver/src/direct_3d_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use windows::{
Win32::{
Foundation::LUID,
Graphics::{
Direct3D::D3D_DRIVER_TYPE_UNKNOWN,
Direct3D::D3D_DRIVER_TYPE_HARDWARE,
Direct3D11::{
D3D11CreateDevice, ID3D11Device, ID3D11DeviceContext,
D3D11_CREATE_DEVICE_BGRA_SUPPORT, D3D11_SDK_VERSION,
Expand Down Expand Up @@ -48,7 +48,7 @@ impl Direct3DDevice {
unsafe {
D3D11CreateDevice(
&adapter,
D3D_DRIVER_TYPE_UNKNOWN,
D3D_DRIVER_TYPE_HARDWARE,
None,
D3D11_CREATE_DEVICE_BGRA_SUPPORT,
None,
Expand Down

0 comments on commit fe72ba3

Please sign in to comment.