[][src]Crate wgpu_bind_dsl

Macros

binding_layout

this macro builds a wgpu::BindingLayoutDescriptor with a format not unlike json.

d

internal use only converts a texture expression to a tuple of its dimension and a bool indicating whether or not it is multisampled.

generics

internal use only converts a Type expression into its wgpu::BindingType equivalent

only_traits

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.

vis

for internal use only. converts a visibility expression into its equivalent wgpu::ShaderStage bitflag representation. only works on expression of up to three items.