Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support Some Texture Format in Unity 2022 #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ukeyshima
Copy link

@ukeyshima ukeyshima commented Dec 16, 2023

Support Some Texture Format in Unity 2022

image

Related Issue: #81

Issue

  • Some applications, such as Touch designer, use the BGRA format by default.
  • It seems that starting with Unity2022, the CreateExternalTexture function cannot convert native textures in BGRA (or other) format to RGBA format.
  • Therefore, when using CreateExternalTexture, it is required to use the Format of NativeTexture.

Change

  • Added format variable to Dll to get NativeTexture format.
  • Added class to convert from DXGI format to Unity's TextureFormat.

@ukeyshima ukeyshima changed the title Support Unity 2022 Support Some Texture Format in Unity 2022 Dec 16, 2023
@keijiro keijiro self-requested a review December 17, 2023 05:57
@keijiro keijiro self-assigned this Dec 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants