mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
Update GameScreenCaptureSession.cs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user