From 939688e963fde7a0485f210ef2674c27692021a4 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Tue, 7 Nov 2017 14:05:22 -0800 Subject: Add reflection API to get type name (#263) This is currently only useful for `struct` types. I implemented a special-case exception so that the auto-generated `struct` types used for `cbuffer` members don't show their internal name. I did *not* implement any logic to avoid returning the name `vector` for a vector type, etc., since they are all `DeclRefType`s and it seemed easiest to just let the user access information they can't really use. --- tests/reflection/std430-layout.glsl.expected | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/reflection/std430-layout.glsl.expected') diff --git a/tests/reflection/std430-layout.glsl.expected b/tests/reflection/std430-layout.glsl.expected index bd04c417f..7c9c514d6 100644 --- a/tests/reflection/std430-layout.glsl.expected +++ b/tests/reflection/std430-layout.glsl.expected @@ -61,6 +61,7 @@ standard output = { "name": "e", "type": { "kind": "struct", + "name": "Foo", "fields": [ { "name": "f", -- cgit v1.2.3