gongminmin / KlayGE

KlayGE is a cross-platform open source game engine with plugin-based architecture.
http://www.klayge.org
GNU General Public License v2.0
2.1k stars 349 forks source link

DXBC2GLSLCmd bug: false in const struct DXBCInputBindDesc &__cdecl GLSLGen::GetResourceDesc #221

Closed zwcloud closed 3 years ago

zwcloud commented 3 years ago

error message:

Error(s) in conversion: false in const struct DXBCInputBindDesc &__cdecl GLSLGen::GetResourceDesc(enum ShaderInputType,unsigned int) const, line 7625 of Z:\5_tools\KlayGE\DXBC2GLSL\Src\GLSLGen.cpp Please send this information and your bytecode file to webmaster at klayge.org. We'll fix this ASAP.

The dxbc file is saved from a renderdoc capture file: image

dxbc.zip

gongminmin commented 3 years ago

The resource chunk has been stripped out from the DXBC. It's not revertible. DXBC2GLSL is designed to work with the original DXBC from compiler, with reflection information in it.