EEVEE: Document attribute and property limitations #104696

Closed
Jesse Yurkovich wants to merge 1 commits from deadpin-patch-1 into blender-v4.1-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
c212052318 EEVEE: Document attribute and property limitations
Related to blender/blender#108534

----
Folks keep running into this it seems so I put the PR together to get things moving.

There looks to be 2 limits but one of them seems a bit broken.

```
/* Hardware limit is 16. Position attribute is always needed so we reduce to 15.
 * This makes sure the GPUVertexFormat name buffer does not overflow. */
#define GPU_MAX_ATTR 15

/* Determined by the maximum uniform buffer size divided by chunk size. */
#define GPU_MAX_UNIFORM_ATTR 8
```

The first, from an empirical test seems to indicate 14 useful Geometry Node attributes before the shader "breaks".  Are we off by one somewhere?

The second, from blender/blender#117967, seems to be used when Custom Object Properties are set.
2024-02-08 08:18:25 +01:00