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 · 1 comment
Open
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.

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

No branches or pull requests

1 participant