Last active
July 23, 2016 08:08
-
-
Save yorung/76c6670e67aef6eab7fa6cb69ac35c46 to your computer and use it in GitHub Desktop.
[DX12] Frame resources
This file contains hidden or 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
| class FrameResources { | |
| public: | |
| ~FrameResources(); | |
| ComPtr<ID3D12Resource> renderTarget; | |
| ComPtr<ID3D12CommandAllocator> commandAllocator; | |
| ComPtr<ID3D12Resource> constantBuffer; | |
| ComPtr<ID3D12DescriptorHeap> srvHeap; | |
| struct { char buf[256]; } *mappedConstantBuffer = nullptr; | |
| UINT64 fenceValueToGuard = 0; | |
| } frameResources[2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment