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

Add function to convert a texture to Standard Swizzle and vice versa #475

Open
walbourn opened this issue May 14, 2024 · 2 comments · May be fixed by #515
Open

Add function to convert a texture to Standard Swizzle and vice versa #475

walbourn opened this issue May 14, 2024 · 2 comments · May be fixed by #515
Assignees

Comments

@walbourn
Copy link
Member

DirectXTex should add a function to convert between D3D12_TEXTURE_LAYOUT_ROW_MAJOR and D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE.

https://learn.microsoft.com/en-us/windows/win32/direct3d12/default-texture-mapping

@walbourn walbourn self-assigned this May 14, 2024
@walbourn
Copy link
Member Author

walbourn commented Jun 3, 2024

https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_texture_layout#remarks

Note that _pdep_u32 is a BMI2 instruction so you can count on it with /arch:AVX2.

@walbourn
Copy link
Member Author

A challenge here is that the 'mip tails' packing is not defined, so we need to determine the way to solve this.

@walbourn walbourn linked a pull request Sep 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant