summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-lower-binding-query.h
blob: 3d96a2d97d2b60c9eaeb5048236e42d0cadb3d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// slang-ir-lower-binding-query.h
#pragma once

#include "slang-ir.h"

namespace Slang
{
struct IRModule;
class DiagnosticSink;

/// Lower the `getRegisterIndex` and `getRegisterSpace` intrinsics.
///
/// These operations semantically return binding information on their
/// argument, which must be a value of an opaque type (resource,
/// sampler, etc.). These operations can only ever work on values that
/// derive (in one way or another) from a global shader parameter.
///
void lowerBindingQueries(IRModule* module, DiagnosticSink* sink);

} // namespace Slang