Git modules, README, travis, etc

This commit is contained in:
Dzmitry Malyshau 2017-09-06 22:01:58 -04:00
parent 70cf6476c3
commit 9098c95950
8 changed files with 37 additions and 13 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
/target/
native/vulkan
**/*.rs.bk
Cargo.lock

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "modules/vulkan-docs"]
path = modules/vulkan-docs
url = https://github.com/KhronosGroup/Vulkan-Docs

10
.travis.yml Normal file
View file

@ -0,0 +1,10 @@
sudo: false
rust:
- stable
- nightly
os:
- linux
script:
- make

View file

@ -7,6 +7,13 @@ authors = ["Dzmitry Malyshau <kvark@mozilla.com>"]
name = "portability"
crate-type = ["staticlib"]
[dependencies]
gfx_core = { path = "../gfx/src/core" }
gfx_backend_vulkan = { path = "../gfx/src/backend/vulkan", features = ["portable"] }
[dependencies.gfx_core]
#path = "../gfx/src/core"
git = "https://github.com/kvark/gfx-rs"
branch = "portability"
[dependencies.gfx_backend_vulkan]
#path = "../gfx/src/backend/vulkan"
git = "https://github.com/kvark/gfx-rs"
branch = "portability"
features = ["portable"]

View file

@ -1,19 +1,19 @@
CC=gcc
CFLAGS=
DEPS=
LDFLAGS=-lpthread -ldl -lm
HEADER=native/vulkan/vulkan.h
VULKAN_DIR=modules/vulkan-docs/src
BINDING=target/vulkan.rs
NATIVE_DIR=target/native
TARGET=$(NATIVE_DIR)/test
OBJECTS=$(NATIVE_DIR)/test.o
LIBRARY=target/debug/libportability.a
CC=gcc
CFLAGS=-I$(VULKAN_DIR)
DEPS=
LDFLAGS=-lpthread -ldl -lm
all: $(TARGET)
$(BINDING): $(HEADER)
bindgen --no-layout-tests --rustfmt-bindings $(HEADER) -o $(BINDING)
$(BINDING): $(VULKAN_DIR)/vulkan/*.h
bindgen --no-layout-tests --rustfmt-bindings $(VULKAN_DIR)/vulkan/vulkan.h -o $(BINDING)
$(LIBRARY): $(BINDING) src/*.rs
cargo build

4
README.md Normal file
View file

@ -0,0 +1,4 @@
## gfx-portability
[![Build Status](https://travis-ci.org/kvark/portability.svg?branch=master)](https://travis-ci.org/kvark/portability)
This is a prototype static library implementing [Vulkan Portability Initiative](https://www.khronos.org/blog/khronos-announces-the-vulkan-portability-initiative) using gfx-rs [low-level core](http://gfx-rs.github.io/2017/07/24/low-level.html). See [gfx-rs meta issue](https://github.com/gfx-rs/gfx/issues/1354) for backend limitations and further details.

1
modules/vulkan-docs Submodule

@ -0,0 +1 @@
Subproject commit 02185a829989e43ea13839ec07532c09915c5de0

View file

@ -1,4 +1,4 @@
#include "vulkan/vulkan.h"
#include <vulkan/vulkan.h>
#include <assert.h>
#include <stdio.h>