issues
search
keijiro
/
KlakSpout
Spout plugin for Unity
The Unlicense
651
stars
97
forks
source link
Support Some Texture Format in Unity 2022
#104
Open
ukeyshima
opened
7 months ago
ukeyshima
commented
7 months ago
Support Some Texture Format in Unity 2022
Related Issue:
https://github.com/keijiro/KlakSpout/issues/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.
Support Some Texture Format in Unity 2022
Related Issue: https://github.com/keijiro/KlakSpout/issues/81
Issue
Change