diff options
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index e6a010a4a..749c5ae32 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -38,6 +38,11 @@ namespace Slang // No conversion at all kConversionCost_None = 0, + // Conversion from a buffer to the type it carries needs to add a minimal + // extra cost, just so we can distinguish an overload on `ConstantBuffer<Foo>` + // from one on `Foo` + kConversionCost_ImplicitDereference = 10, + // Conversions based on explicit sub-typing relationships are the cheapest // // TODO(tfoley): We will eventually need a discipline for ranking |
