diff options
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 15 | ||||
| -rw-r--r-- | source/slang/slang-emit-c-like.h | 4 |
2 files changed, 0 insertions, 19 deletions
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<IRType>(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); |
