xgl: Add new resource type for textures
This change modifies xgl.h to include a new descriptor set
slot type for textures, distinct from resources:
XGL_SLOT_SHADER_TEXTURE_RESOURCE
Buffers continue to use:
XGL_SLOT_SHADER_RESOURCE
The ordering of their inclusion in binding tables entries is
important: textures must come before buffers. This is how
the compiler expects them to be laid out.
diff --git a/layers/draw_state.c b/layers/draw_state.c
index 75193b8..1e8b163 100644
--- a/layers/draw_state.c
+++ b/layers/draw_state.c
@@ -760,6 +760,7 @@
char str[1024];
switch (shaderMapping)
{
+ case XGL_SLOT_SHADER_TEXTURE_RESOURCE:
case XGL_SLOT_SHADER_RESOURCE:
if (MAPPING_MEMORY != slotBinding && MAPPING_IMAGE != slotBinding)
error = XGL_TRUE;