gpt4 book ai didi

directx - 将 DXBC 转换为 DXIL(DirectX 字节码到 DirectX 中间语言)

转载 作者:行者123 更新时间:2023-12-04 03:10:40 44 4
gpt4 key购买 nike

微软的开源DirectX Shader Compiler描述了一种用于 HLSL 着色器的新中间语言 (IL) 的格式,称为 DXIL。

文档引用了从以前的 HLSL IL(称为 DXBC)到新 DXIL 的转换器:https://github.com/Microsoft/DirectXShaderCompiler/blob/master/docs/DXIL.rst .

但是,我无法找到引用的 dxbc2dxil 工具,或任何其他将 DXBC 转换为 DXIL 的方法。我曾尝试将 DXBC 文件传递​​给 DirectX Shader Compiler 项目中的各种工具,但没有一个接受纯 DXBC 作为输入。

目前有没有办法从旧的 DXBC 获取 DXIL?

最佳答案

我对这份文档的理解是, future 微软将负责只向供应商的驱动程序提供DXIR。 DXBC2DXIL 是 Microsoft 内部专用模块。

据我所知,DirectX Shader Compiler 存储库中的任何内容都无法将 DXBC IL 转换为 DXIL。

关于directx - 将 DXBC 转换为 DXIL(DirectX 字节码到 DirectX 中间语言),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45577090/

44 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com