add most remaining dyn type traits

This commit is contained in:
Andreas Reich 2024-07-20 21:12:42 +02:00
parent add54f19d8
commit b4c6741970
2 changed files with 9 additions and 2 deletions

View File

@ -88,12 +88,18 @@ impl<R: DynResource + ?Sized> DynResourceExt for R {
}
}
pub trait DynAccelerationStructure: DynResource + std::fmt::Debug {}
pub trait DynBindGroup: DynResource + std::fmt::Debug {}
pub trait DynBindGroupLayout: DynResource + std::fmt::Debug {}
pub trait DynBuffer: DynResource + std::fmt::Debug {}
pub trait DynComputePipeline: DynResource + std::fmt::Debug {}
pub trait DynFence: DynResource + std::fmt::Debug {}
pub trait DynPipelineCache: DynResource + std::fmt::Debug {}
pub trait DynPipelineLayout: DynResource + std::fmt::Debug {}
pub trait DynQuerySet: DynResource + std::fmt::Debug {}
pub trait DynRenderPipeline: DynResource + std::fmt::Debug {}
pub trait DynSampler: DynResource + std::fmt::Debug {}
pub trait DynShaderModule: DynResource + std::fmt::Debug {}
pub trait DynTexture: DynResource + std::fmt::Debug {}
pub trait DynTextureView: DynResource + std::fmt::Debug {}

View File

@ -266,8 +266,9 @@ mod dynamic;
pub(crate) use dynamic::impl_dyn_resource;
pub use dynamic::{
DynBindGroup, DynBuffer, DynCommandEncoder, DynComputePipeline, DynDevice, DynPipelineLayout,
DynQuerySet, DynRenderPipeline, DynResource, DynTexture, DynTextureView,
DynAccelerationStructure, DynBindGroup, DynBindGroupLayout, DynBuffer, DynCommandEncoder,
DynComputePipeline, DynDevice, DynFence, DynPipelineCache, DynPipelineLayout, DynQuerySet,
DynRenderPipeline, DynResource, DynSampler, DynShaderModule, DynTexture, DynTextureView,
};
use std::{