runtime: remove unused AsDerefable trait

This commit is contained in:
chyyran 2024-02-06 02:01:05 -05:00 committed by Ronny Chan
parent 6c50880600
commit 754e8da620
2 changed files with 0 additions and 7 deletions

View file

@ -1,5 +1,3 @@
#![allow(stable_features)]
#![feature(return_position_impl_trait_in_trait)]
//! Helpers and shared logic for librashader runtime implementations.
//!
//! Most of this is only useful when _writing_ a librashader runtime implementations,

View file

@ -8,11 +8,6 @@ impl UniformScalar for f32 {}
impl UniformScalar for i32 {}
impl UniformScalar for u32 {}
pub trait AsDerefable {
fn get_deref(&self) -> impl Deref<Target = [u8]>;
fn get_deref_mut(&mut self) -> impl DerefMut<Target = [u8]>;
}
/// A trait for a binder that binds the given value and context into the uniform for a shader pass.
pub trait BindUniform<C, T> {
/// Bind the given value to the shader uniforms given the input context.