diff options
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/GPUCommandEncoder.webidl | 68 | ||||
-rw-r--r-- | components/script/dom/webidls/GPUTexture.webidl | 19 |
2 files changed, 50 insertions, 37 deletions
diff --git a/components/script/dom/webidls/GPUCommandEncoder.webidl b/components/script/dom/webidls/GPUCommandEncoder.webidl index 6892c5393af..00a8e1ad537 100644 --- a/components/script/dom/webidls/GPUCommandEncoder.webidl +++ b/components/script/dom/webidls/GPUCommandEncoder.webidl @@ -15,24 +15,33 @@ interface GPUCommandEncoder { GPUSize64 destinationOffset, GPUSize64 size); - // void copyBufferToTexture( - // GPUBufferCopyView source, - // GPUTextureCopyView destination, - // GPUExtent3D copySize); - - // void copyTextureToBuffer( - // GPUTextureCopyView source, - // GPUBufferCopyView destination, - // GPUExtent3D copySize); - - // void copyTextureToTexture( - // GPUTextureCopyView source, - // GPUTextureCopyView destination, - // GPUExtent3D copySize); - - // void pushDebugGroup(DOMString groupLabel); - // void popDebugGroup(); - // void insertDebugMarker(DOMString markerLabel); + void copyBufferToTexture( + GPUBufferCopyView source, + GPUTextureCopyView destination, + GPUExtent3D copySize); + + void copyTextureToBuffer( + GPUTextureCopyView source, + GPUBufferCopyView destination, + GPUExtent3D copySize); + + void copyTextureToTexture( + GPUTextureCopyView source, + GPUTextureCopyView destination, + GPUExtent3D copySize); + + //void pushDebugGroup(USVString groupLabel); + //void popDebugGroup(); + //void insertDebugMarker(USVString markerLabel); + + //void writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex); + + //void resolveQuerySet( + // GPUQuerySet querySet, + // GPUSize32 firstQuery, + // GPUSize32 queryCount, + // GPUBuffer destination, + // GPUSize64 destinationOffset); GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {}); }; @@ -88,3 +97,26 @@ dictionary GPUColorDict { required double a; }; typedef (sequence<double> or GPUColorDict) GPUColor; + +dictionary GPUTextureDataLayout { + GPUSize64 offset = 0; + required GPUSize32 bytesPerRow; + GPUSize32 rowsPerImage = 0; +}; + +dictionary GPUBufferCopyView : GPUTextureDataLayout { + required GPUBuffer buffer; +}; + +dictionary GPUTextureCopyView { + required GPUTexture texture; + GPUIntegerCoordinate mipLevel = 0; + GPUOrigin3D origin = {}; +}; + +dictionary GPUOrigin3DDict { + GPUIntegerCoordinate x = 0; + GPUIntegerCoordinate y = 0; + GPUIntegerCoordinate z = 0; +}; +typedef (sequence<GPUIntegerCoordinate> or GPUOrigin3DDict) GPUOrigin3D; diff --git a/components/script/dom/webidls/GPUTexture.webidl b/components/script/dom/webidls/GPUTexture.webidl index 840b0f17609..1058e69d1d4 100644 --- a/components/script/dom/webidls/GPUTexture.webidl +++ b/components/script/dom/webidls/GPUTexture.webidl @@ -92,22 +92,3 @@ dictionary GPUExtent3DDict { }; typedef [EnforceRange] unsigned long GPUIntegerCoordinate; typedef (sequence<GPUIntegerCoordinate> or GPUExtent3DDict) GPUExtent3D; - -dictionary GPUTextureCopyView { - required GPUTexture texture; - GPUIntegerCoordinate mipLevel = 0; - GPUOrigin3D origin = {}; -}; - -dictionary GPUTextureDataLayout { - GPUSize64 offset = 0; - required GPUSize32 bytesPerRow; - GPUSize32 rowsPerImage = 0; -}; - -dictionary GPUOrigin3DDict { - GPUIntegerCoordinate x = 0; - GPUIntegerCoordinate y = 0; - GPUIntegerCoordinate z = 0; -}; -typedef (sequence<GPUIntegerCoordinate> or GPUOrigin3DDict) GPUOrigin3D; |