mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 07:01:29 +11:00
Git modules, README, travis, etc
This commit is contained in:
parent
70cf6476c3
commit
9098c95950
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
|||
/target/
|
||||
native/vulkan
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
|
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
10
.travis.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
sudo: false
|
||||
|
||||
rust:
|
||||
- stable
|
||||
- nightly
|
||||
os:
|
||||
- linux
|
||||
|
||||
script:
|
||||
- make
|
13
Cargo.toml
13
Cargo.toml
|
@ -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"]
|
||||
|
|
16
Makefile
16
Makefile
|
@ -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
4
README.md
Normal 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
1
modules/vulkan-docs
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 02185a829989e43ea13839ec07532c09915c5de0
|
|
@ -1,4 +1,4 @@
|
|||
#include "vulkan/vulkan.h"
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue