+ int binding = 0;
+ ResourceType type = NO_RESOURCE;
+ mutable bool changed = false;
+ mutable bool used = false;
+ union
+ {
+ const UniformBlock *block;
+ const Texture *texture;
+ };
+ union
+ {
+ const Buffer *buffer;
+ const Sampler *sampler;
+ };
+ int mip_level = -1;