-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPUCommandEncoder.js
More file actions
73 lines (73 loc) Β· 2.2 KB
/
GPUCommandEncoder.js
File metadata and controls
73 lines (73 loc) Β· 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export const beginRenderPassImpl = (commandEncoder, descriptor) =>
commandEncoder.beginRenderPass(descriptor);
export const beginComputePassImpl = (commandEncoder, descriptor) =>
commandEncoder.beginComputePass(descriptor);
export const copyBufferToBufferImpl = (
commandEncoder,
source,
sourceOffset,
destination,
destinationOffset,
size
) =>
commandEncoder.copyBufferToBuffer(
source,
sourceOffset,
destination,
destinationOffset,
size
);
export const copyBufferToTextureImpl = (
commandEncoder,
source,
destination,
copySize
) => commandEncoder.copyBufferToTexture(source, destination, copySize);
export const copyTextureToBufferImpl = (
commandEncoder,
source,
destination,
copySize
) => commandEncoder.copyTextureToBuffer(source, destination, copySize);
export const copyTextureToTextureImpl = (
commandEncoder,
source,
destination,
copySize
) => commandEncoder.copyTextureToTexture(source, destination, copySize);
export const clearBufferImpl = (commandEncoder, buffer) =>
commandEncoder.clearBuffer(buffer);
export const clearBufferWithOffsetImpl = (commandEncoder, buffer, offset) =>
commandEncoder.clearBuffer(buffer, offset);
export const clearBufferWithSizeImpl = (commandEncoder, buffer, size) =>
commandEncoder.clearBuffer(buffer, undefined, size);
export const clearBufferWithOffsetAndSizeImpl = (
commandEncoder,
buffer,
offset,
size
) => commandEncoder.clearBuffer(buffer, offset, size);
export const writeTimestampImpl = (commandEncoder, querySet, queryIndex) =>
commandEncoder.writeTimestamp(querySet, queryIndex);
export const resolveQuerySetImpl = (
commandEncoder,
querySet,
firstQuery,
queryCount,
destination,
destinationOffset
) =>
commandEncoder.resolveQuerySet(
querySet,
firstQuery,
queryCount,
destination,
destinationOffset
);
export const finishImpl = commandEncoder => commandEncoder.finish();
export const pushDebugGroupImpl = (commandEncoder, groupLabel) =>
commandEncoder.pushDebugGroup(groupLabel);
export const popDebugGroupImpl = commandEncoder =>
commandEncoder.popDebugGroup();
export const insertDebugMarkerImpl = (commandEncoder, markerLabel) =>
commandEncoder.insertDebugMarker(markerLabel);