Skip to content

Commit 02aeeff

Browse files
committed
[webxr] Add XRLayerQuality
1 parent 1ec9eca commit 02aeeff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

types/webxr/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ interface XRCompositionLayer extends XRLayer {
878878
blendTextureSourceAlpha: boolean;
879879
chromaticAberrationCorrection?: boolean | undefined;
880880
readonly mipLevels: number;
881+
quality: XRLayerQuality;
881882
readonly needsRedraw: boolean;
882883
destroy(): void;
883884

@@ -916,6 +917,8 @@ type XRTextureType = "texture" | "texture-array";
916917

917918
type XRLayerLayout = "default" | "mono" | "stereo" | "stereo-left-right" | "stereo-top-bottom";
918919

920+
type XRLayerQuality = "default" | "text-optimized" | "graphics-optimized";
921+
919922
interface XRProjectionLayerInit {
920923
scaleFactor?: number | undefined;
921924
textureType?: XRTextureType | undefined;

0 commit comments

Comments
 (0)