mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 15:01:31 +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/
|
/target/
|
||||||
native/vulkan
|
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
Cargo.lock
|
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"
|
name = "portability"
|
||||||
crate-type = ["staticlib"]
|
crate-type = ["staticlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies.gfx_core]
|
||||||
gfx_core = { path = "../gfx/src/core" }
|
#path = "../gfx/src/core"
|
||||||
gfx_backend_vulkan = { path = "../gfx/src/backend/vulkan", features = ["portable"] }
|
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
|
VULKAN_DIR=modules/vulkan-docs/src
|
||||||
CFLAGS=
|
|
||||||
DEPS=
|
|
||||||
LDFLAGS=-lpthread -ldl -lm
|
|
||||||
|
|
||||||
HEADER=native/vulkan/vulkan.h
|
|
||||||
BINDING=target/vulkan.rs
|
BINDING=target/vulkan.rs
|
||||||
NATIVE_DIR=target/native
|
NATIVE_DIR=target/native
|
||||||
TARGET=$(NATIVE_DIR)/test
|
TARGET=$(NATIVE_DIR)/test
|
||||||
OBJECTS=$(NATIVE_DIR)/test.o
|
OBJECTS=$(NATIVE_DIR)/test.o
|
||||||
LIBRARY=target/debug/libportability.a
|
LIBRARY=target/debug/libportability.a
|
||||||
|
|
||||||
|
CC=gcc
|
||||||
|
CFLAGS=-I$(VULKAN_DIR)
|
||||||
|
DEPS=
|
||||||
|
LDFLAGS=-lpthread -ldl -lm
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(BINDING): $(HEADER)
|
$(BINDING): $(VULKAN_DIR)/vulkan/*.h
|
||||||
bindgen --no-layout-tests --rustfmt-bindings $(HEADER) -o $(BINDING)
|
bindgen --no-layout-tests --rustfmt-bindings $(VULKAN_DIR)/vulkan/vulkan.h -o $(BINDING)
|
||||||
|
|
||||||
$(LIBRARY): $(BINDING) src/*.rs
|
$(LIBRARY): $(BINDING) src/*.rs
|
||||||
cargo build
|
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 <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue