Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Davis <bdavis@saintandreas.org>2018-06-21 19:24:22 +0300
committerBrad Davis <bdavis@saintandreas.org>2018-06-21 19:24:22 +0300
commit9ad432463c8d05713f3f93da99de30cd63f22df4 (patch)
treefc7182eaf1ed29f72f57b785dafc07f36e0bd96f /spirv_reflect.cpp
parent0ad0f948e111bce16166e83e707e8e09543c3174 (diff)
Prefix integer types with underscore
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r--spirv_reflect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/spirv_reflect.cpp b/spirv_reflect.cpp
index 8239acd6..29ca36d0 100644
--- a/spirv_reflect.cpp
+++ b/spirv_reflect.cpp
@@ -295,7 +295,7 @@ void CompilerReflection::emit_type(const SPIRType &type, bool &emitted_open_tag)
json_stream->emit_json_key_object("types");
emitted_open_tag = true;
}
- json_stream->emit_json_key_object(std::to_string(type.self));
+ json_stream->emit_json_key_object("_" + std::to_string(type.self));
json_stream->emit_json_key_value("name", name);
json_stream->emit_json_key_array("members");
// FIXME ideally we'd like to emit the size of a structure as a
@@ -328,7 +328,7 @@ void CompilerReflection::emit_type_member(const SPIRType &type, uint32_t index)
json_stream->emit_json_key_value("name", name);
if (membertype.basetype == SPIRType::Struct)
{
- json_stream->emit_json_key_value("type", std::to_string(membertype.self));
+ json_stream->emit_json_key_value("type", "_" + std::to_string(membertype.self));
}
else
{
@@ -454,7 +454,7 @@ void CompilerReflection::emit_resources(const char *tag, const vector<Resource>
if (type.basetype == SPIRType::Struct)
{
- json_stream->emit_json_key_value("type", std::to_string(res.base_type_id));
+ json_stream->emit_json_key_value("type", "_" + std::to_string(res.base_type_id));
}
else
{