-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a36938
commit 84de2a3
Showing
14 changed files
with
5,840 additions
and
1,241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef PERIMETER_SOKOLD3D_H | ||
#define PERIMETER_SOKOLD3D_H | ||
|
||
#include <d3d11.h> | ||
#include <dxgi.h> | ||
|
||
struct sokol_d3d_context { | ||
HWND hwnd = nullptr; | ||
DXGI_SWAP_CHAIN_DESC swap_chain_desc = {}; | ||
ID3D11Device* device = nullptr; | ||
ID3D11DeviceContext* device_context = nullptr; | ||
IDXGISwapChain* swap_chain = nullptr; | ||
ID3D11Texture2D* render_target = nullptr; | ||
ID3D11RenderTargetView* render_target_view = nullptr; | ||
ID3D11Texture2D* depth_stencil_buffer = nullptr; | ||
ID3D11DepthStencilView* depth_stencil_view = nullptr; | ||
}; | ||
|
||
#endif //PERIMETER_SOKOLD3D_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.