Skip to content

Retrieving all Context components from outer nested iteration scopes #3359

Description

@Keavon

The Instance Index node has a Loop Level parameter that lets you access the outer scopes of multiple levels of nested iteration. This is akin to i, j, and k index variables commonly used in nested for loops in programming.

Today, I ran into the need to access an outer nested iteration scope with the Instance Position node as well. More generally, it needs to be possible to access any component of the Context (OwnedContextImpl) by iterating from inwards to outwards and accessing the outer levels. This likely needs to involve @TrueDoctor deciding on some architectural decisions for Graphene to make this possible.

Activity

  1. added
    GrapheneInvolves the node graph system/engine used by Graphite
    on Nov 10, 2025
  2. added theissue type on Nov 10, 2025
  3. TrueDoctor commented on Nov 11, 2025

    @TrueDoctor
    Member

    One requirement I have is that it has to be possible to implement without requiring heap allocations in the hot path (so no heap allocations on context creation / modification). And that this does not cause unnecessary cache invalidations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrapheneInvolves the node graph system/engine used by GraphitePerformanceSpeed and efficiency improvements

Projects

  • Status
    Short-Term

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions