From 85596a31a8faedd9c754f0d205efb61919fa07e1 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 5 Mar 2019 07:59:01 -0500 Subject: [PATCH 1/2] Add changelog --- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..13f9f2cbe --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,35 @@ +# Change Log + +## v0.2 (05-03-2019) + - Seen running on: iOS/Metal, D3D11 + - Crates: + - `wgpu-remote`: remoting layer for the cross-process boundary + - `gfx-examples`: selected gfx pre-ll examples ported over + - Features: + - native example for compute + - "gfx-cube" and "gfx-shadow" examples + - copies between buffers and textures + - separate object identity for the remote client + - texture view tracking + - native swapchain resize support + - buffer mapping + - object index epochs + - comprehensive list of vertex and texture formats + - validation of pipeline compatibility with the pass + - Fixes + - fixed resource destruction + +## v0.1 (24-01-2019) + - Seen running on: Linux/Vulkan, Windows/Vulkan, D3D12, macOS/Metal + - Crates: + - `wgpu-native`: C API implementation of WebGPU, based on gfx-hal + - `wgpu-bindings`: auto-generated C headers + - `wgpu`: idiomatic Rust wrapper + - `examples`: native C examples + - Features: + - native examples for triangle rendering + - basic native swapchain integration + - concept of the storage hub + - basic recording of passes and command buffers + - submission-based lifetime tracking and command buffer recycling + - automatic resource transitions From 7149ba83ba44c4567e2b9614e850b7fc1f28a6b8 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 5 Mar 2019 15:59:50 -0500 Subject: [PATCH 2/2] Update dx11 dependency in the lockfile --- CHANGELOG.md | 8 ++++---- Cargo.lock | 8 ++++---- README.md | 7 ++++++- wgpu-bindings/wgpu.h | 4 ++++ 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13f9f2cbe..48941d106 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log -## v0.2 (05-03-2019) - - Seen running on: iOS/Metal, D3D11 +## v0.2 (06-03-2019) + - Platforms: iOS/Metal, D3D11 - Crates: - `wgpu-remote`: remoting layer for the cross-process boundary - `gfx-examples`: selected gfx pre-ll examples ported over @@ -20,7 +20,7 @@ - fixed resource destruction ## v0.1 (24-01-2019) - - Seen running on: Linux/Vulkan, Windows/Vulkan, D3D12, macOS/Metal + - Platforms: Linux/Vulkan, Windows/Vulkan, D3D12, macOS/Metal - Crates: - `wgpu-native`: C API implementation of WebGPU, based on gfx-hal - `wgpu-bindings`: auto-generated C headers @@ -30,6 +30,6 @@ - native examples for triangle rendering - basic native swapchain integration - concept of the storage hub - - basic recording of passes and command buffers + - basic recording of passes and command buffers - submission-based lifetime tracking and command buffer recycling - automatic resource transitions diff --git a/Cargo.lock b/Cargo.lock index a91d5b151..68d9d585d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -409,14 +409,14 @@ dependencies = [ [[package]] name = "gfx-backend-dx11" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "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)", "gfx-hal 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "range-alloc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)", "spirv_cross 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1403,7 +1403,7 @@ version = "0.1.0" dependencies = [ "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)", - "gfx-backend-dx11 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "gfx-backend-dx11 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "gfx-backend-dx12 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "gfx-backend-empty 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "gfx-backend-metal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1601,7 +1601,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum fxhash 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" "checksum gcc 0.3.55 (registry+https://github.com/rust-lang/crates.io-index)" = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" "checksum generic-array 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ef25c5683767570c2bbd7deba372926a55eaae9982d7726ee2a1050239d45b9d" -"checksum gfx-backend-dx11 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7751e630a3472d96b1a0ce9cd6742f2e17c0f71a6e833f822b914a11f89bd7db" +"checksum gfx-backend-dx11 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fe0bc43f1be34bfa182ed3575812848d72fb6e32315406adb98eeb0713f2a11a" "checksum gfx-backend-dx12 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "3d5bb21b4f0044a40fd645fd9a9f817e172fd7737699b2bc33c32270457d6a3c" "checksum gfx-backend-empty 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "590c15369f88b88e4ea748da52b27a521a758a947b4aee995539c9f0cc1beb4c" "checksum gfx-backend-metal 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "66a0fa897619ea7f05e8841fe6214cf1b4e3f52d6a88ed51c2fbc6635a2d5517" diff --git a/README.md b/README.md index ecc2c8db2..1165d14d6 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,11 @@ The implementation consists of the following parts: - `wgpu-remote` - remoting layer to work with WebGPU across the process boundary - `wgpu-rs` - idiomatic Rust wrapper of the native library +Supported platforms: + - Vulkan on Windows and Linux + - D3D12 and D3D12 on Windows + - Metal on macOS and iOS + ## Examples ![Cube](etc/gfx-cube.png) ![Shadow](etc/gfx-shadow.png) @@ -38,4 +43,4 @@ cargo run --bin cube --features metal cargo run --bin cube --features dx12 ``` -These examples assume that necessary dependencies for the graphics backend are already installed. For more information about installation and usage, refer to the [Getting Started](https://github.com/gfx-rs/gfx/blob/master/info/getting_started.md) guide. +These examples assume that necessary dependencies for the graphics backend are already installed. For more information about installation and usage, refer to the [Getting Started](https://github.com/gfx-rs/gfx/blob/master/info/getting_started.md) gfx-rs guide. diff --git a/wgpu-bindings/wgpu.h b/wgpu-bindings/wgpu.h index 853ed2e08..60c2f5119 100644 --- a/wgpu-bindings/wgpu.h +++ b/wgpu-bindings/wgpu.h @@ -714,6 +714,10 @@ WGPUBindGroupLayoutId wgpu_device_create_bind_group_layout(WGPUDeviceId device_i WGPUBufferId wgpu_device_create_buffer(WGPUDeviceId device_id, const WGPUBufferDescriptor *desc); +WGPUBufferId wgpu_device_create_buffer_mapped(WGPUDeviceId device_id, + const WGPUBufferDescriptor *desc, + uint8_t **mapped_ptr_out); + WGPUCommandEncoderId wgpu_device_create_command_encoder(WGPUDeviceId device_id, const WGPUCommandEncoderDescriptor *desc);