OSDN Git Service

spirv: Add no-op support for VK_GOOGLE_hlsl_functionality1
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 13 Oct 2018 13:41:36 +0000 (08:41 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 22 Oct 2018 15:49:53 +0000 (10:49 -0500)
commit891886da2f963dc3fb7133e5e8957df1f65e0b42
tree1a8363278a87063e5d84e00bf72fce79a300d28e
parent5f0322d5c36a8c40e3e7ca603a63c45a37c543b6
spirv: Add no-op support for VK_GOOGLE_hlsl_functionality1

This extension adds two new decorations which carry meaning only for
HLSL shaders.  They are expected to be handled by higher level layers
and can be ignored by implementations.  However, it does save the client
a bit of work if the implementation safely ignores them instead of the
client having to strip them out of the SPIR-V in order for it to be
valid.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c