@Generated(value="org.realityforge.webtack")
@ApiStatus.Experimental
@JsType(isNative=true,
namespace="<global>",
name="GPUDevice")
public class GPUDevice
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
@JsNonNull StringOrUndefinedUnion |
label |
@JsNullable GPUUncapturedErrorEventHandler |
onuncapturederror |
| Modifier | Constructor and Description |
|---|---|
protected |
GPUDevice() |
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, 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_, valuespublic @JsNonNull StringOrUndefinedUnion label
public @JsNullable GPUUncapturedErrorEventHandler onuncapturederror
@JsProperty(name="features") @Nonnull public GPUSupportedFeatures features()
@JsProperty(name="limits") @Nonnull public GPUSupportedLimits limits()
@JsProperty(name="lost") @Nonnull public Promise<GPUDeviceLostInfo> lost()
@JsProperty(name="queue") @Nonnull public GPUQueue queue()
public @JsNonNull GPUBindGroup createBindGroup(@Nonnull GPUBindGroupDescriptor descriptor)
public @JsNonNull GPUBindGroupLayout createBindGroupLayout(@Nonnull GPUBindGroupLayoutDescriptor descriptor)
public @JsNonNull GPUBuffer createBuffer(@Nonnull GPUBufferDescriptor descriptor)
public @JsNonNull GPUCommandEncoder createCommandEncoder(@Nonnull GPUCommandEncoderDescriptor descriptor)
public @JsNonNull GPUCommandEncoder createCommandEncoder()
public @JsNonNull GPUComputePipeline createComputePipeline(@Nonnull GPUComputePipelineDescriptor descriptor)
public @JsNonNull Promise<GPUComputePipeline> createComputePipelineAsync(@Nonnull GPUComputePipelineDescriptor descriptor)
public @JsNonNull GPUPipelineLayout createPipelineLayout(@Nonnull GPUPipelineLayoutDescriptor descriptor)
public @JsNonNull GPUQuerySet createQuerySet(@Nonnull GPUQuerySetDescriptor descriptor)
public @JsNonNull GPURenderBundleEncoder createRenderBundleEncoder(@Nonnull GPURenderBundleEncoderDescriptor descriptor)
public @JsNonNull GPURenderPipeline createRenderPipeline(@Nonnull GPURenderPipelineDescriptor descriptor)
public @JsNonNull Promise<GPURenderPipeline> createRenderPipelineAsync(@Nonnull GPURenderPipelineDescriptor descriptor)
public @JsNonNull GPUSampler createSampler(@Nonnull GPUSamplerDescriptor descriptor)
public @JsNonNull GPUSampler createSampler()
public @JsNonNull GPUShaderModule createShaderModule(@Nonnull GPUShaderModuleDescriptor descriptor)
public @JsNonNull GPUTexture createTexture(@Nonnull GPUTextureDescriptor descriptor)
public void destroy()
public @JsNonNull GPUExternalTexture importExternalTexture(@Nonnull GPUExternalTextureDescriptor descriptor)
public void pushErrorScope(@GPUErrorFilter @Nonnull java.lang.String filter)
@JsOverlay
public final void addUncapturederrorListener(@Nonnull
GPUUncapturedErrorEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addUncapturederrorListener(@Nonnull
GPUUncapturedErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void addUncapturederrorListener(@Nonnull
GPUUncapturedErrorEventListener callback)
@JsOverlay
public final void removeUncapturederrorListener(@Nonnull
GPUUncapturedErrorEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeUncapturederrorListener(@Nonnull
GPUUncapturedErrorEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeUncapturederrorListener(@Nonnull
GPUUncapturedErrorEventListener callback)