GPUTextureBindingLayout constructor

GPUTextureBindingLayout({
  1. String sampleType,
  2. String viewDimension,
  3. bool multisampled,
})

sampleType is "float", "unfilterable-float", "depth", "sint" or "uint"; viewDimension is "2d", "2d-array" or "cube".

A 32-bit float texture is "unfilterable-float" unless the device asked for float32-filterable, and getting that wrong is a pipeline that will not build rather than a blurry picture.

Implementation

external factory GPUTextureBindingLayout({
  String sampleType,
  String viewDimension,
  bool multisampled,
});