o3de / o3de-azslc

Amazon Shader Language (AZSL) Compiler
Other
23 stars 14 forks source link

fix VS 2022 compile error #67

Closed kh-huawei closed 1 year ago

kh-huawei commented 2 years ago

Visual Studio 2022 gives this compile error: error C2664: 'AZ::ShaderCompiler::QualifiedName AZ::ShaderCompiler::GetTypeName(const AZ::ShaderCompiler::IdAndKind *,AZ::ShaderCompiler::ForFunctionGetType)': cannot convert argument 1 from 'int *' to 'const AZ::ShaderCompiler::IdAndKind *'

siliconvoodoo commented 2 years ago

Interesting. Must be related to improvements in the double phase lookup? Or maybe misguided msvc changes, because this builds on gcc (and clang if I'm not mistaken). Curious.