aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2016-04-29 16:03:10 -0600
committerJon Ashburn <jon@lunarg.com>2016-04-29 16:28:33 -0600
commit7eb311e826fc2f2dab028c249e4b45a4300b41e8 (patch)
treebad2f75fa95d561d8902e0021235bdfd610ccc5e
parent0737226d2170be53c4e14aa3968d4386c7201c32 (diff)
downloadusermoji-7eb311e826fc2f2dab028c249e4b45a4300b41e8.tar.xz
demos: Change tri to not require shaderClipDistance
Change-Id: Iaa1afa361d29022388005c173054f714c64fb7d7
-rw-r--r--demos/tri.c8
-rw-r--r--demos/tri.vert3
2 files changed, 3 insertions, 8 deletions
diff --git a/demos/tri.c b/demos/tri.c
index 847655fa..1c80a22b 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -2164,14 +2164,6 @@ static void demo_init_vk(struct demo *demo) {
VkPhysicalDeviceFeatures features;
vkGetPhysicalDeviceFeatures(demo->gpu, &features);
- //TODO: Enable this
-#ifndef __ANDROID__
- if (!features.shaderClipDistance) {
- ERR_EXIT("Required device feature `shaderClipDistance` not supported\n",
- "GetPhysicalDeviceFeatures failure");
- }
-#endif
-
// Graphics queue and MemMgr queue can be separate.
// TODO: Add support for separate queues, including synchronization,
// and appropriate tracking for QueueSubmit
diff --git a/demos/tri.vert b/demos/tri.vert
index 92d6436e..d4788d81 100644
--- a/demos/tri.vert
+++ b/demos/tri.vert
@@ -24,6 +24,9 @@
layout (location = 0) in vec4 pos;
layout (location = 1) in vec2 attr;
layout (location = 0) out vec2 texcoord;
+out gl_PerVertex {
+ vec4 gl_Position;
+};
void main() {
texcoord = attr;
gl_Position = pos;