From e21d5ad650130631e17662ce8f22d15315ab597a Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 21 Nov 2018 13:41:34 -0500 Subject: 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 --- source/slang/ir.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source/slang/ir.cpp') 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(clonedValue); } break; - + case kIRDecorationOp_EarlyDepthStencil: + { + context->builder->addDecoration(clonedValue); + } + break; case kIRDecorationOp_VulkanHitAttributes: { context->builder->addDecoration(clonedValue); -- cgit v1.2.3