d3d11: make default cpu access none

This commit is contained in:
chyyran 2023-02-06 23:34:32 -05:00
parent 4e8047932b
commit c5b2b50d16

View file

@ -237,7 +237,7 @@ fn default_desc(size: Size<u32>, 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,
}
}