Popov72 пре 5 година
родитељ
комит
ea6e568e90
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      src/LibDeclarations/webgpu.d.ts

+ 5 - 5
src/LibDeclarations/webgpu.d.ts

@@ -130,7 +130,7 @@ declare class GPUDevice extends EventTarget implements GPUObjectBase {
     readonly lost: Promise<GPUDeviceLostInfo>;
     readonly lost: Promise<GPUDeviceLostInfo>;
     pushErrorScope(filter: GPUErrorFilter): void;
     pushErrorScope(filter: GPUErrorFilter): void;
     popErrorScope(): Promise<GPUError | undefined>;
     popErrorScope(): Promise<GPUError | undefined>;
-    onuncapturederror: EventHandler | undefined;
+    onuncapturederror: Event | undefined;
 }
 }
 
 
 declare class GPUBuffer implements GPUObjectBase {
 declare class GPUBuffer implements GPUObjectBase {
@@ -147,7 +147,7 @@ declare class GPUBuffer implements GPUObjectBase {
 interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
 interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
     size: GPUSize64;
     size: GPUSize64;
     usage: GPUBufferUsageFlags;
     usage: GPUBufferUsageFlags;
-    mappedAtCreation: boolean = false;
+    mappedAtCreation: boolean; /* default=false */
 }
 }
 
 
 type GPUBufferUsageFlags = number;
 type GPUBufferUsageFlags = number;
@@ -489,7 +489,7 @@ interface GPUMultisampleState {
     alphaToCoverageEnabled?: boolean; /* default=false */
     alphaToCoverageEnabled?: boolean; /* default=false */
 }
 }
 
 
-interface GPUFragmentState implements GPUProgrammableStage {
+interface GPUFragmentState extends GPUProgrammableStage {
     targets: GPUColorTargetState[];
     targets: GPUColorTargetState[];
 }
 }
 
 
@@ -541,8 +541,8 @@ interface GPUDepthStencilState {
     depthWriteEnabled?: boolean; /* default=false */
     depthWriteEnabled?: boolean; /* default=false */
     depthCompare?: GPUCompareFunction; /* default="always" */
     depthCompare?: GPUCompareFunction; /* default="always" */
 
 
-    stencilFront?: GPUStencilFaceState;
-    stencilBack?: GPUStencilFaceState;
+    stencilFront?: GPUStencilStateFace;
+    stencilBack?: GPUStencilStateFace;
 
 
     stencilReadMask?: GPUStencilValue; /* default=0xFFFFFFFF */
     stencilReadMask?: GPUStencilValue; /* default=0xFFFFFFFF */
     stencilWriteMask?: GPUStencilValue; /* default=0xFFFFFFFF */
     stencilWriteMask?: GPUStencilValue; /* default=0xFFFFFFFF */