mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-26 08:51:31 +11:00
Merge #181
181: vkQuake3 screenshot r=kvark a=kvark
This is mostly trivial, allows us to launch vkQuake3 🎉
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
commit
254f6f5dbe
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -310,7 +310,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx11"
|
name = "gfx-backend-dx11"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#23408ba607ac36722e0cf21e9d8d928b25509ecd"
|
source = "git+https://github.com/gfx-rs/gfx#5b84957d47592969507fb9e9b69810af13098819"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"derivative 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"derivative 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -328,7 +328,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx12"
|
name = "gfx-backend-dx12"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#23408ba607ac36722e0cf21e9d8d928b25509ecd"
|
source = "git+https://github.com/gfx-rs/gfx#5b84957d47592969507fb9e9b69810af13098819"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"d3d12 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"d3d12 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -345,7 +345,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-metal"
|
name = "gfx-backend-metal"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#23408ba607ac36722e0cf21e9d8d928b25509ecd"
|
source = "git+https://github.com/gfx-rs/gfx#5b84957d47592969507fb9e9b69810af13098819"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
"arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -369,7 +369,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-vulkan"
|
name = "gfx-backend-vulkan"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#23408ba607ac36722e0cf21e9d8d928b25509ecd"
|
source = "git+https://github.com/gfx-rs/gfx#5b84957d47592969507fb9e9b69810af13098819"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ash 0.28.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"ash 0.28.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -386,7 +386,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-hal"
|
name = "gfx-hal"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#23408ba607ac36722e0cf21e9d8d928b25509ecd"
|
source = "git+https://github.com/gfx-rs/gfx#5b84957d47592969507fb9e9b69810af13098819"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -865,7 +865,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "range-alloc"
|
name = "range-alloc"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#23408ba607ac36722e0cf21e9d8d928b25509ecd"
|
source = "git+https://github.com/gfx-rs/gfx#5b84957d47592969507fb9e9b69810af13098819"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rdrand"
|
name = "rdrand"
|
||||||
|
|
18
README.md
18
README.md
|
@ -9,18 +9,20 @@ This is a prototype library implementing [Vulkan Portability Initiative](https:/
|
||||||
### [Dota2](https://github.com/ValveSoftware/Dota-2):
|
### [Dota2](https://github.com/ValveSoftware/Dota-2):
|
||||||
![Dota2](etc/dota2-river.jpg)
|
![Dota2](etc/dota2-river.jpg)
|
||||||
|
|
||||||
### [VkQuake](https://github.com/Novum/vkQuake)
|
### Quake
|
||||||
![VkQuake](etc/quake-main.jpg)
|
- [vkQuake](https://github.com/Novum/vkQuake)
|
||||||
|
- [vkQuake2](https://github.com/kondrak/vkQuake2)
|
||||||
|
- [vkQuake3](https://github.com/suijingfeng/vkQuake3)
|
||||||
|
|
||||||
|
![VkQuake](etc/quake-main.jpg) ![VkQuake3](etc/quake3-main.jpg)
|
||||||
|
|
||||||
### [RPCS3](https://github.com/RPCS3/rpcs3):
|
### [RPCS3](https://github.com/RPCS3/rpcs3):
|
||||||
![RPCS3-cube](etc/rpcs3-cube.jpg)
|
|
||||||
![RPCS3-scogger](etc/rpcs3-scogger.jpg)
|
![RPCS3-cube](etc/rpcs3-cube.jpg) ![RPCS3-scogger](etc/rpcs3-scogger.jpg)
|
||||||
|
|
||||||
### [Dolphin](https://github.com/dolphin-emu):
|
### [Dolphin](https://github.com/dolphin-emu):
|
||||||
![Dolphin-sb](etc/dolphin-smash-bros.png)
|
![Dolphin-sb](etc/dolphin-smash-bros.png) ![Dolphin-pm](etc/dolphin-paper-mario.png)
|
||||||
![Dolphin-pm](etc/dolphin-paper-mario.png)
|
![Dolphin-mk](etc/dolphin-mario-kart.jpg) ![Dolphin-md](etc/dolphin-metroid.jpg)
|
||||||
![Dolphin-mk](etc/dolphin-mario-kart.jpg)
|
|
||||||
![Dolphin-md](etc/dolphin-metroid.jpg)
|
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
|
|
||||||
|
|
BIN
etc/quake3-main.jpg
Normal file
BIN
etc/quake3-main.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 636 KiB |
|
@ -1728,9 +1728,6 @@ pub extern "C" fn gfxCreateImageView(
|
||||||
pView: *mut VkImageView,
|
pView: *mut VkImageView,
|
||||||
) -> VkResult {
|
) -> VkResult {
|
||||||
let info = unsafe { &*pCreateInfo };
|
let info = unsafe { &*pCreateInfo };
|
||||||
assert!(info.subresourceRange.levelCount != VK_REMAINING_MIP_LEVELS as _); // TODO
|
|
||||||
assert!(info.subresourceRange.layerCount != VK_REMAINING_ARRAY_LAYERS as _); // TODO
|
|
||||||
|
|
||||||
let view = unsafe {
|
let view = unsafe {
|
||||||
gpu.device.create_image_view(
|
gpu.device.create_image_view(
|
||||||
&info.image.raw,
|
&info.image.raw,
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate portability_gfx;
|
extern crate portability_gfx;
|
||||||
|
|
||||||
use portability_gfx::*;
|
use portability_gfx::*;
|
||||||
|
|
Loading…
Reference in a new issue