summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-29 08:36:10 -0400
committerGitHub <noreply@github.com>2020-05-29 08:36:10 -0400
commitf3d70425fa339a0d8f39b920235c98280d250bbb (patch)
tree24923917e3ca43fdc1b3ca67ee589973c92a4b60 /source/slang/slang-emit-hlsl.cpp
parent95597d77b131ee2c41c2eb4481844c315b2c82eb (diff)
Feature/ast syntax standard (#1360)
* Small improvements to documentation and code around DiagnosticSink * Made methods/functions in slang-syntax.h be lowerCamel Removed some commented out source (was placed elsewhere in code) * Making AST related methods and function lowerCamel. Made IsLeftValue -> isLeftValue.
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 338e99e68..5ebd7e9fc 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -27,7 +27,7 @@ void HLSLSourceEmitter::_emitHLSLDecorationSingleInt(const char* name, IRFunc* e
SLANG_UNUSED(entryPoint);
SLANG_ASSERT(val);
- auto intVal = GetIntVal(val);
+ auto intVal = getIntVal(val);
m_writer->emit("[");
m_writer->emit(name);
@@ -326,7 +326,7 @@ void HLSLSourceEmitter::emitEntryPointAttributesImpl(IRFunc* irFunc, IREntryPoin
{
if (auto decor = irFunc->findDecoration<IRMaxVertexCountDecoration>())
{
- auto count = GetIntVal(decor->getCount());
+ auto count = getIntVal(decor->getCount());
m_writer->emit("[maxvertexcount(");
m_writer->emit(Int(count));
m_writer->emit(")]\n");
@@ -334,7 +334,7 @@ void HLSLSourceEmitter::emitEntryPointAttributesImpl(IRFunc* irFunc, IREntryPoin
if (auto decor = irFunc->findDecoration<IRInstanceDecoration>())
{
- auto count = GetIntVal(decor->getCount());
+ auto count = getIntVal(decor->getCount());
m_writer->emit("[instance(");
m_writer->emit(Int(count));
m_writer->emit(")]\n");
@@ -743,7 +743,7 @@ void HLSLSourceEmitter::emitSimpleTypeImpl(IRType* type)
case kIROp_VectorType:
{
auto vecType = (IRVectorType*)type;
- emitVectorTypeNameImpl(vecType->getElementType(), GetIntVal(vecType->getElementCount()));
+ emitVectorTypeNameImpl(vecType->getElementType(), getIntVal(vecType->getElementCount()));
return;
}
case kIROp_MatrixType: