summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-10-08 08:38:24 -0400
committerGitHub <noreply@github.com>2019-10-08 08:38:24 -0400
commit73a8cb5c22be2077358fe17085398af956b62595 (patch)
tree815c8bd3162ae85b57e797ff6de0b0d3eb88d1a8 /source
parentdc1e735bbc6a35d4a1d5c1ec720a7a95c0555f49 (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-c-like.cpp15
-rw-r--r--source/slang/slang-emit-c-like.h4
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);