-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize Texture2D DirectX 11 c++ #93
Comments
The easiest way to do the resize is to just create a new texture that is the size you want with the option to bind as both a shader resource view and as a render target. Then render to that new texture a full-screen quad (using Alternatively, if you need a CPU solution the DirectXTex library supports a number of resizing options. |
Hello Walbourn, Thank you for your help. |
SpriteBatch can only render to textures that are something other than |
The texture with |
I don't really have the time on-hand to code up a full solution, but if you already have everything in CPU memory (which is what's happening with |
Oh okk so I should check with DirectXTex. |
I don't understand your usage case in detail here, but you can find docs on the DirectXTex |
For those who have the same question... |
Hello,
Is it possible to resize a texture2D obtained from AcquireNextFrame function ?
I would like to decrease the resolution of the image using DirectX11.
Thanks
The text was updated successfully, but these errors were encountered: