From 3f4d366319ae4d6770f0423c033d0e14f27b07d3 Mon Sep 17 00:00:00 2001 From: Lazy Panda Date: Fri, 1 Nov 2024 12:09:23 +0800 Subject: [PATCH] adding a writable flag --- src/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame.rs b/src/frame.rs index ee5d9e7..6978ad0 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -205,7 +205,7 @@ impl<'a> Frame<'a> { }, Usage: D3D11_USAGE_STAGING, BindFlags: 0, - CPUAccessFlags: D3D11_CPU_ACCESS_READ.0 as u32, + CPUAccessFlags: D3D11_CPU_ACCESS_READ.0 as u32 | D3D11_CPU_ACCESS_WRITE.0 as u32, MiscFlags: 0, };