Skip to content

Instantly share code, notes, and snippets.

@yorung
Last active July 23, 2016 08:08
Show Gist options
  • Select an option

  • Save yorung/76c6670e67aef6eab7fa6cb69ac35c46 to your computer and use it in GitHub Desktop.

Select an option

Save yorung/76c6670e67aef6eab7fa6cb69ac35c46 to your computer and use it in GitHub Desktop.
[DX12] Frame resources
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