summaryrefslogtreecommitdiffstats
path: root/source/slang/ir.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-11-21 13:41:34 -0500
committerGitHub <noreply@github.com>2018-11-21 13:41:34 -0500
commite21d5ad650130631e17662ce8f22d15315ab597a (patch)
treea1f5053efebc6184d21b0151e38ba1a52e74b07c /source/slang/ir.cpp
parent9bb11b69a08c66e2857f439837e2253658aed9a4 (diff)
Feature/early depth stencil (#727)
* First pass support for early depth stencil. * Add a simple test to check if output has attributes. * Use cross compilation to test [earlydepthstencil] on glsl. * If target is dxil, use dxc to test against. Add hlsl to test earlydepthstencil against. * * Added spSessionHasCompileTargetSupport * Made slang-test use spSessionHasCompileTargetSupport to ignore tests that cannot run
Diffstat (limited to 'source/slang/ir.cpp')
-rw-r--r--source/slang/ir.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/slang/ir.cpp b/source/slang/ir.cpp
index 356648212..664927e8a 100644
--- a/source/slang/ir.cpp
+++ b/source/slang/ir.cpp
@@ -2949,6 +2949,11 @@ namespace Slang
dump(context, "\n[__readNone]");
}
break;
+ case kIRDecorationOp_EarlyDepthStencil:
+ {
+ dump(context, "\n[earlydepthstencil]");
+ }
+ break;
}
}
}
@@ -5387,7 +5392,11 @@ namespace Slang
context->builder->addDecoration<IRVulkanCallablePayloadDecoration>(clonedValue);
}
break;
-
+ case kIRDecorationOp_EarlyDepthStencil:
+ {
+ context->builder->addDecoration<IREarlyDepthStencilDecoration>(clonedValue);
+ }
+ break;
case kIRDecorationOp_VulkanHitAttributes:
{
context->builder->addDecoration<IRVulkanHitAttributesDecoration>(clonedValue);