Definition
WebGL Specification defines WebGLContextAttributes
dictionary WebGLContextAttributes {
boolean alpha = true;
boolean depth = true;
boolean stencil = false;
boolean antialias = true;
boolean premultipliedAlpha = true;
boolean preserveDrawingBuffer = false;
WebGLPowerPreference powerPreference = "default";
boolean failIfMajorPerformanceCaveat = false;
boolean desynchronized = false;
};
This dictionary is extended in the following specifications:
- WebXR Device API
partial dictionary WebGLContextAttributes { boolean xrCompatible = false; };
Consolidated IDL (across partials)
dictionary WebGLContextAttributes {
boolean alpha = true;
boolean depth = true;
boolean stencil = false;
boolean antialias = true;
boolean premultipliedAlpha = true;
boolean preserveDrawingBuffer = false;
WebGLPowerPreference powerPreference = "default";
boolean failIfMajorPerformanceCaveat = false;
boolean desynchronized = false;
boolean xrCompatible = false;
};
Referring IDL interfaces/dictionaries
Referring specifications
- WebXR Device API refers to
WebGLContextAttributes