Skip to content
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

Unable to generate mips with DX11 and Texture2D #6

Open
davidAlgis opened this issue Apr 18, 2023 · 1 comment
Open

Unable to generate mips with DX11 and Texture2D #6

davidAlgis opened this issue Apr 18, 2023 · 1 comment

Comments

@davidAlgis
Copy link
Owner

I wanted to generate the mip map of a Texture2D directly from the graphics API. But with DX11 a Texture2D is created with miscflag 0, and the function to generate mip maps with DX11 needs to have the flag D3D11_RESOURCE_MISC_GENERATE_MIPS. (cf.
https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11devicecontext-generatemips)

@davidAlgis
Copy link
Owner Author

A possibility will to be generate them directly with CUDA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant