Open walbourn opened 6 months ago
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
.
A challenge here is that the 'mip tails' packing is not defined, so we need to determine the way to solve this.
DirectXTex should add a function to convert between
D3D12_TEXTURE_LAYOUT_ROW_MAJOR
andD3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE
.https://learn.microsoft.com/en-us/windows/win32/direct3d12/default-texture-mapping