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:
authorPanagiotis Christopoulos Charitos <godlike@ancient-ritual.com>2020-04-18 23:00:36 +0300
committerPanagiotis Christopoulos Charitos <godlike@ancient-ritual.com>2020-04-18 23:00:36 +0300
commitb3109b8ad004d7439329fc6dcbecd6394b96a0db (patch)
tree110515c9a0ab8d7df99de04cef840bcaa12d3f2e /spirv_reflect.cpp
parent90198199df99fc0a04994a5650b4eb45ae56abba (diff)
Reflection: Add specialization constant name
Fixes #1311
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r--spirv_reflect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/spirv_reflect.cpp b/spirv_reflect.cpp
index f40c08a7..97d640c5 100644
--- a/spirv_reflect.cpp
+++ b/spirv_reflect.cpp
@@ -601,6 +601,7 @@ void CompilerReflection::emit_specialization_constants()
auto &c = get<SPIRConstant>(spec_const.id);
auto type = get<SPIRType>(c.constant_type);
json_stream->begin_json_object();
+ json_stream->emit_json_key_value("name", get_name(spec_const.id));
json_stream->emit_json_key_value("id", spec_const.constant_id);
json_stream->emit_json_key_value("type", type_to_glsl(type));
json_stream->emit_json_key_value("variable_id", spec_const.id);