Просмотр исходного кода

Removed the CPUREADABLE flag from textures and meshes as it's no longer used

BearishSun 9 лет назад
Родитель
Сommit
e99d8c1dd0

+ 0 - 2
Source/BansheeCore/Include/BsCommonTypes.h

@@ -192,8 +192,6 @@ namespace bs
 		 * Signifies that you will modify this buffer fairly often (e.g. every frame). Mutually exclusive with GBU_STATIC. 
 		 */
 		GBU_DYNAMIC = 0x02,
-		/** Signifies that the buffer's data on the GPU can be read by the CPU. */
-		GBU_READABLE = 0x04
 	};
 
 	/** Types of generic GPU buffers that may be attached to GPU programs. */

+ 0 - 1
Source/BansheeCore/Include/BsMeshBase.h

@@ -23,7 +23,6 @@ namespace bs
 		MU_DYNAMIC, /**< Specify for a mesh that is often updated from the CPU. */
 		/** All mesh data will also be cached in CPU memory, making it available for fast read access from the CPU. */
 		MU_CPUCACHED = 0x1000, 
-		MU_CPUREADABLE = 0x2000 /**< Allows the CPU to directly read the mesh data buffers from the GPU. */
 	};
 
 	/** Properties of a Mesh. Shared between sim and core thread versions of a Mesh. */

+ 0 - 7
Source/BansheeCore/Include/BsMeshImportOptions.h

@@ -70,12 +70,6 @@ namespace bs
 		/**	Retrieves whether the texture data is also stored in CPU memory. */
 		bool getCPUCached() const { return mCPUCached; }
 
-		/**	Sets whether the texture data can be read directly from the GPU. */
-		void setCPUReadable(bool readable) { mCPUReadable = readable; }
-
-		/**	Retrieves whether the texture data can be read directly from the GPU. */
-		bool getCPUReadable() const { return mCPUReadable; }
-
 		/**	Sets a value that controls should mesh normals be imported if available. */
 		void setImportNormals(bool import) { mImportNormals = import; }
 
@@ -181,7 +175,6 @@ namespace bs
 		bool mReduceKeyFrames;
 		bool mImportRootMotion;
 		float mImportScale;
-		bool mCPUReadable;
 		CollisionMeshType mCollisionMeshType;
 		Vector<AnimationSplitInfo> mAnimationSplits;
 		Vector<ImportedAnimationEvents> mAnimationEvents;

+ 0 - 1
Source/BansheeCore/Include/BsMeshImportOptionsRTTI.h

@@ -30,7 +30,6 @@ namespace bs
 			BS_RTTI_MEMBER_PLAIN(mReduceKeyFrames, 9)
 			BS_RTTI_MEMBER_REFL_ARRAY(mAnimationEvents, 10)
 			BS_RTTI_MEMBER_PLAIN(mImportRootMotion, 11)
-			BS_RTTI_MEMBER_PLAIN(mCPUReadable, 12)
 		BS_END_RTTI_MEMBERS
 	public:
 		MeshImportOptionsRTTI()

+ 2 - 15
Source/BansheeCore/Include/BsMeshRTTI.h

@@ -30,23 +30,10 @@ namespace bs
 		SPtr<MeshData> getMeshData(Mesh* obj) 
 		{ 
 			SPtr<MeshData> meshData = obj->allocBuffer();
-			int usage = obj->mUsage;
 
-			if((usage & MU_CPUREADABLE) || BS_EDITOR_BUILD)
-			{
-				obj->readData(meshData);
-				gCoreThread().submit(true);
+			obj->readData(meshData);
+			gCoreThread().submit(true);
 
-				return meshData;
-			}
-
-			if(usage & MU_CPUCACHED)
-			{
-				obj->readCachedData(*meshData);
-				return meshData;
-			}
-
-			LOGERR("Attempting to save a mesh that isn't flagged with either MU_CPUCACHED OR MU_GPUREADABLE flags.");
 			return meshData;
 		}
 

+ 0 - 7
Source/BansheeCore/Include/BsTextureImportOptions.h

@@ -33,9 +33,6 @@ namespace bs
 		/** Sets whether the texture data is also stored in main memory, available for fast CPU access. */
 		void setCPUCached(bool cached) { mCPUCached = cached; }
 
