diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-05-18 11:37:38 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-05-18 11:37:38 +0300 |
commit | e04bbd09489ed28ed6386bae9bbc9c902d4c2296 (patch) | |
tree | 294e9c8144867178648b0a1636c145ad15c91267 /spirv_cross_c.h | |
parent | 3953bf9c206251de0ddcef95c3741393278b7893 (diff) | |
parent | 72a8c9f35a843bc20a21d66dc1a2027444f38764 (diff) |
Merge git://github.com/stuartcarnie/SPIRV-Cross
Diffstat (limited to 'spirv_cross_c.h')
-rw-r--r-- | spirv_cross_c.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spirv_cross_c.h b/spirv_cross_c.h index b03e60e0..fb460ce3 100644 --- a/spirv_cross_c.h +++ b/spirv_cross_c.h @@ -112,6 +112,14 @@ typedef struct spvc_specialization_constant } spvc_specialization_constant; /* See C++ API. */ +typedef struct spvc_buffer_range +{ + unsigned index; + size_t offset; + size_t range; +} spvc_buffer_range; + +/* See C++ API. */ typedef struct spvc_hlsl_root_constants { unsigned start; @@ -578,6 +586,7 @@ SPVC_PUBLIC_API unsigned spvc_compiler_get_member_decoration(spvc_compiler compi unsigned member_index, SpvDecoration decoration); SPVC_PUBLIC_API const char *spvc_compiler_get_member_decoration_string(spvc_compiler compiler, spvc_type_id id, unsigned member_index, SpvDecoration decoration); +SPVC_PUBLIC_API const char *spvc_compiler_get_member_name(spvc_compiler compiler, spvc_type_id id, unsigned member_index); /* * Entry points. @@ -671,6 +680,15 @@ SPVC_PUBLIC_API spvc_constant_id spvc_compiler_get_work_group_size_specializatio spvc_specialization_constant *z); /* + * Buffer ranges + * Maps to C++ API. + */ +SPVC_PUBLIC_API spvc_result spvc_compiler_get_active_buffer_ranges(spvc_compiler compiler, + spvc_variable_id id, + const spvc_buffer_range **ranges, + size_t *num_ranges); + +/* * No stdint.h until C99, sigh :( * For smaller types, the result is sign or zero-extended as appropriate. * Maps to C++ API. |