Update GameScreenCaptureSession.cs

This commit is contained in:
Lightczx
2024-05-17 14:47:35 +08:00
parent c6e6d08707
commit faefc9c093

View File

@@ -216,6 +216,7 @@ internal sealed class GameScreenCaptureSession : IDisposable
case DXGI_FORMAT.DXGI_FORMAT_R16G16B16A16_FLOAT:
{
// TODO: replace with HLSL implementation.
int rowLength = (int)textureWidth * 8;
IMemoryOwner<byte> buffer = GameScreenCaptureMemoryPool.Shared.Rent((int)(textureHeight * textureWidth * 4));
Span<Bgra32> pixelBuffer = MemoryMarshal.Cast<byte, Bgra32>(buffer.Memory.Span);