-		/** Sets whether the texture data can be read directly from the GPU. */
-		void setCPUReadable(bool readable) { mCPUReadable = readable; }
-
 		/** 
 		 * Sets whether the texture data should be treated as if its in sRGB (gamma) space. Such texture will be converted 
 		 * by hardware to linear space before use on the GPU.
@@ -57,9 +54,6 @@ namespace bs
 		/** Retrieves whether the texture data is also stored in main memory, available for fast CPU access. */
 		bool getCPUCached() const { return mCPUCached; }
 
-		/** Retrieves whether the texture data can be read directly from the GPU. */
-		bool getCPUReadable() const { return mCPUReadable; }
-
 		/**
 		 * Retrieves whether the texture data should be treated as if its in sRGB (gamma) space. Such texture will be 
 		 * converted by hardware to linear space before use on the GPU.
@@ -81,7 +75,6 @@ namespace bs
 		PixelFormat mFormat;
 		bool mGenerateMips;
 		UINT32 mMaxMip;
-		bool mCPUReadable;
 		bool mCPUCached;
 		bool mSRGB;
 	};

+ 0 - 4
Source/BansheeCore/Include/BsTextureImportOptionsRTTI.h

@@ -28,9 +28,6 @@ namespace bs
 		bool& getCPUCached(TextureImportOptions* obj) { return obj->mCPUCached; }
 		void setCPUCached(TextureImportOptions* obj, bool& value) { obj->mCPUCached = value; }
 
-		bool& getCPUReadable(TextureImportOptions* obj) { return obj->mCPUReadable; }
-		void setCPUReadable(TextureImportOptions* obj, bool& value) { obj->mCPUReadable = value; }
-
 		bool& getSRGB(TextureImportOptions* obj) { return obj->mSRGB; }
 		void setSRGB(TextureImportOptions* obj, bool& value) { obj->mSRGB = value; }
 
@@ -42,7 +39,6 @@ namespace bs
 			addPlainField("mMaxMip", 2, &TextureImportOptionsRTTI::getMaxMip, &TextureImportOptionsRTTI::setMaxMip);
 			addPlainField("mCPUCached", 3, &TextureImportOptionsRTTI::getCPUCached, &TextureImportOptionsRTTI::setCPUCached);
 			addPlainField("mSRGB", 4, &TextureImportOptionsRTTI::getSRGB, &TextureImportOptionsRTTI::setSRGB);
-			addPlainField("mCPUReadable", 5, &TextureImportOptionsRTTI::getCPUReadable, &TextureImportOptionsRTTI::setCPUReadable);
 		}
 
 		const String& getRTTIName() override

+ 2 - 16
Source/BansheeCore/Include/BsTextureRTTI.h

@@ -57,23 +57,9 @@ namespace bs
 
 			SPtr<PixelData> pixelData = obj->mProperties.allocBuffer(face, mipmap);
 
-			int usage = obj->getProperties().getUsage();
+			obj->readData(pixelData, face, mipmap);
+			gCoreThread().submit(true);
 
-			if (usage & TU_CPUREADABLE || BS_EDITOR_BUILD)
-			{
-				obj->readData(pixelData, face, mipmap);
-				gCoreThread().submit(true);
-
-				return pixelData;
-			}
-
-			if(usage & TU_CPUCACHED)
-			{
-				obj->readCachedData(*pixelData, face, mipmap);
-				return pixelData;
-			}
-
-			LOGERR("Attempting to save a texture that isn't flagged with either TU_CPUCACHED OR TU_GPUREADABLE flags.");
 			return pixelData;
 		}
 

+ 0 - 9
Source/BansheeCore/Source/BsMesh.cpp

@@ -38,10 +38,7 @@ namespace bs
 		THROW_IF_NOT_CORE_THREAD;
 
 		bool isDynamic = (mUsage & MU_DYNAMIC) != 0;
-		bool isGpuReadable = (mUsage & MU_CPUREADABLE) != 0 || BS_EDITOR_BUILD;
-
 		int usage = isDynamic ? GBU_DYNAMIC : GBU_STATIC;
-		usage |= isGpuReadable ? GBU_READABLE : 0;
 
 		INDEX_BUFFER_DESC ibDesc;
 		ibDesc.indexType = mIndexType;
@@ -216,12 +213,6 @@ namespace bs
 	{
 		THROW_IF_NOT_CORE_THREAD;
 
-		if ((mUsage & MU_CPUREADABLE) == 0 && !BS_EDITOR_BUILD)
-		{
-			LOGERR("Attempting to read GPU data from a mesh that is created without a CPU readable flag.");
-			return;
-		}
-
 		IndexType indexType = IT_32BIT;
 		if (mIndexBuffer)
 			indexType = mIndexBuffer->getProperties().getType();

+ 1 - 1
Source/BansheeCore/Source/BsMeshImportOptions.cpp

@@ -27,7 +27,7 @@ namespace bs
 
 	MeshImportOptions::MeshImportOptions()
 		: mCPUCached(false), mImportNormals(true), mImportTangents(true), mImportBlendShapes(false), mImportSkin(false)
-		, mImportAnimation(false), mReduceKeyFrames(true), mImportRootMotion(false), mImportScale(1.0f), mCPUReadable(false)
+		, mImportAnimation(false), mReduceKeyFrames(true), mImportRootMotion(false), mImportScale(1.0f)
 		, mCollisionMeshType(CollisionMeshType::None)
 	{ }
 

+ 0 - 6
Source/BansheeCore/Source/BsTexture.cpp

@@ -109,12 +109,6 @@ namespace bs
 	{
 		THROW_IF_NOT_CORE_THREAD;
 
-		if ((mProperties.getUsage() & TU_CPUREADABLE) == 0 && !BS_EDITOR_BUILD)
-		{
-			LOGERR("Attempting to read GPU data from a texture that is created without a CPU readable flag.");
-			return;
-		}
-
 		PixelData& pixelData = static_cast<PixelData&>(dest);
 
 		UINT32 mipWidth, mipHeight, mipDepth;

+ 1 - 1
Source/BansheeCore/Source/BsTextureImportOptions.cpp

@@ -6,7 +6,7 @@
 namespace bs
 {
 	TextureImportOptions::TextureImportOptions()
-		: mFormat(PF_R8G8B8A8), mGenerateMips(false), mMaxMip(0), mCPUReadable(false), mCPUCached(false), mSRGB(false)
+		: mFormat(PF_R8G8B8A8), mGenerateMips(false), mMaxMip(0), mCPUCached(false), mSRGB(false)
 	{ }
 
 	SPtr<TextureImportOptions> TextureImportOptions::create()

+ 2 - 2
Source/BansheeEditor/Source/BsScenePicking.cpp

@@ -273,7 +273,7 @@ namespace bs
 		normalTexDesc.width = outputTextureProperties.getWidth();
 		normalTexDesc.height = outputTextureProperties.getHeight();
 		normalTexDesc.format = PF_R8G8B8A8;
-		normalTexDesc.usage = TU_RENDERTARGET | TU_CPUREADABLE;
+		normalTexDesc.usage = TU_RENDERTARGET;
 
 		SPtr<TextureCore> normalsTexture = TextureCore::create(normalTexDesc);
 		SPtr<TextureCore> depthTexture = rtt->getDepthStencilTexture();
@@ -297,7 +297,7 @@ namespace bs
 
 		gRendererUtility().setPass(mMaterials[0]);
 
-		UINT32 numEntries = renderables.size();
+		UINT32 numEntries = (UINT32)renderables.size();
 		UINT32* renderableIndices = bs_stack_alloc<UINT32>(numEntries);
 
 		UINT32 typeCounters[6];

+ 0 - 6
Source/BansheeFBXImporter/Source/BsFBXImporter.cpp

@@ -130,9 +130,6 @@ namespace bs
 		if (meshImportOptions->getCPUCached())
 			desc.usage |= MU_CPUCACHED;
 
-		if (meshImportOptions->getCPUReadable())
-			desc.usage |= MU_CPUREADABLE;
-
 		SPtr<Mesh> mesh = Mesh::_createPtr(rendererMeshData->getData(), desc);
 
 		WString fileName = filePath.getWFilename(false);
@@ -155,9 +152,6 @@ namespace bs
 		if (meshImportOptions->getCPUCached())
 			desc.usage |= MU_CPUCACHED;
 
-		if (meshImportOptions->getCPUReadable())
-			desc.usage |= MU_CPUREADABLE;
-
 		SPtr<Mesh> mesh = Mesh::_createPtr(rendererMeshData->getData(), desc);
 
 		WString fileName = filePath.getWFilename(false);

+ 0 - 3
Source/BansheeFreeImgImporter/Source/BsFreeImgImporter.cpp

@@ -153,9 +153,6 @@ namespace bs
 		if (textureImportOptions->getCPUCached())
 			usage |= TU_CPUCACHED;
 
-		if (textureImportOptions->getCPUReadable())
-			usage |= TU_CPUREADABLE;
-
 		bool sRGB = textureImportOptions->getSRGB();
 
 		TEXTURE_DESC texDesc;

+ 0 - 5
Source/MBansheeEditor/Inspectors/MeshInspector.cs

@@ -22,7 +22,6 @@ namespace BansheeEditor
         private GUIToggleField animationField;
         private GUIFloatField scaleField;
         private GUIToggleField cpuCachedField;
-        private GUIToggleField cpuReadableField;
         private GUIEnumField collisionMeshTypeField;
         private GUIToggleField keyFrameReductionField;
         private GUIToggleField rootMotionField;
@@ -56,7 +55,6 @@ namespace BansheeEditor
             animationField.Value = newImportOptions.ImportAnimation;
             scaleField.Value = newImportOptions.Scale;
             cpuCachedField.Value = newImportOptions.CPUCached;
-            cpuReadableField.Value = newImportOptions.CPUReadable;
             collisionMeshTypeField.Value = (ulong)newImportOptions.CollisionMeshType;
             keyFrameReductionField.Value = newImportOptions.KeyframeReduction;
             rootMotionField.Value = newImportOptions.ImportRootMotion;
@@ -80,7 +78,6 @@ namespace BansheeEditor
             animationField = new GUIToggleField(new LocEdString("Import Animation"));
             scaleField = new GUIFloatField(new LocEdString("Scale"));
             cpuCachedField = new GUIToggleField(new LocEdString("CPU cached"));
-            cpuReadableField = new GUIToggleField(new LocEdString("CPU readable"));
             collisionMeshTypeField = new GUIEnumField(typeof(CollisionMeshType), new LocEdString("Collision mesh"));
             keyFrameReductionField = new GUIToggleField(new LocEdString("Keyframe Reduction"));
             rootMotionField = new GUIToggleField(new LocEdString("Import root motion"));
@@ -93,7 +90,6 @@ namespace BansheeEditor
             animationField.OnChanged += x => importOptions.ImportAnimation = x;
             scaleField.OnChanged += x => importOptions.Scale = x;
             cpuCachedField.OnChanged += x => importOptions.CPUCached = x;
-            cpuReadableField.OnChanged += x => importOptions.CPUReadable = x;
             collisionMeshTypeField.OnSelectionChanged += x => importOptions.CollisionMeshType = (CollisionMeshType)x;
             keyFrameReductionField.OnChanged += x => importOptions.KeyframeReduction = x;
             rootMotionField.OnChanged += x => importOptions.ImportRootMotion = x;
@@ -107,7 +103,6 @@ namespace BansheeEditor
             Layout.AddElement(animationField);
             Layout.AddElement(scaleField);
             Layout.AddElement(cpuCachedField);
-            Layout.AddElement(cpuReadableField);
             Layout.AddElement(collisionMeshTypeField);
             Layout.AddElement(keyFrameReductionField);
             Layout.AddElement(rootMotionField);

+ 0 - 4
Source/MBansheeEditor/Inspectors/Texture2DInspector.cs

@@ -20,7 +20,6 @@ namespace BansheeEditor
         private GUIIntField maximumMipsField = new GUIIntField(new LocEdString("Maximum mipmap level"));
         private GUIToggleField srgbField = new GUIToggleField(new LocEdString("Gamma space"));
         private GUIToggleField cpuCachedField = new GUIToggleField(new LocEdString("CPU cached"));
-        private GUIToggleField cpuReadableField = new GUIToggleField(new LocEdString("CPU readable"));
         private GUIButton reimportButton = new GUIButton(new LocEdString("Reimport"));
 
         private TextureImportOptions importOptions;
@@ -37,7 +36,6 @@ namespace BansheeEditor
                 maximumMipsField.OnChanged += x => importOptions.MaxMipmapLevel = x;
                 srgbField.OnChanged += x => importOptions.IsSRGB = x;
                 cpuCachedField.OnChanged += x => importOptions.CPUCached = x;
-                cpuReadableField.OnChanged += x => importOptions.CPUReadable = x;
 
                 reimportButton.OnClick += TriggerReimport;
 
@@ -46,7 +44,6 @@ namespace BansheeEditor
                 Layout.AddElement(maximumMipsField);
                 Layout.AddElement(srgbField);
                 Layout.AddElement(cpuCachedField);
-                Layout.AddElement(cpuReadableField);
                 Layout.AddSpace(10);
 
                 GUILayout reimportButtonLayout = Layout.AddLayoutX();
@@ -65,7 +62,6 @@ namespace BansheeEditor
             maximumMipsField.Value = newImportOptions.MaxMipmapLevel;
             srgbField.Value = newImportOptions.IsSRGB;
             cpuCachedField.Value = newImportOptions.CPUCached;
-            cpuReadableField.Value = newImportOptions.CPUReadable;
 
             importOptions = newImportOptions;
 

+ 0 - 30
Source/MBansheeEditor/Windows/Library/ImportOptions.cs

@@ -67,15 +67,6 @@ namespace BansheeEditor
             set { Internal_SetCPUCached(mCachedPtr, value); }
         }
 
-        /// <summary>
-        /// Determines whether the texture data can be read directly from the GPU.
-        /// </summary>
-        public bool CPUReadable
-        {
-            get { return Internal_GetCPUReadable(mCachedPtr); }
-            set { Internal_SetCPUReadable(mCachedPtr, value); }
-        }
-
         /// <summary>
         /// Determines should the texture data be treated as if its in sRGB (gamma) space. Such texture will be converted by
         /// hardware to linear space before use on the GPU.
@@ -113,12 +104,6 @@ namespace BansheeEditor
         [MethodImpl(MethodImplOptions.InternalCall)]
         private static extern void Internal_SetCPUCached(IntPtr thisPtr, bool value);
 
-        [MethodImpl(MethodImplOptions.InternalCall)]
-        private static extern bool Internal_GetCPUReadable(IntPtr thisPtr);
-
-        [MethodImpl(MethodImplOptions.InternalCall)]
-        private static extern void Internal_SetCPUReadable(IntPtr thisPtr, bool value);
-
         [MethodImpl(MethodImplOptions.InternalCall)]
         private static extern bool Internal_GetIsSRGB(IntPtr thisPtr);
 
@@ -178,15 +163,6 @@ namespace BansheeEditor
             set { Internal_SetCPUCached(mCachedPtr, value); }
         }
 
-        /// <summary>
-        /// Determines whether the mesh data can be read directly from the GPU.
-        /// </summary>
-        public bool CPUReadable
-        {
-            get { return Internal_GetCPUReadable(mCachedPtr); }
-            set { Internal_SetCPUReadable(mCachedPtr, value); }
-        }
-
         /// <summary>
         /// Controls should mesh normals be imported if available.
         /// </summary>
@@ -301,12 +277,6 @@ namespace BansheeEditor
         [MethodImpl(MethodImplOptions.InternalCall)]
         private static extern void Internal_SetCPUCached(IntPtr thisPtr, bool value);
 
-        [MethodImpl(MethodImplOptions.InternalCall)]
-        private static extern bool Internal_GetCPUReadable(IntPtr thisPtr);
-
-        [MethodImpl(MethodImplOptions.InternalCall)]
-        private static extern void Internal_SetCPUReadable(IntPtr thisPtr, bool value);
-
         [MethodImpl(MethodImplOptions.InternalCall)]
         private static extern bool Internal_GetImportNormals(IntPtr thisPtr);
 

+ 0 - 4
Source/SBansheeEditor/Include/BsScriptImportOptions.h

@@ -72,8 +72,6 @@ namespace bs
 		static void internal_SetGenerateMipmaps(ScriptTextureImportOptions* thisPtr, bool value);
 		static UINT32 internal_GetMaxMipmapLevel(ScriptTextureImportOptions* thisPtr);
 		static void internal_SetMaxMipmapLevel(ScriptTextureImportOptions* thisPtr, UINT32 value);
-		static bool internal_GetCPUReadable(ScriptTextureImportOptions* thisPtr);
-		static void internal_SetCPUReadable(ScriptTextureImportOptions* thisPtr, bool value);
 		static bool internal_GetCPUCached(ScriptTextureImportOptions* thisPtr);
 		static void internal_SetCPUCached(ScriptTextureImportOptions* thisPtr, bool value);
 		static bool internal_GetIsSRGB(ScriptTextureImportOptions* thisPtr);
@@ -102,8 +100,6 @@ namespace bs
 		/* 								CLR HOOKS						   		*/
 		/************************************************************************/
 		static void internal_CreateInstance(MonoObject* instance);
