mirror of
https://github.com/italicsjenga/portability.git
synced 2025-02-17 06:37:43 +11:00
Deny sparse resources, update gfx-rs
This commit is contained in:
parent
1af668650f
commit
0e1385f1d5
2 changed files with 13 additions and 10 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -252,7 +252,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
[[package]]
|
||||
name = "gfx-backend-dx12"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/gfx-rs/gfx#85f76137ebf3de5b287559544209432277d66a66"
|
||||
source = "git+https://github.com/gfx-rs/gfx#25c2517efc83aa85e58dbce2ce95107905787cf1"
|
||||
dependencies = [
|
||||
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"derivative 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -268,7 +268,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "gfx-backend-metal"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/gfx-rs/gfx#85f76137ebf3de5b287559544209432277d66a66"
|
||||
source = "git+https://github.com/gfx-rs/gfx#25c2517efc83aa85e58dbce2ce95107905787cf1"
|
||||
dependencies = [
|
||||
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"block 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -289,7 +289,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "gfx-backend-vulkan"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/gfx-rs/gfx#85f76137ebf3de5b287559544209432277d66a66"
|
||||
source = "git+https://github.com/gfx-rs/gfx#25c2517efc83aa85e58dbce2ce95107905787cf1"
|
||||
dependencies = [
|
||||
"ash 0.24.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -307,7 +307,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "gfx-hal"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/gfx-rs/gfx#85f76137ebf3de5b287559544209432277d66a66"
|
||||
source = "git+https://github.com/gfx-rs/gfx#25c2517efc83aa85e58dbce2ce95107905787cf1"
|
||||
dependencies = [
|
||||
"bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -10,7 +10,10 @@ use hal::command::RawCommandBuffer;
|
|||
use hal::queue::RawCommandQueue;
|
||||
|
||||
use std::ffi::{CStr, CString};
|
||||
use std::{mem, ptr};
|
||||
use std::mem;
|
||||
#[cfg(feature = "renderdoc")]
|
||||
use std::ptr;
|
||||
#[cfg(feature = "renderdoc")]
|
||||
use std::os::raw::c_void;
|
||||
|
||||
use super::*;
|
||||
|
@ -591,14 +594,14 @@ pub extern "C" fn gfxCreateDevice(
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub extern "C" fn gfxDestroyDevice(mut gpu: VkDevice, _pAllocator: *const VkAllocationCallbacks) {
|
||||
pub extern "C" fn gfxDestroyDevice(gpu: VkDevice, _pAllocator: *const VkAllocationCallbacks) {
|
||||
// release all the owned command queues
|
||||
if let Some(d) = gpu.unbox() {
|
||||
if let Some(mut d) = gpu.unbox() {
|
||||
#[cfg(feature = "renderdoc")]
|
||||
{
|
||||
use renderdoc::api::RenderDocV100;
|
||||
let device = gpu.capturing as *mut c_void;
|
||||
gpu.renderdoc.end_frame_capture(device as *mut _, ptr::null());
|
||||
d.renderdoc.end_frame_capture(device as *mut _, ptr::null());
|
||||
}
|
||||
|
||||
for (_, family) in d.queues {
|
||||
|
@ -1006,10 +1009,10 @@ pub extern "C" fn gfxGetPhysicalDeviceSparseImageFormatProperties(
|
|||
_samples: VkSampleCountFlagBits,
|
||||
_usage: VkImageUsageFlags,
|
||||
_tiling: VkImageTiling,
|
||||
_pPropertyCount: *mut u32,
|
||||
pPropertyCount: *mut u32,
|
||||
_pProperties: *mut VkSparseImageFormatProperties,
|
||||
) {
|
||||
unimplemented!()
|
||||
unsafe { *pPropertyCount = 0; } //TODO
|
||||
}
|
||||
#[inline]
|
||||
pub extern "C" fn gfxQueueBindSparse(
|
||||
|
|
Loading…
Add table
Reference in a new issue