WasmGPU - v0.6.0
    Preparing search index...

    Class Colormap

    Index

    Constructors

    • Parameters

      • opts: {
            external?:
                | {
                    device: GPUDevice;
                    filter: ColormapFilter;
                    sampler: GPUSampler;
                    view: GPUTextureView;
                    width: number;
                }
                | null;
            filter: ColormapFilter;
            label: string;
            rgba8Linear?: Uint8Array<ArrayBufferLike>
            | null;
            width: number;
        }

      Returns Colormap

    Properties

    id: number = ...

    Accessors

    • get width(): number

      Returns number

    Methods

    • Parameters

      • device: GPUDevice
      • queue: GPUQueue

      Returns ColormapGPUResources

    • Parameters

      • maxStops: number = 8
      • colorSpace: "srgb" | "linear" = "linear"

      Returns Color4[]

    • Parameters

      • device: GPUDevice
      • view: GPUTextureView
      • sampler: GPUSampler
      • width: number
      • filter: ColormapFilter = "linear"

      Returns Colormap