Skip to content

How to render to rgba16float with offscreen canvas? #698

@apontzen

Description

@apontzen

I am working in a team where we have a scientific visualisation code where we sometimes choose to render to rgba16float to make an HDR interface. (We realise color space and tone mapping is a work in progress, but in practice it works just fine for our use case.)

Previously we were using wgpu 0.15 and this would work either for onscreen or offscreen canvases. On updating to 0.21, we can still do this onscreen but when offscreen we fall over due to a check against the capabilities of the device. On investigation, it seems like these capabilities are actually hard-coded for offscreen canvases. The main purpose of rendering offscreen is for testing, so we are in a position where the intended functionality actually continues to work but we can't test it.

I am sure we can hack around this, but is there any accepted/correct approach?

Many thanks indeed for any guidance/hints, and also for this excellent package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions