Skip to content

Commit af69c8c

Browse files
authored
cargo: Bump windows-rs to 0.42 (#116)
* cargo: Bump windows-rs to 0.37 * cargo: Bump windows-rs to 0.38 * README: Add nice logos to shields/badges * cargo: Bump windows-rs to 0.39 * cargo: Bump windows-rs to 0.40 * cargo: Bump windows-rs to 0.41 Undoing the array change from 0.40 * cargo: Bump windows-rs to 0.42
1 parent 838d151 commit af69c8c

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ imgui = { version = "0.8", features = ["tables-api"], optional = true }
3333
winapi = { version = "0.3.9", features = ["d3d12", "winerror", "impl-default", "impl-debug"], optional = true }
3434

3535
[target.'cfg(windows)'.dependencies.windows]
36-
version = "0.36"
36+
version = "0.42"
3737
features = [
3838
"Win32_Foundation",
3939
"Win32_Graphics",
@@ -56,7 +56,7 @@ imgui-winit-support = { version = "0.8", default-features = false, features = ["
5656
winapi = { version = "0.3.9", features = ["d3d12", "d3d12sdklayers", "dxgi1_6", "winerror", "impl-default", "impl-debug", "winuser", "windowsx", "libloaderapi"] }
5757

5858
[target.'cfg(windows)'.dev-dependencies.windows]
59-
version = "0.36"
59+
version = "0.42"
6060
features = [
6161
"Win32_Foundation",
6262
"Win32_Graphics",

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
📒 gpu-allocator
2-
=
1+
# 📒 gpu-allocator
32

4-
[![Actions Status](https://github.com/Traverse-Research/gpu-allocator/workflows/CI/badge.svg)](https://github.com/Traverse-Research/gpu-allocator/actions)
5-
[![Latest version](https://img.shields.io/crates/v/gpu-allocator.svg)](https://crates.io/crates/gpu-allocator)
6-
[![Docs](https://docs.rs/gpu-allocator/badge.svg)](https://docs.rs/gpu-allocator/)
3+
4+
[![Actions Status](https://img.shields.io/github/workflow/status/Traverse-Research/gpu-allocator/CI?logo=github)](https://github.com/Traverse-Research/gpu-allocator/actions)
5+
[![Latest version](https://img.shields.io/crates/v/gpu-allocator.svg?logo=rust)](https://crates.io/crates/gpu-allocator)
6+
[![Docs](https://img.shields.io/docsrs/gpu-allocator?logo=docs.rs)](https://docs.rs/gpu-allocator/)
77
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE-MIT)
8-
[![LICENSE](https://img.shields.io/badge/license-apache-blue.svg)](LICENSE-APACHE)
8+
[![LICENSE](https://img.shields.io/badge/license-apache-blue.svg?logo=apache)](LICENSE-APACHE)
99
[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v1.4%20adopted-ff69b4.svg)](../main/CODE_OF_CONDUCT.md)
1010

1111
[![Banner](banner.png)](https://traverseresearch.nl)
@@ -116,7 +116,7 @@ let hr = unsafe {
116116
allocation.offset(),
117117
&buffer_desc,
118118
Direct3D12::D3D12_RESOURCE_STATE_COMMON,
119-
std::ptr::null(),
119+
None,
120120
&mut resource,
121121
)
122122
}?;

README.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
📒 {{crate}}
2-
=
1+
# 📒 gpu-allocator
32

4-
[![Actions Status](https://github.com/Traverse-Research/gpu-allocator/workflows/CI/badge.svg)](https://github.com/Traverse-Research/gpu-allocator/actions)
5-
[![Latest version](https://img.shields.io/crates/v/gpu-allocator.svg)](https://crates.io/crates/gpu-allocator)
6-
[![Docs](https://docs.rs/gpu-allocator/badge.svg)](https://docs.rs/gpu-allocator/)
3+
4+
[![Actions Status](https://img.shields.io/github/workflow/status/Traverse-Research/gpu-allocator/CI?logo=github)](https://github.com/Traverse-Research/gpu-allocator/actions)
5+
[![Latest version](https://img.shields.io/crates/v/gpu-allocator.svg?logo=rust)](https://crates.io/crates/gpu-allocator)
6+
[![Docs](https://img.shields.io/docsrs/gpu-allocator?logo=docs.rs)](https://docs.rs/gpu-allocator/)
77
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE-MIT)
8-
[![LICENSE](https://img.shields.io/badge/license-apache-blue.svg)](LICENSE-APACHE)
8+
[![LICENSE](https://img.shields.io/badge/license-apache-blue.svg?logo=apache)](LICENSE-APACHE)
99
[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v1.4%20adopted-ff69b4.svg)](../main/CODE_OF_CONDUCT.md)
1010

1111
[![Banner](banner.png)](https://traverseresearch.nl)

examples/d3d12-buffer-winrs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn main() -> Result<()> {
123123
allocation.offset(),
124124
&test_buffer_desc,
125125
D3D12_RESOURCE_STATE_COMMON,
126-
std::ptr::null(),
126+
None,
127127
&mut resource,
128128
)
129129
}?;
@@ -171,7 +171,7 @@ fn main() -> Result<()> {
171171
allocation.offset(),
172172
&test_buffer_desc,
173173
D3D12_RESOURCE_STATE_COMMON,
174-
std::ptr::null(),
174+
None,
175175
&mut resource,
176176
)
177177
}?;
@@ -219,7 +219,7 @@ fn main() -> Result<()> {
219219
allocation.offset(),
220220
&test_buffer_desc,
221221
D3D12_RESOURCE_STATE_COMMON,
222-
std::ptr::null(),
222+
None,
223223
&mut resource,
224224
)
225225
}?;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
//! allocation.offset(),
139139
//! &buffer_desc,
140140
//! Direct3D12::D3D12_RESOURCE_STATE_COMMON,
141-
//! std::ptr::null(),
141+
//! None,
142142
//! &mut resource,
143143
//! )
144144
//! }?;

0 commit comments

Comments
 (0)