From 73a8cb5c22be2077358fe17085398af956b62595 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 8 Oct 2019 08:38:24 -0400 Subject: Feature/remove entry point layout flags (#1069) * Split out EntryPointParamDecoration. * Add profile to EntryPointDecoration. * WIP for GS handling for GLSL. * WIP for StreamOut GLSL * Fixed GLSL geometry output. * Clean up - remove unneeded/commented out code from the entry point change. * Use Op nums to identify GeometryTypeDecorations (as opposed to contained enum). * Remove setSampleRateFlag & doSampleRateInputCheck --- source/slang/slang-emit-c-like.cpp | 15 --------------- source/slang/slang-emit-c-like.h | 4 ---- 2 files changed, 19 deletions(-) (limited to 'source') diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 281da3ef9..101987387 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -389,21 +389,6 @@ void CLikeSourceEmitter::emitStringLiteral(String const& value) m_writer->emit("\""); } -void CLikeSourceEmitter::setSampleRateFlag() -{ - m_entryPointLayout->flags |= EntryPointLayout::Flag::usesAnySampleRateInput; -} - -void CLikeSourceEmitter::doSampleRateInputCheck(Name* name) -{ - // TODO(JS): This doesn't appear to be called from anywhere!! - auto text = getText(name); - if (text == "gl_SampleID") - { - setSampleRateFlag(); - } -} - void CLikeSourceEmitter::emitVal(IRInst* val, EmitOpInfo const& outerPrec) { if(auto type = as(val)) diff --git a/source/slang/slang-emit-c-like.h b/source/slang/slang-emit-c-like.h index 9c62855aa..c55335de7 100644 --- a/source/slang/slang-emit-c-like.h +++ b/source/slang/slang-emit-c-like.h @@ -152,10 +152,6 @@ public: void emitStringLiteral(const String& value); - void setSampleRateFlag(); - - void doSampleRateInputCheck(Name* name); - void emitVal(IRInst* val, const EmitOpInfo& outerPrec); UInt getBindingOffset(EmitVarChain* chain, LayoutResourceKind kind); -- cgit v1.2.3