summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-specialize-dispatch.h
blob: f176229cfc44a4e24b075d1234fd38c09e92c0e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// slang-ir-specialize-dispatch.h
#pragma once

namespace Slang
{
struct SharedGenericsLoweringContext;

/// Modifies the body of interface dispatch functions to use branching instead
/// of function pointer calls to implement the dynamic dispatch logic.
/// This is only used on GPU targets where function pointers are not supported
/// or are not efficient.
void specializeDispatchFunctions(SharedGenericsLoweringContext* sharedContext);
} // namespace Slang