-		static bool internal_GetCPUReadable(ScriptMeshImportOptions* thisPtr);
-		static void internal_SetCPUReadable(ScriptMeshImportOptions* thisPtr, bool value);
 		static bool internal_GetCPUCached(ScriptMeshImportOptions* thisPtr);
 		static void internal_SetCPUCached(ScriptMeshImportOptions* thisPtr, bool value);
 		static bool internal_GetImportNormals(ScriptMeshImportOptions* thisPtr);

+ 0 - 24
Source/SBansheeEditor/Source/BsScriptImportOptions.cpp

@@ -77,8 +77,6 @@ namespace bs
 		metaData.scriptClass->addInternalCall("Internal_SetGenerateMipmaps", &ScriptTextureImportOptions::internal_SetGenerateMipmaps);
 		metaData.scriptClass->addInternalCall("Internal_GetMaxMipmapLevel", &ScriptTextureImportOptions::internal_GetMaxMipmapLevel);
 		metaData.scriptClass->addInternalCall("Internal_SetMaxMipmapLevel", &ScriptTextureImportOptions::internal_SetMaxMipmapLevel);
-		metaData.scriptClass->addInternalCall("Internal_GetCPUReadable", &ScriptTextureImportOptions::internal_GetCPUReadable);
-		metaData.scriptClass->addInternalCall("Internal_SetCPUReadable", &ScriptTextureImportOptions::internal_SetCPUReadable);
 		metaData.scriptClass->addInternalCall("Internal_GetCPUCached", &ScriptTextureImportOptions::internal_GetCPUCached);
 		metaData.scriptClass->addInternalCall("Internal_SetCPUCached", &ScriptTextureImportOptions::internal_SetCPUCached);
 		metaData.scriptClass->addInternalCall("Internal_GetIsSRGB", &ScriptTextureImportOptions::internal_GetIsSRGB);
