| 422 | } |
| 423 | |
| 424 | uint64 Buffer::CycleBuffer() |
| 425 | { |
| 426 | Assert_(Initialized()); |
| 427 | Assert_(Dynamic); |
| 428 | |
| 429 | // Make sure that we do this at most once per-frame |
| 430 | Assert_(UploadFrame != DX12::CurrentCPUFrame); |
| 431 | UploadFrame = DX12::CurrentCPUFrame; |
| 432 | |
| 433 | // Cycle to the next buffer |
| 434 | CurrBuffer = (CurrBuffer + 1) % DX12::RenderLatency; |
| 435 | |
| 436 | return CurrBuffer * Size; |
| 437 | } |
| 438 | |
| 439 | #if UseAsserts_ |
| 440 |
nothing calls this directly
no outgoing calls
no test coverage detected