From c5b2b50d16c496aeb677e81e6c770e27737ad471 Mon Sep 17 00:00:00 2001 From: chyyran Date: Mon, 6 Feb 2023 23:34:32 -0500 Subject: [PATCH] d3d11: make default cpu access none --- librashader-runtime-d3d11/src/framebuffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librashader-runtime-d3d11/src/framebuffer.rs b/librashader-runtime-d3d11/src/framebuffer.rs index d517227..77ba94a 100644 --- a/librashader-runtime-d3d11/src/framebuffer.rs +++ b/librashader-runtime-d3d11/src/framebuffer.rs @@ -237,7 +237,7 @@ fn default_desc(size: Size, format: DXGI_FORMAT, mip_levels: u32) -> D3D11_ }, Usage: D3D11_USAGE_DEFAULT, BindFlags: D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET, - CPUAccessFlags: D3D11_CPU_ACCESS_WRITE, + CPUAccessFlags: D3D11_CPU_ACCESS_FLAG(0), MiscFlags: D3D11_RESOURCE_MISC_GENERATE_MIPS, } }