@@ -139,16 +137,6 @@ namespace bs
 		thisPtr->getTexImportOptions()->setMaxMip(value);
 	}
 
-	bool ScriptTextureImportOptions::internal_GetCPUReadable(ScriptTextureImportOptions* thisPtr)
-	{
-		return thisPtr->getTexImportOptions()->getCPUReadable();
-	}
-
-	void ScriptTextureImportOptions::internal_SetCPUReadable(ScriptTextureImportOptions* thisPtr, bool value)
-	{
-		thisPtr->getTexImportOptions()->setCPUReadable(value);
-	}
-
 	bool ScriptTextureImportOptions::internal_GetCPUCached(ScriptTextureImportOptions* thisPtr)
 	{
 		return thisPtr->getTexImportOptions()->getCPUCached();
@@ -178,8 +166,6 @@ namespace bs
 	void ScriptMeshImportOptions::initRuntimeData()
 	{
 		metaData.scriptClass->addInternalCall("Internal_CreateInstance", &ScriptMeshImportOptions::internal_CreateInstance);
-		metaData.scriptClass->addInternalCall("Internal_GetCPUReadable", &ScriptMeshImportOptions::internal_GetCPUReadable);
-		metaData.scriptClass->addInternalCall("Internal_SetCPUReadable", &ScriptMeshImportOptions::internal_SetCPUReadable);
 		metaData.scriptClass->addInternalCall("Internal_GetCPUCached", &ScriptMeshImportOptions::internal_GetCPUCached);
 		metaData.scriptClass->addInternalCall("Internal_SetCPUCached", &ScriptMeshImportOptions::internal_SetCPUCached);
 		metaData.scriptClass->addInternalCall("Internal_GetImportNormals", &ScriptMeshImportOptions::internal_GetImportNormals);
@@ -230,16 +216,6 @@ namespace bs
 		new (bs_alloc<ScriptMeshImportOptions>()) ScriptMeshImportOptions(instance);
 	}
 
-	bool ScriptMeshImportOptions::internal_GetCPUReadable(ScriptMeshImportOptions* thisPtr)
-	{
-		return thisPtr->getMeshImportOptions()->getCPUReadable();
-	}
-
-	void ScriptMeshImportOptions::internal_SetCPUReadable(ScriptMeshImportOptions* thisPtr, bool value)
-	{
-		thisPtr->getMeshImportOptions()->setCPUReadable(value);
-	}
-
 	bool ScriptMeshImportOptions::internal_GetCPUCached(ScriptMeshImportOptions* thisPtr)
 	{
 		return thisPtr->getMeshImportOptions()->getCPUCached();