macro_rules! texture {
{ @sampletype Float } => { ... };
{ @sampletype FloatFiltering } => { ... };
{ @sampletype Depth } => { ... };
{ @sampletype Sint } => { ... };
{ @sampletype Uint } => { ... };
{ $struct:ident {
usage: $( $usage:ident )|+ ,
dimension: $dimension:ident,
sample_type: $sample:ident,
} } => { ... };
}Expand description
usage: variants of wgpu::TextureUsages format: variant of wgpu::TextureFormat dimension: variant of wgpu::TextureViewDimension sample_type: Float, FloatFiltering, Depth, Sint, or Uint