Popov72 4 лет назад
Родитель
Сommit
72d5abde65

+ 0 - 3
src/Engines/engineFeatures.ts

@@ -6,9 +6,6 @@ export interface EngineFeatures {
     /** Indicates that the engine support rendering to as well as copying to lod float textures */
     supportRenderAndCopyToLodForFloatTextures: boolean;
 
-    /** Indicates that framebuffers have Y going from top to bottom for increasing y values */
-    framebuffersHaveYTopToBottom: boolean;
-
     /** Indicates that the engine support handling depth/stencil textures */
     supportDepthStencilTexture: boolean;
 

+ 19 - 0
src/Engines/nativeEngine.ts

@@ -799,6 +799,25 @@ export class NativeEngine extends Engine {
             maxMSAASamples: 1
         };
 
+        this._features = {
+            forceBitmapOverHTMLImageElement: false,
+            supportRenderAndCopyToLodForFloatTextures: false,
+            supportDepthStencilTexture: false,
+            supportShadowSamplers: false,
+            uniformBufferHardCheckMatrix: false,
+            allowTexturePrefiltering: false,
+            trackUbosInFrame: false,
+            supportCSM: false,
+            basisNeedsPOT: false,
+            support3DTextures: false,
+            needTypeSuffixInShaderConstants: false,
+            supportMSAA: false,
+            supportSSAO2: false,
+            supportExtendedTextureFormats: false,
+            supportSwitchCaseInShader: false,
+            _collectUbosUpdatedInFrame: false,
+        };
+
         Tools.Log("Babylon Native (v" + Engine.Version + ") launched");
 
         Tools.LoadScript = function (scriptUrl, onSuccess, onError, scriptId) {

+ 19 - 0
src/Engines/nullEngine.ts

@@ -143,6 +143,25 @@ export class NullEngine extends Engine {
             blendMinMax: false
         };
 
+        this._features = {
+            forceBitmapOverHTMLImageElement: false,
+            supportRenderAndCopyToLodForFloatTextures: false,
+            supportDepthStencilTexture: false,
+            supportShadowSamplers: false,
+            uniformBufferHardCheckMatrix: false,
+            allowTexturePrefiltering: false,
+            trackUbosInFrame: false,
+            supportCSM: false,
+            basisNeedsPOT: false,
+            support3DTextures: false,
+            needTypeSuffixInShaderConstants: false,
+            supportMSAA: false,
+            supportSSAO2: false,
+            supportExtendedTextureFormats: false,
+            supportSwitchCaseInShader: false,
+            _collectUbosUpdatedInFrame: false,
+        };
+
         Logger.Log(`Babylon.js v${Engine.Version} - Null engine`);
 
         // Wrappers

+ 0 - 1
src/Engines/thinEngine.ts

@@ -1065,7 +1065,6 @@ export class ThinEngine {
         this._features = {
             forceBitmapOverHTMLImageElement: false,
             supportRenderAndCopyToLodForFloatTextures: this._webGLVersion !== 1,
-            framebuffersHaveYTopToBottom: false,
             supportDepthStencilTexture: this._webGLVersion !== 1,
             supportShadowSamplers: this._webGLVersion !== 1,
             uniformBufferHardCheckMatrix: false,

+ 0 - 1
src/Engines/webgpuEngine.ts

@@ -460,7 +460,6 @@ export class WebGPUEngine extends Engine {
         this._features = {
             forceBitmapOverHTMLImageElement: true,
             supportRenderAndCopyToLodForFloatTextures: true,
-            framebuffersHaveYTopToBottom: true,
             supportDepthStencilTexture: true,
             supportShadowSamplers: true,
             uniformBufferHardCheckMatrix: true,