@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 |
|---|---|
HTMLCanvasElementOrOffscreenCanvasUnion |
canvas() |
void |
configure(GPUCanvasConfiguration configuration) |
GPUTexture |
getCurrentTexture() |
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 HTMLCanvasElementOrOffscreenCanvasUnion canvas()
public void configure(@Nonnull
GPUCanvasConfiguration configuration)
@Nonnull public GPUTexture getCurrentTexture()
@GPUTextureFormat @Nonnull public java.lang.String getPreferredFormat(@Nonnull GPUAdapter adapter)
public void unconfigure()