Skip to content

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

Open

Description

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

Activity

  1. walbourn commented on Jun 3, 2024

    @walbourn
    CollaboratorAuthor

    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.

  2. walbourn commented on Sep 11, 2024

    @walbourn
    CollaboratorAuthor

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

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

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions