Merge pull request #174 from STL1te/fix/bda-lookup-dontinline

fix(shader): BDA lookup functions are not inlined
This commit is contained in:
boykopovar
2026-09-30 21:12:05 +03:00
committed by GitHub
@@ -31,7 +31,7 @@ std::uint32_t DefineBdaLookup(SpirvEmitterState& state, const char* name, bool r
};
const auto function = state.module.AllocateId();
state.module.AddName(function, name);
state.module.AddFunction(spv::OpFunction, u64, function, spv::FunctionControlMaskNone, state.module.Type(spv::OpTypeFunction, u64, u64, u32, u32));
state.module.AddFunction(spv::OpFunction, u64, function, spv::FunctionControlDontInlineMask, state.module.Type(spv::OpTypeFunction, u64, u64, u32, u32));
const auto address = state.module.AllocateId();
const auto bytes = state.module.AllocateId();
const auto instruction = state.module.AllocateId();