-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dx11] Add underlying DX11 device, memory allocation, and some tests (#…
…3971) * [dx11] Add ID3D11Device and ID3D11DeviceContext This change adds the actual D3D11 device class (ID3D11Device and ID3D11DeviceContext) from <d3d11.h>. Tested: Tested with unit test and saw the Dx11Device and the D3D11 device it creates can be successfully created. Enabled Graphics Debug and confirmed there are no remaining live objects when the test is finished. * [dx11] Add a class for getting info from the D3D11 info queue This class fetches information from the D3D11 info queue. This enables us to count the number of live D3D11 objects. This is most meant for usage with unit tests and during development. Tested: Tested with unit tests * [dx11] Allocate and deallocate memory This change adds Dx11Device::allocate_memory and Dx11Device::dealloc_memory. Tested: Tested with unit tests. The D3D11 objects (Buffer and UAV) are created and released as expected. * Auto Format * Don't build DX11 test when the backend is not built * Update prtags.json * [dx11] Make kD3d11DebugEnabled a compile-time constant This change makes kD3d11DebugEnabled a constant. Tested: rebuilt-and ran unit test with either kD3d11DebugEnabled set to ON or OFF. * Update taichi/backends/dx/dx_info_queue.h Co-authored-by: Ye Kuang <[email protected]> * Auto Format Co-authored-by: Taichi Gardener <[email protected]> Co-authored-by: Bob Cao <[email protected]> Co-authored-by: Ye Kuang <[email protected]>
- Loading branch information
1 parent
f725c1c
commit 9643518
Showing
9 changed files
with
492 additions
and
3 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
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
Oops, something went wrong.