Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Mar 1, 2024
1 parent b7d469c commit aedef46
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions source/d3d11/d3d11_device_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,6 @@ struct DECLSPEC_UUID("27B0246B-2152-4D42-AD11-32489472238F") D3D11DeviceContext

LONG _ref = 1;
unsigned short _interface_version;

D3D11Device *const _device;
};
1 change: 1 addition & 0 deletions source/d3d11/d3d11on12_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ struct DECLSPEC_UUID("6BE8CF18-2108-4506-AAA0-AD5A29812A31") D3D11On12Device fin

ID3D11On12Device *_orig;
unsigned short _interface_version;

D3D11Device *const _parent_device_11;
D3D12Device *const _parent_device_12;
};
2 changes: 1 addition & 1 deletion source/d3d9/d3d9_impl_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ namespace reshade::d3d9
D3DCAPS9 _caps = {};

D3DPRIMITIVETYPE _current_prim_type = static_cast<D3DPRIMITIVETYPE>(0);
IDirect3DVertexBuffer9 *_current_stream_output = nullptr;
UINT _current_stream_output_offset = 0;
IDirect3DVertexBuffer9 *_current_stream_output = nullptr;

private:
state_block _backup_state;
Expand Down
3 changes: 2 additions & 1 deletion source/d3d9/d3d9_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ struct DECLSPEC_UUID("0F433AEB-B389-4589-81A7-9DB59F34CB55") Direct3DDepthStenci
HRESULT STDMETHODCALLTYPE ReleaseDC(HDC hdc) override;
#pragma endregion

ULONG _ref = 1;
IDirect3DSurface9 *_orig;
ULONG _ref = 1;

Direct3DDevice9 *const _device;
const D3DSURFACE_DESC _orig_desc;
};
Expand Down
1 change: 1 addition & 0 deletions source/d3d9/d3d9on12_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct DECLSPEC_UUID("C09BBC5E-FC80-4D9A-A46E-F67542343008") Direct3DDevice9On12
bool check_and_upgrade_interface(REFIID riid);

IDirect3DDevice9On12 *_orig;

Direct3DDevice9 *const _parent_device_9;
D3D12Device *const _parent_device_12;
};
3 changes: 2 additions & 1 deletion source/dxgi/dxgi_swapchain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ struct DECLSPEC_UUID("1F445F9F-9887-4C4C-9055-4E3BADAFCCA8") DXGISwapChain final

bool check_and_upgrade_interface(REFIID riid);

LONG _ref = 1;
IDXGISwapChain *_orig;
LONG _ref = 1;
unsigned short _interface_version;

IUnknown *const _direct3d_device;
IUnknown *const _direct3d_command_queue;
const unsigned int _direct3d_version;
Expand Down

0 comments on commit aedef46

Please sign in to comment.