aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-01-16 09:37:43 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-04 17:58:09 -0700
commitb2a66658c7416df2a580fb2562fcec20809ddf34 (patch)
tree485c4f0731419cdaea377ed48620dec7afc5b695 /include
parent885ebd5ce46c6baa9acbe5b1cd38daf0913ea720 (diff)
downloadusermoji-b2a66658c7416df2a580fb2562fcec20809ddf34.tar.xz
memory alloc: Add MEMORY_ALLOCATION_COUNT support and usage in tests.
Driver always does one allocation but tests support drivers with N allocations. Conflicts: demos/cube.c demos/tri.c tests/image_tests.cpp tests/render_tests.cpp
Diffstat (limited to 'include')
-rw-r--r--include/xgl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/xgl.h b/include/xgl.h
index f9e794be..80f0a64e 100644
--- a/include/xgl.h
+++ b/include/xgl.h
@@ -711,8 +711,10 @@ typedef enum _XGL_SUBRESOURCE_INFO_TYPE
typedef enum _XGL_OBJECT_INFO_TYPE
{
// Info type for xglGetObjectInfo()
- XGL_INFO_TYPE_MEMORY_REQUIREMENTS = 0x00000000,
-
+ XGL_INFO_TYPE_MEMORY_ALLOCATION_COUNT = 0x00000000,
+ XGL_INFO_TYPE_MEMORY_REQUIREMENTS = 0x00000001,
+ XGL_INFO_TYPE_BUFFER_MEMORY_REQUIREMENTS = 0x00000002,
+ XGL_INFO_TYPE_IMAGE_MEMORY_REQUIREMENTS = 0x00000003,
XGL_MAX_ENUM(_XGL_OBJECT_INFO_TYPE)
} XGL_OBJECT_INFO_TYPE;