macro_rules! only_traits {
(Buffer ; ; ) => { ... };
(Buffer ; Dyn ; ) => { ... };
(Sampler ; ; ) => { ... };
(Sampler ; Cmp ; ) => { ... };
(StorageBuffer ; ; ) => { ... };
(StorageBuffer ; Dyn ; ) => { ... };
(StorageBuffer ; Readonly ; ) => { ... };
(StorageBuffer ; Readonly ; Dyn) => { ... };
(StorageBuffer ; Dyn ; Readonly) => { ... };
}
internal use only
converts a type expression into its wgpu::BindingType
equivalent. this only works for the
subset of types that do not use the pseudo generics notation. which is to say Buffers,
StorageBuffers, and Samplers.