Minor code tweaks

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-25 16:25:00 +01:00
1 親 65941ea4f8
コミット 5def7d1a00
3ファイル変更
+21 -3

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -123,7 +123,7 @@ namespace ComputeSharp.Graphics.Helpers
if (dxgiDescription1.DedicatedVideoMemory == 0) continue;
HRESULT createDeviceResult = FX.D3D12CreateDevice(
dxgiAdapter1.Upcast<IDXGIAdapter1, IUnknown>().Get(),
dxgiAdapter1.AsIUnknown().Get(),
D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_12_0,
FX.__uuidof<ID3D12Device>(),
null);
@@ -134,7 +134,7 @@ namespace ComputeSharp.Graphics.Helpers
using ComPtr<ID3D12Device> d3d12device = default;
FX.D3D12CreateDevice(
dxgiAdapter1.Upcast<IDXGIAdapter1, IUnknown>().Get(),
dxgiAdapter1.AsIUnknown().Get(),
D3D_FEATURE_LEVEL.D3D_FEATURE_LEVEL_12_0,
FX.__uuidof<ID3D12Device>(),
d3d12device.GetVoidAddressOf()).Assert();