altseed/LLGI

Swapchain の backbuffer を LLGI.Texture でラップして公開する

Closed this issue · 1 comments

lriki commented

キャプチャの API で任意のバッファから読み取れるようにするため、Swapchain の backbuffer を、LLGI.Texture でラップして公開するような API を実装する。

次のように使えるようにしたい。

auto renderPass = graphics->GetCurrentScreen(color, true);
auto texture = renderPass->GetColorBuffer(0);
auto data = graphics->CaptureRenderTarget(texture);

DX12 : 767f2c4