2

I am very very sorry for my poor english. I have a question about directx 12 D3D12_RESOURCE_TRANSITION_BARRIER.

typedef struct D3D12_RESOURCE_TRANSITION_BARRIER {
  ID3D12Resource        *pResource;
  UINT                  Subresource;
  D3D12_RESOURCE_STATES StateBefore;
  D3D12_RESOURCE_STATES StateAfter;
} D3D12_RESOURCE_TRANSITION_BARRIER;

I think GPU will knows resource's state because StateAfter.

What's the purpose of StateBefore ?

user754458
  • 193
  • 7

0 Answers0