@Generated(value="org.realityforge.webtack")
@ApiStatus.Experimental
@JsType(isNative=true,
namespace="<global>",
name="GPUCanvasContext")
public class GPUCanvasContext
extends JsObject
implements OffscreenRenderingContext, RenderingContext
| Modifier | Constructor and Description |
|---|---|
protected |
GPUCanvasContext() |
| Modifier and Type | Method and Description |
|---|---|
Canvas |
canvas() |
void |
configure(GPUCanvasConfiguration configuration) |
@JsNonNull GPUTexture |
getCurrentTexture() |
@JsNonNull java.lang.String |
getPreferredFormat(GPUAdapter adapter) |
void |
unconfigure() |
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@JsProperty(name="canvas") @Nonnull public Canvas canvas()
public void configure(@Nonnull
GPUCanvasConfiguration configuration)
public @JsNonNull GPUTexture getCurrentTexture()
@GPUTextureFormat public @JsNonNull java.lang.String getPreferredFormat(@Nonnull GPUAdapter adapter)
public void unconfigure()