aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-03-04 11:26:38 -0700
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:33:25 +0800
commit770c0932bfcfb4632c90f10073cdaf8866ae57ca (patch)
treea5d2edbd327a89e4f1b877c35ecd1fdbcd1810c1
parentdcb04bfd87bbbd6555685003e98898f0ac6646db (diff)
downloadusermoji-770c0932bfcfb4632c90f10073cdaf8866ae57ca.tar.xz
xgl: specialization constant proposal
Alpha header version: r29632
-rw-r--r--include/xgl.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/xgl.h b/include/xgl.h
index 94cac948..2e8560f4 100644
--- a/include/xgl.h
+++ b/include/xgl.h
@@ -33,7 +33,7 @@
#include "xglPlatform.h"
// XGL API version supported by this file
-#define XGL_API_VERSION XGL_MAKE_VERSION(0, 54, 0)
+#define XGL_API_VERSION XGL_MAKE_VERSION(0, 55, 0)
#ifdef __cplusplus
extern "C"
@@ -1837,12 +1837,26 @@ typedef struct _XGL_LINK_CONST_BUFFER
const void* pBufferData;
} XGL_LINK_CONST_BUFFER;
+typedef struct _XGL_SPECIALIZATION_MAP_ENTRY
+{
+ uint32_t constantId; // The SpecConstant ID specified in the BIL
+ uint32_t offset; // Offset of the value in the data block
+} XGL_SPECIALIZATION_MAP_ENTRY;
+
+typedef struct _XGL_SPECIALIZATION_INFO
+{
+ uint32_t mapEntryCount;
+ const XGL_SPECIALIZATION_MAP_ENTRY* pMap; // mapEntryCount entries
+ const void* pData;
+} XGL_SPECIALIZATION_INFO;
+
typedef struct _XGL_PIPELINE_SHADER
{
XGL_PIPELINE_SHADER_STAGE stage;
XGL_SHADER shader;
uint32_t linkConstBufferCount;
const XGL_LINK_CONST_BUFFER* pLinkConstBufferInfo;
+ const XGL_SPECIALIZATION_INFO* pSpecializationInfo;
} XGL_PIPELINE_SHADER;
typedef struct _XGL_COMPUTE_PIPELINE_CREATE_INFO