OSDN Git Service

glsl/types: Add a bare "sampler" type
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Feb 2016 22:09:12 +0000 (14:09 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 14 Feb 2016 01:22:36 +0000 (17:22 -0800)
commit5ec6a65388871cc11ba9058dac4a76f4181c2334
tree4757fac2ca5bb43e4cae996f51a3848b3d883258
parentac089126b9b647f930ee2657aa16ea8e8f6a5dd7
glsl/types: Add a bare "sampler" type

This is to be used by SPIR-V for representing a sampler that isn't attached
to any particular image.  In SPIR-V, all of the interesting bits such as
dimensionality, sampled type, etc. come from the image, the bare "sampler"
type simply uses a sampled type of VOID and 0 values for the rest.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/builtin_type_macros.h