Skip to content

Commit 984b00d

Browse files
s-rigaudSamuel Rigaud
and
Samuel Rigaud
authored
Backend: Move trackTimestamp to parent class (#30714)
Co-authored-by: Samuel Rigaud <[email protected]>
1 parent 04a61dc commit 984b00d

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

src/renderers/common/Backend.js

+8
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ class Backend {
6868
'compute': null
6969
};
7070

71+
/**
72+
* Whether to track timestamps with a Timestamp Query API or not.
73+
*
74+
* @type {boolean}
75+
* @default false
76+
*/
77+
this.trackTimestamp = ( parameters.trackTimestamp === true );
78+
7179
}
7280

7381
/**

src/renderers/webgl-fallback/WebGLBackend.js

-8
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ class WebGLBackend extends Backend {
167167
*/
168168
this.parallel = null;
169169

170-
/**
171-
* Whether to track timestamps with a Timestamp Query API or not.
172-
*
173-
* @type {boolean}
174-
* @default false
175-
*/
176-
this.trackTimestamp = ( parameters.trackTimestamp === true );
177-
178170
/**
179171
* A reference to the current render context.
180172
*

src/renderers/webgpu/WebGPUBackend.js

-8
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ class WebGPUBackend extends Backend {
6666

6767
this.parameters.requiredLimits = ( parameters.requiredLimits === undefined ) ? {} : parameters.requiredLimits;
6868

69-
/**
70-
* Whether to track timestamps with a Timestamp Query API or not.
71-
*
72-
* @type {boolean}
73-
* @default false
74-
*/
75-
this.trackTimestamp = ( parameters.trackTimestamp === true );
76-
7769
/**
7870
* A reference to the device.
7971
*

0 commit comments

Comments
 (0)