1
- export const beginRenderPassImpl = ( commandEncoder ) => ( descriptor ) => ( ) =>
1
+ export const beginRenderPassImpl = ( commandEncoder ) => ( descriptor ) =>
2
2
commandEncoder . beginRenderPass ( descriptor ) ;
3
- export const beginComputePassImpl = ( commandEncoder ) => ( descriptor ) => ( ) =>
3
+ export const beginComputePassImpl = ( commandEncoder ) => ( descriptor ) =>
4
4
commandEncoder . beginComputePass ( descriptor ) ;
5
5
export const copyBufferToBufferImpl =
6
6
( commandEncoder ) =>
7
- ( source ) =>
8
- ( sourceOffset ) =>
9
- ( destination ) =>
10
- ( destinationOffset ) =>
11
- ( size ) =>
12
- ( ) =>
7
+ ( source , sourceOffset , destination , destinationOffset , size ) =>
13
8
commandEncoder . copyBufferToBuffer (
14
9
source ,
15
10
sourceOffset ,
@@ -18,36 +13,28 @@ export const copyBufferToBufferImpl =
18
13
size
19
14
) ;
20
15
export const copyBufferToTextureImpl =
21
- ( commandEncoder ) => ( source ) => ( destination ) => ( copySize ) => ( ) =>
16
+ ( commandEncoder ) => ( source , destination , copySize ) =>
22
17
commandEncoder . copyBufferToTexture ( source , destination , copySize ) ;
23
18
export const copyTextureToBufferImpl =
24
- ( commandEncoder ) => ( source ) => ( destination ) => ( copySize ) => ( ) =>
19
+ ( commandEncoder ) => ( source , destination , copySize ) =>
25
20
commandEncoder . copyTextureToBuffer ( source , destination , copySize ) ;
26
21
export const copyTextureToTextureImpl =
27
- ( commandEncoder ) => ( source ) => ( destination ) => ( copySize ) => ( ) =>
22
+ ( commandEncoder ) => ( source , destination , copySize ) =>
28
23
commandEncoder . copyTextureToTexture ( source , destination , copySize ) ;
29
- export const clearBufferImpl = ( commandEncoder ) => ( buffer ) => ( ) =>
30
- commandEncoder . clearBuffer ( buffere ) ;
31
- export const clearBufferWithOffsetImpl =
32
- ( commandEncoder ) => ( buffer ) => ( offset ) => ( ) =>
33
- commandEncoder . clearBuffer ( buffer , offset ) ;
34
- export const clearBufferWithSizeImpl =
35
- ( commandEncoder ) => ( buffer ) => ( size ) => ( ) =>
36
- commandEncoder . clearBuffer ( buffer , undefined , size ) ;
24
+ export const clearBufferImpl = ( commandEncoder ) => ( buffer ) =>
25
+ commandEncoder . clearBuffer ( buffer ) ;
26
+ export const clearBufferWithOffsetImpl = ( commandEncoder ) => ( buffer , offset ) =>
27
+ commandEncoder . clearBuffer ( buffer , offset ) ;
28
+ export const clearBufferWithSizeImpl = ( commandEncoder ) => ( buffer , size ) =>
29
+ commandEncoder . clearBuffer ( buffer , undefined , size ) ;
37
30
export const clearBufferWithOffsetAndSizeImpl =
38
- ( commandEncoder ) => ( buffer ) => ( offset ) => ( size ) => ( ) =>
31
+ ( commandEncoder ) => ( buffer , offset , size ) =>
39
32
commandEncoder . clearBuffer ( buffer , offset , size ) ;
40
- export const writeTimestampImpl =
41
- ( commandEncoder ) => ( querySet ) => ( queryIndex ) => ( ) =>
42
- commandEncoder . writeTimestamp ( querySet , queryIndex ) ;
33
+ export const writeTimestampImpl = ( commandEncoder ) => ( querySet , queryIndex ) =>
34
+ commandEncoder . writeTimestamp ( querySet , queryIndex ) ;
43
35
export const resolveQuerySetImpl =
44
36
( commandEncoder ) =>
45
- ( querySet ) =>
46
- ( firstQuery ) =>
47
- ( queryCount ) =>
48
- ( destination ) =>
49
- ( destinationOffset ) =>
50
- ( ) =>
37
+ ( querySet , firstQuery , queryCount , destination , destinationOffset ) =>
51
38
commandEncoder . resolveQuerySet (
52
39
querySet ,
53
40
firstQuery ,
@@ -56,9 +43,9 @@ export const resolveQuerySetImpl =
56
43
destinationOffset
57
44
) ;
58
45
export const finishImpl = ( commandEncoder ) => ( ) => commandEncoder . finish ( ) ;
59
- export const pushDebugGroupImpl = ( commandEncoder ) => ( groupLabel ) => ( ) =>
46
+ export const pushDebugGroupImpl = ( commandEncoder ) => ( groupLabel ) =>
60
47
commandEncoder . pushDebugGroup ( groupLabel ) ;
61
48
export const popDebugGroupImpl = ( commandEncoder ) => ( ) =>
62
49
commandEncoder . popDebugGroup ( ) ;
63
- export const insertDebugMarkerImpl = ( commandEncoder ) => ( markerLabel ) => ( ) =>
50
+ export const insertDebugMarkerImpl = ( commandEncoder ) => ( markerLabel ) =>
64
51
commandEncoder . insertDebugMarker ( markerLabel ) ;
0 commit comments