Searched refs:needsUpdate (Results 1 – 4 of 4) sorted by relevance
34 bool needsUpdate = (dependencyDesc.byteSize != desc.byteSize); in CheckForDescUpdates() local35 needsUpdate = needsUpdate || (dependencyDesc.usageFlags != desc.usageFlags); in CheckForDescUpdates()36 needsUpdate = needsUpdate || (dependencyDesc.memoryPropertyFlags != desc.memoryPropertyFlags); in CheckForDescUpdates()37 needsUpdate = needsUpdate || (dependencyDesc.engineCreationFlags != desc.engineCreationFlags); in CheckForDescUpdates()38 needsUpdate = needsUpdate || (dependencyDesc.format != desc.format); in CheckForDescUpdates()39 if (needsUpdate) { in CheckForDescUpdates()42 return needsUpdate; in CheckForDescUpdates()
81 bool needsUpdate = false; in CheckForDescUpdates() local83 needsUpdate = true; in CheckForDescUpdates()95 needsUpdate = true; in CheckForDescUpdates()102 needsUpdate = true; in CheckForDescUpdates()106 needsUpdate = true; in CheckForDescUpdates()110 needsUpdate = true; in CheckForDescUpdates()113 return needsUpdate; in CheckForDescUpdates()
102 @State needsUpdate: boolean = true;107 const triggerAGet = this.needsUpdate;111 const triggerAGet = this.needsUpdate;126 this.needsUpdate = !this.needsUpdate;134 this.needsUpdate = !this.needsUpdate;146 - this.needsUpdate是一个自定义的UI状态变量,应该仅应用于其绑定的UI组件。变量this.realStateArr、this.realState没有被装饰,他们的变化将不会触发UI…148 - 但是在该应用中,用户试图通过this.needsUpdate的更新来带动常规变量this.realStateArr、this.realState的更新,此方法不合理且更新性能较差。152 要解决此问题,应将realStateArr和realState成员变量用\@State装饰。一旦完成此操作,就不再需要变量needsUpdate。
102 @State needsUpdate: boolean = true;107 const triggerAGet = this.needsUpdate;111 const triggerAGet = this.needsUpdate;126 this.needsUpdate = !this.needsUpdate;134 this.needsUpdate = !this.needsUpdate;146 - **this.needsUpdate** is a custom state variable that should be applied only to the UI component t…148 …n attempt is made to update these two regular variables through **this.needsUpdate**. This approac…152 …ate1** and **realState2** variables with \@State. Then, the variable **needsUpdate** is no longer …