mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-25 08:21:31 +11:00
Update gfx with swapchain readback support
This commit is contained in:
parent
7c42b540a8
commit
2fcc5636bf
148
Cargo.lock
generated
148
Cargo.lock
generated
|
@ -2,9 +2,9 @@
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aho-corasick"
|
name = "aho-corasick"
|
||||||
version = "0.7.13"
|
version = "0.7.14"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
|
checksum = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
@ -17,9 +17,9 @@ checksum = "000444226fcff248f2bc4c7625be32c63caccfecc2723a2b9f78a7487a49c407"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arrayvec"
|
name = "arrayvec"
|
||||||
version = "0.5.1"
|
version = "0.5.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8"
|
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ash"
|
name = "ash"
|
||||||
|
@ -41,6 +41,21 @@ dependencies = [
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bit-set"
|
||||||
|
version = "0.5.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de"
|
||||||
|
dependencies = [
|
||||||
|
"bit-vec",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bit-vec"
|
||||||
|
version = "0.6.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5f0dc55f2d8a1a85650ac47858bb001b4c0dd73d79e3c455a842925e68d29cd3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bitflags"
|
name = "bitflags"
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
|
@ -67,9 +82,9 @@ checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cc"
|
name = "cc"
|
||||||
version = "1.0.60"
|
version = "1.0.61"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"
|
checksum = "ed67cbde08356238e75fc4656be4749481eeffb09e19f320a25237d5221c985d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"jobserver",
|
"jobserver",
|
||||||
]
|
]
|
||||||
|
@ -80,6 +95,12 @@ version = "0.1.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cfg-if"
|
||||||
|
version = "1.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cgl"
|
name = "cgl"
|
||||||
version = "0.2.3"
|
version = "0.2.3"
|
||||||
|
@ -149,7 +170,7 @@ version = "0.9.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62"
|
checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core-foundation-sys 0.8.1",
|
"core-foundation-sys 0.8.2",
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -164,9 +185,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "core-foundation-sys"
|
name = "core-foundation-sys"
|
||||||
version = "0.8.1"
|
version = "0.8.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c0af3b5e4601de3837c9332e29e0aae47a0d46ebfa246d12b82f564bac233393"
|
checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "core-graphics"
|
name = "core-graphics"
|
||||||
|
@ -255,7 +276,7 @@ version = "0.1.15"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6"
|
checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc",
|
"libc",
|
||||||
"wasi",
|
"wasi",
|
||||||
]
|
]
|
||||||
|
@ -263,7 +284,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-auxil"
|
name = "gfx-auxil"
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fxhash",
|
"fxhash",
|
||||||
"gfx-hal",
|
"gfx-hal",
|
||||||
|
@ -273,8 +294,9 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx11"
|
name = "gfx-backend-dx11"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"arrayvec",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"gfx-auxil",
|
"gfx-auxil",
|
||||||
"gfx-hal",
|
"gfx-hal",
|
||||||
|
@ -285,6 +307,7 @@ dependencies = [
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"spirv_cross",
|
"spirv_cross",
|
||||||
|
"thunderdome",
|
||||||
"winapi",
|
"winapi",
|
||||||
"wio",
|
"wio",
|
||||||
]
|
]
|
||||||
|
@ -292,13 +315,16 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-dx12"
|
name = "gfx-backend-dx12"
|
||||||
version = "0.6.2"
|
version = "0.6.2"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"arrayvec",
|
||||||
|
"bit-set",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"d3d12",
|
"d3d12",
|
||||||
"gfx-auxil",
|
"gfx-auxil",
|
||||||
"gfx-hal",
|
"gfx-hal",
|
||||||
"log",
|
"log",
|
||||||
|
"parking_lot",
|
||||||
"range-alloc",
|
"range-alloc",
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
|
@ -309,7 +335,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-empty"
|
name = "gfx-backend-empty"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gfx-hal",
|
"gfx-hal",
|
||||||
"log",
|
"log",
|
||||||
|
@ -319,7 +345,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-metal"
|
name = "gfx-backend-metal"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
|
@ -342,8 +368,8 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-backend-vulkan"
|
name = "gfx-backend-vulkan"
|
||||||
version = "0.6.1"
|
version = "0.6.5"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
"ash",
|
"ash",
|
||||||
|
@ -357,14 +383,12 @@ dependencies = [
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"winapi",
|
"winapi",
|
||||||
"x11",
|
|
||||||
"xcb",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gfx-hal"
|
name = "gfx-hal"
|
||||||
version = "0.6.0"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
|
@ -426,9 +450,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hermit-abi"
|
name = "hermit-abi"
|
||||||
version = "0.1.16"
|
version = "0.1.17"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4c30f6d0bc6b00693347368a67d41b58f2fb851215ff1da49e90fe2c5c667151"
|
checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
@ -450,11 +474,11 @@ checksum = "dd01a2a73f2f399df96b22dc88ea687ef4d76226284e7531ae3c7ee1dc5cb534"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "instant"
|
name = "instant"
|
||||||
version = "0.1.7"
|
version = "0.1.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "63312a18f7ea8760cdd0a7c5aac1a619752a246b833545e3e36d1f81f7cd9e66"
|
checksum = "cb1fc4429a33e1f80d41dc9fea4d108a88bec1de8053878898ae448a0b52f613"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -501,17 +525,17 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.77"
|
version = "0.2.80"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235"
|
checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libloading"
|
name = "libloading"
|
||||||
version = "0.6.3"
|
version = "0.6.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2443d8f0478b16759158b2f66d525991a05491138bc05814ef52a250148ef4f9"
|
checksum = "1090080fe06ec2648d0da3881d9453d97e71a45f00eb179af7fdd7e3f686fdb0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 1.0.0",
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -530,7 +554,7 @@ version = "0.4.11"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
|
checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -550,9 +574,9 @@ checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memchr"
|
name = "memchr"
|
||||||
version = "2.3.3"
|
version = "2.3.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
|
checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memmap"
|
name = "memmap"
|
||||||
|
@ -623,7 +647,7 @@ version = "0.8.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b"
|
checksum = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"cloudabi",
|
"cloudabi",
|
||||||
"instant",
|
"instant",
|
||||||
"libc",
|
"libc",
|
||||||
|
@ -640,9 +664,9 @@ checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pkg-config"
|
name = "pkg-config"
|
||||||
version = "0.3.18"
|
version = "0.3.19"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33"
|
checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "portability"
|
name = "portability"
|
||||||
|
@ -687,9 +711,9 @@ checksum = "c36fa947111f5c62a733b652544dd0016a43ce89619538a8ef92724a6f501a20"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro2"
|
name = "proc-macro2"
|
||||||
version = "1.0.23"
|
version = "1.0.24"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "51ef7cd2518ead700af67bf9d1a658d90b6037d77110fd9c0445429d0ba1c6c9"
|
checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"unicode-xid",
|
"unicode-xid",
|
||||||
]
|
]
|
||||||
|
@ -753,7 +777,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "range-alloc"
|
name = "range-alloc"
|
||||||
version = "0.1.1"
|
version = "0.1.1"
|
||||||
source = "git+https://github.com/gfx-rs/gfx#c3df31f6f4ee089d576b52550dfbba11a70c1a68"
|
source = "git+https://github.com/gfx-rs/gfx#17249afe4c3b219200abb3a5c979984bdcb4a640"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "raw-window-handle"
|
name = "raw-window-handle"
|
||||||
|
@ -772,9 +796,9 @@ checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "regex"
|
name = "regex"
|
||||||
version = "1.3.9"
|
version = "1.4.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6"
|
checksum = "8963b85b8ce3074fecffde43b4b0dded83ce2f367dc8d363afc56679f3ee820b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aho-corasick",
|
"aho-corasick",
|
||||||
"memchr",
|
"memchr",
|
||||||
|
@ -784,9 +808,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "regex-syntax"
|
name = "regex-syntax"
|
||||||
version = "0.6.18"
|
version = "0.6.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8"
|
checksum = "8cab7a364d15cde1e505267766a2d3c4e22a843e1a601f0fa7564c0f82ced11c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "remove_dir_all"
|
name = "remove_dir_all"
|
||||||
|
@ -835,9 +859,9 @@ checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "spirv_cross"
|
name = "spirv_cross"
|
||||||
version = "0.21.0"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b631bd956108f3e34a4fb7e39621711ac15ce022bc567da2d953c6df13f00e00"
|
checksum = "d8221f4aebf53a4447aebd4fe29ebff2c66dd2c2821e63675e09e85bd21c8633"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"js-sys",
|
"js-sys",
|
||||||
|
@ -855,9 +879,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "syn"
|
name = "syn"
|
||||||
version = "1.0.42"
|
version = "1.0.48"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9c51d92969d209b54a98397e1b91c8ae82d8c87a7bb87df0b29aa2ad81454228"
|
checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
@ -870,7 +894,7 @@ version = "3.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
|
checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc",
|
"libc",
|
||||||
"rand",
|
"rand",
|
||||||
"redox_syscall",
|
"redox_syscall",
|
||||||
|
@ -896,6 +920,12 @@ dependencies = [
|
||||||
"lazy_static 1.4.0",
|
"lazy_static 1.4.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "thunderdome"
|
||||||
|
version = "0.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7572415bd688d401c52f6e36f4c8e805b9ae1622619303b9fa835d531db0acae"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "token_store"
|
name = "token_store"
|
||||||
version = "0.1.2"
|
version = "0.1.2"
|
||||||
|
@ -926,7 +956,7 @@ version = "0.2.68"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1ac64ead5ea5f05873d7c12b545865ca2b8d28adfc50a49b84770a3a97265d42"
|
checksum = "1ac64ead5ea5f05873d7c12b545865ca2b8d28adfc50a49b84770a3a97265d42"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"wasm-bindgen-macro",
|
"wasm-bindgen-macro",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1105,16 +1135,6 @@ dependencies = [
|
||||||
"winapi",
|
"winapi",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "x11"
|
|
||||||
version = "2.18.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "77ecd092546cb16f25783a5451538e73afc8d32e242648d54f4ae5459ba1e773"
|
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
"pkg-config",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "x11-dl"
|
name = "x11-dl"
|
||||||
version = "2.18.5"
|
version = "2.18.5"
|
||||||
|
@ -1127,16 +1147,6 @@ dependencies = [
|
||||||
"pkg-config",
|
"pkg-config",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "xcb"
|
|
||||||
version = "0.9.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "62056f63138b39116f82a540c983cc11f1c90cd70b3d492a70c25eaa50bd22a6"
|
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
"log",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "xml-rs"
|
name = "xml-rs"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -1,11 +1,11 @@
|
||||||
CTS_DIR=../VK-GL-CTS
|
CTS_DIR=../VK-GL-CTS
|
||||||
CHERRY_DIR=../cherry
|
CHERRY_DIR=../cherry
|
||||||
BINDING=target/vulkan.rs
|
BINDING=target/vulkan.rs
|
||||||
|
LIB_FILE_NAME=
|
||||||
|
LIB_VULKAN_NAME=
|
||||||
NATIVE_DIR=target/native
|
NATIVE_DIR=target/native
|
||||||
NATIVE_TARGET=$(NATIVE_DIR)/test
|
NATIVE_TARGET=$(NATIVE_DIR)/test
|
||||||
NATIVE_OBJECTS=$(NATIVE_DIR)/test.o $(NATIVE_DIR)/window.o
|
NATIVE_OBJECTS=$(NATIVE_DIR)/test.o $(NATIVE_DIR)/window.o
|
||||||
LIB_FILE_NAME=
|
|
||||||
LIB_VULKAN_NAME=
|
|
||||||
TEST_LIST=$(CURDIR)/conformance/deqp.txt
|
TEST_LIST=$(CURDIR)/conformance/deqp.txt
|
||||||
TEST_LIST_SOURCE=$(CTS_DIR)/external/vulkancts/mustpass/1.0.2/vk-default.txt
|
TEST_LIST_SOURCE=$(CTS_DIR)/external/vulkancts/mustpass/1.0.2/vk-default.txt
|
||||||
DEQP_DIR=$(CTS_DIR)/build/external/vulkancts/modules/vulkan/
|
DEQP_DIR=$(CTS_DIR)/build/external/vulkancts/modules/vulkan/
|
||||||
|
@ -18,7 +18,7 @@ ZIP_COMMAND=
|
||||||
DOTA_DIR=../dota2/bin/osx64
|
DOTA_DIR=../dota2/bin/osx64
|
||||||
DOTA_EXE=$(DOTA_DIR)/dota2.app/Contents/MacOS/dota2
|
DOTA_EXE=$(DOTA_DIR)/dota2.app/Contents/MacOS/dota2
|
||||||
#possible command lines are : -vulkan_disable_occlusion_queries -vulkan_scene_system_job_cost 2 +vulkan_batch_submits 1 +vulkan_batch_size 500
|
#possible command lines are : -vulkan_disable_occlusion_queries -vulkan_scene_system_job_cost 2 +vulkan_batch_submits 1 +vulkan_batch_size 500
|
||||||
DOTA_PARAMS:=-vulkan_disable_occlusion_queries
|
DOTA_PARAMS:=-vulkan -vulkan_disable_occlusion_queries -vulkan_descriptor_sets_per_pool 256
|
||||||
DOTA_DEMO_PHORONIX= "$(CURDIR)/../dota2/demos/dota2-pts-1971360796.dem"
|
DOTA_DEMO_PHORONIX= "$(CURDIR)/../dota2/demos/dota2-pts-1971360796.dem"
|
||||||
DOTA_BENCHMARK=+timedemoquit +timedemo $(DOTA_DEMO_PHORONIX) +timedemo_start 40000 +timedemo_end 50000 +fps_max 0 -novconsole -high -autoconfig_level 3
|
DOTA_BENCHMARK=+timedemoquit +timedemo $(DOTA_DEMO_PHORONIX) +timedemo_start 40000 +timedemo_end 50000 +fps_max 0 -novconsole -high -autoconfig_level 3
|
||||||
DOTA_BENCH_RESULTS=../dota2/dota/Source2Bench.csv
|
DOTA_BENCH_RESULTS=../dota2/dota/Source2Bench.csv
|
||||||
|
@ -135,15 +135,15 @@ $(BINDING): headers/vulkan/*.h
|
||||||
bindgen --no-layout-tests --rustfmt-bindings headers/vulkan/vulkan.h -o $(BINDING)
|
bindgen --no-layout-tests --rustfmt-bindings headers/vulkan/vulkan.h -o $(BINDING)
|
||||||
|
|
||||||
$(LIBRARY): dummy
|
$(LIBRARY): dummy
|
||||||
cargo build --manifest-path libportability/Cargo.toml --features $(BACKEND)
|
cargo build --manifest-path libportability/Cargo.toml --features $(BACKEND),debug
|
||||||
cargo build --manifest-path libportability-icd/Cargo.toml --features $(BACKEND),portability-gfx/env_logger
|
cargo build --manifest-path libportability-icd/Cargo.toml --features $(BACKEND),debug
|
||||||
mkdir -p target/native
|
|
||||||
|
|
||||||
$(LIBRARY_FAST): dummy
|
$(LIBRARY_FAST): dummy
|
||||||
cargo build --release --manifest-path libportability/Cargo.toml --features $(BACKEND)
|
cargo build --release --manifest-path libportability/Cargo.toml --features $(BACKEND)
|
||||||
cargo build --release --manifest-path libportability-icd/Cargo.toml --features $(BACKEND)
|
cargo build --release --manifest-path libportability-icd/Cargo.toml --features $(BACKEND)
|
||||||
|
|
||||||
$(NATIVE_DIR)/%.o: native/%.cpp $(DEPS) Makefile
|
$(NATIVE_DIR)/%.o: native/%.cpp $(DEPS) Makefile
|
||||||
|
-mkdir $(NATIVE_DIR)
|
||||||
$(CC) -c -o $@ $< $(CFLAGS)
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
$(NATIVE_TARGET): $(LIBRARY) $(NATIVE_OBJECTS) Makefile
|
$(NATIVE_TARGET): $(LIBRARY) $(NATIVE_OBJECTS) Makefile
|
||||||
|
|
|
@ -38,7 +38,6 @@ git = "https://github.com/gfx-rs/gfx"
|
||||||
#path = "../../gfx/src/backend/empty"
|
#path = "../../gfx/src/backend/empty"
|
||||||
|
|
||||||
[target.'cfg(not(any(target_os = "macos", target_os = "ios")))'.dependencies.gfx-backend-vulkan]
|
[target.'cfg(not(any(target_os = "macos", target_os = "ios")))'.dependencies.gfx-backend-vulkan]
|
||||||
features = ["x11", "xcb"]
|
|
||||||
git = "https://github.com/gfx-rs/gfx"
|
git = "https://github.com/gfx-rs/gfx"
|
||||||
#path = "../../gfx/src/backend/vulkan"
|
#path = "../../gfx/src/backend/vulkan"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
|
@ -422,7 +422,7 @@ pub fn map_image_usage(usage: VkImageUsageFlags) -> image::Usage {
|
||||||
image::Usage::from_bits_truncate(usage)
|
image::Usage::from_bits_truncate(usage)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn _map_image_usage_from_hal(usage: image::Usage) -> VkImageUsageFlags {
|
pub fn map_image_usage_from_hal(usage: image::Usage) -> VkImageUsageFlags {
|
||||||
usage.bits()
|
usage.bits()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -568,6 +568,16 @@ pub fn memory_properties_from_hal(properties: memory::Properties) -> VkMemoryPro
|
||||||
flags
|
flags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn memory_heap_flags_from_hal(hal_flags: memory::HeapFlags) -> VkMemoryHeapFlags {
|
||||||
|
let mut flags = 0;
|
||||||
|
|
||||||
|
if hal_flags.contains(memory::HeapFlags::DEVICE_LOCAL) {
|
||||||
|
flags |= VkMemoryHeapFlagBits::VK_MEMORY_HEAP_DEVICE_LOCAL_BIT as u32;
|
||||||
|
}
|
||||||
|
|
||||||
|
flags
|
||||||
|
}
|
||||||
|
|
||||||
pub fn map_descriptor_type(ty: VkDescriptorType) -> pso::DescriptorType {
|
pub fn map_descriptor_type(ty: VkDescriptorType) -> pso::DescriptorType {
|
||||||
use super::VkDescriptorType::*;
|
use super::VkDescriptorType::*;
|
||||||
|
|
||||||
|
|
|
@ -498,19 +498,20 @@ pub unsafe extern "C" fn gfxGetPhysicalDeviceMemoryProperties(
|
||||||
let num_types = properties.memory_types.len();
|
let num_types = properties.memory_types.len();
|
||||||
memory_properties.memoryTypeCount = num_types as _;
|
memory_properties.memoryTypeCount = num_types as _;
|
||||||
for i in 0..num_types {
|
for i in 0..num_types {
|
||||||
let flags = conv::memory_properties_from_hal(properties.memory_types[i].properties);
|
let ty = &properties.memory_types[i];
|
||||||
memory_properties.memoryTypes[i] = VkMemoryType {
|
memory_properties.memoryTypes[i] = VkMemoryType {
|
||||||
propertyFlags: flags, // propertyFlags
|
propertyFlags: conv::memory_properties_from_hal(ty.properties),
|
||||||
heapIndex: properties.memory_types[i].heap_index as _,
|
heapIndex: ty.heap_index as _,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
let num_heaps = properties.memory_heaps.len();
|
let num_heaps = properties.memory_heaps.len();
|
||||||
memory_properties.memoryHeapCount = num_heaps as _;
|
memory_properties.memoryHeapCount = num_heaps as _;
|
||||||
for i in 0..num_heaps {
|
for i in 0..num_heaps {
|
||||||
|
let heap = &properties.memory_heaps[i];
|
||||||
memory_properties.memoryHeaps[i] = VkMemoryHeap {
|
memory_properties.memoryHeaps[i] = VkMemoryHeap {
|
||||||
size: properties.memory_heaps[i],
|
size: heap.size,
|
||||||
flags: 0, // TODO
|
flags: conv::memory_heap_flags_from_hal(heap.flags),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1826,7 +1827,7 @@ pub unsafe extern "C" fn gfxCreateImage(
|
||||||
kind,
|
kind,
|
||||||
info.mipLevels as _,
|
info.mipLevels as _,
|
||||||
conv::map_format(info.format)
|
conv::map_format(info.format)
|
||||||
.expect(&format!("Unsupported image format: {:?}", info.format)),
|
.unwrap_or_else(|| panic!("Unsupported image format: {:?}", info.format)),
|
||||||
conv::map_tiling(info.tiling),
|
conv::map_tiling(info.tiling),
|
||||||
conv::map_image_usage(info.usage),
|
conv::map_image_usage(info.usage),
|
||||||
conv::map_image_create_flags(info.flags),
|
conv::map_image_create_flags(info.flags),
|
||||||
|
@ -4274,8 +4275,7 @@ pub unsafe extern "C" fn gfxGetPhysicalDeviceSurfaceCapabilitiesKHR(
|
||||||
as _,
|
as _,
|
||||||
currentTransform: VkSurfaceTransformFlagBitsKHR::VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,
|
currentTransform: VkSurfaceTransformFlagBitsKHR::VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,
|
||||||
supportedCompositeAlpha: caps.composite_alpha_modes.bits(),
|
supportedCompositeAlpha: caps.composite_alpha_modes.bits(),
|
||||||
// Ignoring `caps.usage` since we only work with the new swapchain model here.
|
supportedUsageFlags: conv::map_image_usage_from_hal(caps.usage),
|
||||||
supportedUsageFlags: VkImageUsageFlagBits::VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT as _,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
*pSurfaceCapabilities = output;
|
*pSurfaceCapabilities = output;
|
||||||
|
@ -4428,16 +4428,14 @@ pub unsafe extern "C" fn gfxCreateSwapchainKHR(
|
||||||
) -> VkResult {
|
) -> VkResult {
|
||||||
let info = &*pCreateInfo;
|
let info = &*pCreateInfo;
|
||||||
// TODO: more checks
|
// TODO: more checks
|
||||||
assert_eq!(info.clipped, VK_TRUE); // TODO
|
if info.clipped == 0 {
|
||||||
|
warn!("Non-clipped swapchain requested");
|
||||||
|
}
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
info.imageSharingMode,
|
info.imageSharingMode,
|
||||||
VkSharingMode::VK_SHARING_MODE_EXCLUSIVE
|
VkSharingMode::VK_SHARING_MODE_EXCLUSIVE
|
||||||
); // TODO
|
); // TODO
|
||||||
|
|
||||||
if info.imageUsage != VkImageUsageFlagBits::VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT as _ {
|
|
||||||
warn!("Unsupported swapchain usage: {:?}", info.imageUsage);
|
|
||||||
}
|
|
||||||
|
|
||||||
let config = hal::window::SwapchainConfig {
|
let config = hal::window::SwapchainConfig {
|
||||||
present_mode: conv::map_present_mode(info.presentMode),
|
present_mode: conv::map_present_mode(info.presentMode),
|
||||||
composite_alpha_mode: conv::map_composite_alpha(info.compositeAlpha),
|
composite_alpha_mode: conv::map_composite_alpha(info.compositeAlpha),
|
||||||
|
@ -4455,12 +4453,13 @@ pub unsafe extern "C" fn gfxCreateSwapchainKHR(
|
||||||
.configure_swapchain(&gpu.device, config)
|
.configure_swapchain(&gpu.device, config)
|
||||||
{
|
{
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
|
let count = info.minImageCount;
|
||||||
let swapchain = Swapchain {
|
let swapchain = Swapchain {
|
||||||
gpu,
|
gpu,
|
||||||
surface: info.surface,
|
surface: info.surface,
|
||||||
count: info.minImageCount,
|
count,
|
||||||
current_index: 0,
|
current_index: 0,
|
||||||
active: Vec::new(),
|
active: (0 .. count).map(|_| None).collect(),
|
||||||
lazy_framebuffers: Mutex::new(Vec::with_capacity(1)),
|
lazy_framebuffers: Mutex::new(Vec::with_capacity(1)),
|
||||||
};
|
};
|
||||||
*pSwapchain = Handle::new(swapchain);
|
*pSwapchain = Handle::new(swapchain);
|
||||||
|
@ -4746,7 +4745,7 @@ pub unsafe extern "C" fn gfxAcquireNextImageKHR(
|
||||||
match swapchain.surface.acquire_image(timeout) {
|
match swapchain.surface.acquire_image(timeout) {
|
||||||
Ok((frame, suboptimal)) => {
|
Ok((frame, suboptimal)) => {
|
||||||
let index = (swapchain.current_index + 1) % swapchain.count;
|
let index = (swapchain.current_index + 1) % swapchain.count;
|
||||||
swapchain.active.push((index, frame));
|
swapchain.active[index as usize] = Some(frame);
|
||||||
*pImageIndex = index;
|
*pImageIndex = index;
|
||||||
swapchain.current_index = index;
|
swapchain.current_index = index;
|
||||||
match suboptimal {
|
match suboptimal {
|
||||||
|
@ -4781,12 +4780,9 @@ pub unsafe extern "C" fn gfxQueuePresentKHR(
|
||||||
|
|
||||||
for (swapchain, &index) in swapchain_slice.iter().zip(index_slice) {
|
for (swapchain, &index) in swapchain_slice.iter().zip(index_slice) {
|
||||||
let sc = swapchain.as_mut().unwrap();
|
let sc = swapchain.as_mut().unwrap();
|
||||||
let active_pos = sc
|
let frame = sc.active[index as usize]
|
||||||
.active
|
.take()
|
||||||
.iter()
|
|
||||||
.position(|&(frame, _)| frame == index)
|
|
||||||
.expect("Frame was not acquired properly!");
|
.expect("Frame was not acquired properly!");
|
||||||
let (_, frame) = sc.active.swap_remove(active_pos);
|
|
||||||
let sem = wait_semaphores.first().map(|s| &s.raw);
|
let sem = wait_semaphores.first().map(|s| &s.raw);
|
||||||
if let Err(_) = queue.present(&mut *sc.surface, frame, sem) {
|
if let Err(_) = queue.present(&mut *sc.surface, frame, sem) {
|
||||||
return VkResult::VK_ERROR_SURFACE_LOST_KHR;
|
return VkResult::VK_ERROR_SURFACE_LOST_KHR;
|
||||||
|
|
|
@ -124,11 +124,14 @@ pub enum Image<B: hal::Backend> {
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct UnexpectedSwapchainImage;
|
struct UnexpectedSwapchainImage;
|
||||||
|
|
||||||
impl<B: hal::Backend> Image<B> {
|
impl Image<B> {
|
||||||
fn as_native(&self) -> Result<&B::Image, UnexpectedSwapchainImage> {
|
fn as_native(&self) -> Result<&<B as hal::Backend>::Image, UnexpectedSwapchainImage> {
|
||||||
|
//use std::borrow::Borrow;
|
||||||
match *self {
|
match *self {
|
||||||
Image::Native { ref raw } => Ok(raw),
|
Image::Native { ref raw } => Ok(raw),
|
||||||
Image::SwapchainFrame { .. } => Err(UnexpectedSwapchainImage),
|
Image::SwapchainFrame { .. } => Err(UnexpectedSwapchainImage),
|
||||||
|
//Image::SwapchainFrame { ref swapchain, frame } =>
|
||||||
|
// Ok(swapchain.active[frame as usize].as_ref().unwrap().borrow()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -195,11 +198,9 @@ impl Framebuffer {
|
||||||
} => {
|
} => {
|
||||||
use std::borrow::Borrow;
|
use std::borrow::Borrow;
|
||||||
swapchain
|
swapchain
|
||||||
.active
|
.active[frame as usize]
|
||||||
.iter()
|
.as_ref()
|
||||||
.find(|&&(index, _)| index == frame)
|
|
||||||
.expect("Swapchain frame isn't acquired")
|
.expect("Swapchain frame isn't acquired")
|
||||||
.1
|
|
||||||
.borrow()
|
.borrow()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -249,10 +250,7 @@ pub struct Swapchain<B: hal::Backend> {
|
||||||
surface: VkSurfaceKHR,
|
surface: VkSurfaceKHR,
|
||||||
count: hal::window::SwapImageIndex,
|
count: hal::window::SwapImageIndex,
|
||||||
current_index: hal::window::SwapImageIndex,
|
current_index: hal::window::SwapImageIndex,
|
||||||
active: Vec<(
|
active: Vec<Option<<B::Surface as hal::window::PresentationSurface<B>>::SwapchainImage>>,
|
||||||
hal::window::SwapImageIndex,
|
|
||||||
<B::Surface as hal::window::PresentationSurface<B>>::SwapchainImage,
|
|
||||||
)>,
|
|
||||||
lazy_framebuffers: parking_lot::Mutex<Vec<<B as hal::Backend>::Framebuffer>>,
|
lazy_framebuffers: parking_lot::Mutex<Vec<<B as hal::Backend>::Framebuffer>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,8 @@ pub unsafe extern "C" fn vk_icdGetInstanceProcAddr(
|
||||||
pub unsafe extern "C" fn vk_icdNegotiateLoaderICDInterfaceVersion(
|
pub unsafe extern "C" fn vk_icdNegotiateLoaderICDInterfaceVersion(
|
||||||
pSupportedVersion: *mut ::std::os::raw::c_uint,
|
pSupportedVersion: *mut ::std::os::raw::c_uint,
|
||||||
) -> VkResult {
|
) -> VkResult {
|
||||||
let supported_version = &mut *pSupportedVersion;
|
if *pSupportedVersion > ICD_VERSION {
|
||||||
if *supported_version > ICD_VERSION {
|
*pSupportedVersion = ICD_VERSION;
|
||||||
*supported_version = ICD_VERSION;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VkResult::VK_SUCCESS
|
VkResult::VK_SUCCESS
|
||||||
|
|
|
@ -381,8 +381,8 @@ int main() {
|
||||||
vkGetImageMemoryRequirements(device, depth_image, &mem_reqs);
|
vkGetImageMemoryRequirements(device, depth_image, &mem_reqs);
|
||||||
printf("\tvkGetImageMemoryRequirements\n");
|
printf("\tvkGetImageMemoryRequirements\n");
|
||||||
printf(
|
printf(
|
||||||
"\t\tsize: %llx\n"
|
"\t\tsize: %zx\n"
|
||||||
"\t\talignment: %llx\n"
|
"\t\talignment: %zx\n"
|
||||||
"\t\tmemoryTypeBits: %x\n",
|
"\t\tmemoryTypeBits: %x\n",
|
||||||
mem_reqs.size,
|
mem_reqs.size,
|
||||||
mem_reqs.alignment,
|
mem_reqs.alignment,
|
||||||
|
|
Loading…
Reference in a new issue