2
0
Эх сурвалжийг харах

WebGPU.js: Added GPUShaderStage polyfill.

Mr.doob 3 жил өмнө
parent
commit
f2c5357b09

+ 6 - 0
examples/jsm/capabilities/WebGPU.js

@@ -1,3 +1,9 @@
+if ( window.GPUShaderStage === undefined ) {
+
+	window.GPUShaderStage = { VERTEX: 1, FRAGMENT: 2, COMPUTE: 4 };
+
+}
+
 class WebGPU {
 
 	static isAvailable() {