vulkan: util: add macros to extract extension/offset number from enums
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 14 Mar 2017 17:17:12 +0000 (17:17 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 6 Oct 2017 10:45:41 +0000 (11:45 +0100)
commitc90e50f3a07867f3ce3a425c8b0b6d57a1c5ade5
tree16edb417593ac088a14fbbca8ec43ed8026bee41
parentc8ea55ddda270687e048f88f440b1a543e4520e2
vulkan: util: add macros to extract extension/offset number from enums

v2: Simplify offset enum computation (Jason)

v3: capitalize macros (Chad)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/util/vk_util.h