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.

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, is correctly handled when Custom Object Properties are set.

Related to https://projects.blender.org/blender/blender/issues/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 https://projects.blender.org/blender/blender/issues/117967, is correctly handled when Custom Object Properties are set.
Jesse Yurkovich added 1 commit 2024-02-08 08:19:29 +01:00
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.
Jesse Yurkovich requested review from Philipp Oeser 2024-02-08 08:19:51 +01:00
Jesse Yurkovich requested review from Jeroen Bakker 2024-02-08 08:19:51 +01:00
Author
Member

Will re-create using a branch from my own fork - oops.

Will re-create using a branch from my own fork - oops.
Jesse Yurkovich closed this pull request 2024-02-08 08:36:03 +01:00

Pull request closed

Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#104696
No description provided.