immersive-web / layers

A feature repo for working on multi-layer support in WebXR. Feature leads: Rik Cabanier and Artem Bolgar (Oculus)

Home Page:https://immersive-web.github.io/layers/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to skip the clearing of textures

cabanier opened this issue · comments

The WebXR layers spec defines that the textures that are returned from the binding are always cleared to opaque black.
This feature is hard to implement without incurring GPU overhead especially when dealing with multiple layers.

Could we introduce an option to skip this behavior and leave it up to the experience to clear its buffers?

/agenda Add option to skip the clearing of textures

There was a request that it might be better to name the flag so that the default (FALSE) implies what is desired. The initial proposal was for 'clearOnAccess' with the default value of TRUE. A field with a default of FALSE could be called 'alwaysClear'.

Removing label, because it was discussed at the last meeting, if this is in error or more discussion is needed please reuse '/agenda'

@toji I looked at various idl interfaces in chromium and there are many that initialize dictionary values to true.
I prefer to keep it as "true" because it's less confusing. (False would require a double negative)

/agenda can we keep clearOnAccess?