summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-11-22 13:58:16 -0800
committerGitHub <noreply@github.com>2017-11-22 13:58:16 -0800
commit581b30dd5a4263c90539a8c5cc6063b2485885cd (patch)
tree7e96f26c6b6e6bf6a8b15ba1820e844e78a31394 /source
parentcd2d64657e3e07fba0a2021d5e47b7a55bd293e6 (diff)
parent56e49feea3956d66e41b819c26628c65b3c28197 (diff)
Merge branch 'master' into generic-param-fix
Diffstat (limited to 'source')
-rw-r--r--source/slang/emit.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 4cad7b28d..22dcf4333 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -2708,18 +2708,12 @@ struct EmitVisitor
for(auto attr : decl->GetModifiersOfType<HLSLUncheckedAttribute>())
{
- if(getText(attr->getName()) == "loop")
- {
- Emit("[loop]");
- }
- else if(getText(attr->getName()) == "unroll")
- {
- Emit("[unroll]");
- }
- else if(getText(attr->getName()) == "allow_uav_condition")
- {
- Emit("[allow_uav_condition]");
- }
+ // Emit whatever attributes the user might have attached,
+ // whether or not we think they make semantic sense.
+ //
+ Emit("[");
+ emit(attr->getName());
+ Emit("]");
}
}