diff options
author | Panagiotis Christopoulos Charitos <godlike@ancient-ritual.com> | 2020-04-18 23:00:36 +0300 |
---|---|---|
committer | Panagiotis Christopoulos Charitos <godlike@ancient-ritual.com> | 2020-04-18 23:00:36 +0300 |
commit | b3109b8ad004d7439329fc6dcbecd6394b96a0db (patch) | |
tree | 110515c9a0ab8d7df99de04cef840bcaa12d3f2e /spirv_reflect.cpp | |
parent | 90198199df99fc0a04994a5650b4eb45ae56abba (diff) |
Reflection: Add specialization constant name
Fixes #1311
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r-- | spirv_reflect.cpp | 1 |
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); |