如何在 Directx11 的着色器资源视图中加载动画 .gif 文件?
How can I load animated .gif file in shader resource view in Directx11?
如何在 Directx11 上的 ID3D11ShaderResourceView 数组中加载动画 .gif 文件?
Windows 成像组件 (WIC) 可以从动画 gif 中加载单个 'raw frames',但您必须借助额外的元数据来组合它们。我最近在 DirectTex tool texassemble
that creates a 2D texture array DDS
flipbook from an animated gif. You can either use it as an offline solution (convert to DDS
, then use DDSTextureLoader 中实现了一种模式,以便在运行时加载它),-或- 查看代码以获取自己执行此操作的示例。
看texassemble.cpp 看函数LoadAnimatedGif
.
如何在 Directx11 上的 ID3D11ShaderResourceView 数组中加载动画 .gif 文件?
Windows 成像组件 (WIC) 可以从动画 gif 中加载单个 'raw frames',但您必须借助额外的元数据来组合它们。我最近在 DirectTex tool texassemble
that creates a 2D texture array DDS
flipbook from an animated gif. You can either use it as an offline solution (convert to DDS
, then use DDSTextureLoader 中实现了一种模式,以便在运行时加载它),-或- 查看代码以获取自己执行此操作的示例。
看texassemble.cpp 看函数LoadAnimatedGif
.