https://github.com/shader-slang/slang
Raw File
Tip revision: 6cbe215e58eeb8edc53d71e8f315e2fb55c0eeee authored by Yong He on 13 December 2023, 00:29:51 UTC
Define `Texture::Sample` for float element types only. (#3403)
Tip revision: 6cbe215
slang-ir-single-return.h
// slang-ir-single-return.h
#pragma once

namespace Slang
{
    struct IRModule;
    struct IRGlobalValueWithCode;

    // Convert the CFG of `func` to have only a single `return` at the end.
    void convertFuncToSingleReturnForm(IRModule* module, IRGlobalValueWithCode* func);

    bool isSingleReturnFunc(IRGlobalValueWithCode* func);

    int getReturnCount(IRGlobalValueWithCode* func);
}
back to top