DDSTextureLoader / WICTextureLoader flag to flip the image vertically on load

Open
#257 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Start by locating CreateDDSTextureFromMemoryEx and CreateDDSTextureFromFileEx, along with the corresponding DDSTextureLoader and WICTextureLoader entry points. Review how their current flags or forceSRGB arguments are handled; done means the proposed flip-vertical flags are supported and the DirectX Tool Kit for DX11 API change is applied consistently.

Written by the indexing model from the issue text.

Description

enhancement

Proposal for DDS_LOADER_FLIPV and WIC_LOADER_FLIPV flags which would let you invert the image on load.

For DirectX Tool Kit for DX11 this would require a minor breaking change to change CreateDDSTextureFromMemoryEx and CreateDDSTextureFromFileEx from using bool forceSRGB to DDS_LOADER_FLAGS loadFlags. Since we use strongly typed flags, existing uses of false and true will have to be updated to DDS_LOADER_DEFAULT or DDS_LOADER_SRGB.

Dominant language
C++
Stars
2.9k
Forks
538
Avg merge
14h 50m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DirectXTK

All issues in microsoft/DirectXTK

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.