Skip to content

Commit

Permalink
initial vulkan demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sv committed Apr 7, 2020
1 parent 4044ef6 commit 9781487
Show file tree
Hide file tree
Showing 14 changed files with 14,472 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glass-renderer/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC=gcc
PACKAGES=librsvg-2.0 pangocairo cairo xi x11 gl glu glew xrender xcomposite xtst xdamage xext xfixes xrandr
CFLAGS=-rdynamic -g -ggdb $(shell pkg-config --cflags $(PACKAGES)) -O0 -Wall $(EXTRA_CFLAGS)
CFLAGS=-fdump-rtl-expand -rdynamic -g -ggdb $(shell pkg-config --cflags $(PACKAGES)) -O0 -Wall $(EXTRA_CFLAGS)
LIBS:=-ldl $(shell pkg-config --libs $(PACKAGES))

ifeq ($(GLASS_DMALLOC),)
Expand Down
3 changes: 2 additions & 1 deletion glass-renderer/wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ void draw() {
glClearColor(0., 0., 0., 1.0);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
if (views) {
for (size_t idx = 0; idx < views->count; idx++) {
// for (size_t idx = 0; idx < views->count; idx++) {
for (size_t idx = 0; idx < 1; idx++) {
View *v = (View *) views->entries[idx];
for (size_t layer_idx = 0; layer_idx < v->nr_layers; layer_idx++) {
current_layer = v->layers[layer_idx];
Expand Down
Binary file added glass-vulkan/cube
Binary file not shown.
Loading

1 comment on commit 9781487

@IanTrudel
Copy link
Collaborator

@IanTrudel IanTrudel commented on 9781487 Apr 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See issue #75.

Please sign in to comment.