rt(gl): remove unnecessary unstable features

polyfill strict_provenance with sptr
This commit is contained in:
chyyran 2024-02-03 02:52:48 -05:00 committed by Ronny Chan
parent 7c0190004f
commit 552be8c34e
4 changed files with 11 additions and 3 deletions

7
Cargo.lock generated
View file

@ -1353,6 +1353,7 @@ dependencies = [
"librashader-spirv-cross",
"rayon",
"rustc-hash",
"sptr",
"thiserror",
]
@ -2180,6 +2181,12 @@ dependencies = [
"cmake",
]
[[package]]
name = "sptr"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a"
[[package]]
name = "strsim"
version = "0.10.0"

View file

@ -26,6 +26,8 @@ bytemuck = "1.12.3"
thiserror = "1.0.37"
rayon = "1.6.1"
sptr = "0.3"
[dev-dependencies]
glfw = "0.47.0"

View file

@ -52,7 +52,7 @@ impl DrawQuad for Gl3DrawQuad {
gl::FLOAT,
gl::FALSE,
(4 * std::mem::size_of::<f32>()) as GLsizei,
std::ptr::invalid(0),
sptr::invalid(0),
);
gl::VertexAttribPointer(
1,
@ -60,7 +60,7 @@ impl DrawQuad for Gl3DrawQuad {
gl::FLOAT,
gl::FALSE,
(4 * std::mem::size_of::<f32>()) as GLsizei,
std::ptr::invalid(2 * std::mem::size_of::<f32>()),
sptr::invalid(2 * std::mem::size_of::<f32>()),
);
}
}

View file

@ -3,7 +3,6 @@
//! This crate should not be used directly.
//! See [`librashader::runtime::gl`](https://docs.rs/librashader/latest/librashader/runtime/gl/index.html) instead.
#![deny(unsafe_op_in_unsafe_fn)]
#![feature(strict_provenance)]
#![feature(let_chains)]
#![feature(type_alias_impl_trait)]