( events: CompositorEventController, windowId: string, )
| 3080 | candidate !== nodeId && |
| 3081 | (candidate.startsWith(`${nodeId}.`) || |
| 3082 | candidate.startsWith(`${nodeId}[`)), |
| 3083 | ) |
| 3084 | ) { |
| 3085 | return null; |
| 3086 | } |
| 3087 | const previous = findSerializedNode(previousTree, nodeId); |
| 3088 | const next = findSerializedNode(nextTree, nodeId); |
| 3089 | const nodePatches = collectNodeShaderUniformPatches(previous, next); |
| 3090 | if (nodePatches === null) { |
| 3091 | return null; |
| 3092 | } |
| 3093 | patches.push(...nodePatches); |
| 3094 | } |
| 3095 | return patches; |
| 3096 | } |
| 3097 | |
| 3098 | function collectNodeShaderUniformPatches( |
| 3099 | previousValue: unknown, |
| 3100 | nextValue: unknown, |
| 3101 | ): NativeShaderUniformPatch[] | null { |
| 3102 | const previous = asRecord(previousValue); |
| 3103 | const next = asRecord(nextValue); |
| 3104 | if ( |
no test coverage detected