summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2022-05-05 15:53:29 -0400
committerGitHub <noreply@github.com>2022-05-05 15:53:29 -0400
commitb915ae662b2e4bcaaeb6da62eb964356d0a978b4 (patch)
tree94aa29d7c112bde36557371bed906411f22a7adc /source/slang/slang-ir.cpp
parent3088d901fee6447b6d80fa67f258626ece4408dc (diff)
Support for HLSL `export` (#2223)
* #include an absolute path didn't work - because paths were taken to always be relative. * Add support for HLSL `export`. * Test for using `export` keyword.
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp38
1 files changed, 21 insertions, 17 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 782f259ee..b3c19d419 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -30,23 +30,27 @@ namespace Slang
{
switch (op)
{
- case kIROp_EarlyDepthStencilDecoration: return true;
- case kIROp_GloballyCoherentDecoration: return true;
- case kIROp_KeepAliveDecoration: return true;
- case kIROp_LineAdjInputPrimitiveTypeDecoration: return true;
- case kIROp_LineInputPrimitiveTypeDecoration: return true;
- case kIROp_NoInlineDecoration: return true;
- case kIROp_PointInputPrimitiveTypeDecoration: return true;
- case kIROp_PreciseDecoration: return true;
- case kIROp_PublicDecoration: return true;
- case kIROp_ReadNoneDecoration: return true;
- case kIROp_RequiresNVAPIDecoration: return true;
- case kIROp_TriangleAdjInputPrimitiveTypeDecoration: return true;
- case kIROp_TriangleInputPrimitiveTypeDecoration: return true;
- case kIROp_UnsafeForceInlineEarlyDecoration: return true;
- case kIROp_VulkanCallablePayloadDecoration: return true;
- case kIROp_VulkanHitAttributesDecoration: return true;
- case kIROp_VulkanRayPayloadDecoration: return true;
+ case kIROp_EarlyDepthStencilDecoration:
+ case kIROp_GloballyCoherentDecoration:
+ case kIROp_KeepAliveDecoration:
+ case kIROp_LineAdjInputPrimitiveTypeDecoration:
+ case kIROp_LineInputPrimitiveTypeDecoration:
+ case kIROp_NoInlineDecoration:
+ case kIROp_PointInputPrimitiveTypeDecoration:
+ case kIROp_PreciseDecoration:
+ case kIROp_PublicDecoration:
+ case kIROp_HLSLExportDecoration:
+ case kIROp_ReadNoneDecoration:
+ case kIROp_RequiresNVAPIDecoration:
+ case kIROp_TriangleAdjInputPrimitiveTypeDecoration:
+ case kIROp_TriangleInputPrimitiveTypeDecoration:
+ case kIROp_UnsafeForceInlineEarlyDecoration:
+ case kIROp_VulkanCallablePayloadDecoration:
+ case kIROp_VulkanHitAttributesDecoration:
+ case kIROp_VulkanRayPayloadDecoration:
+ {
+ return true;
+ }
default: break;
}
return false;