Files
test/source/blender/gpu/vulkan
Clément Foucault 00a8d006fe GPU: Move Polyline shader to primitive expansion
This port is not so straightforward.

This shader is used in different configurations and is
available to python bindings. So we need to keep
compatibility with different attributes configurations.

This is why attributes are loaded per component and a
uniform sets the length of the component.

Since this shader can be used from both the imm and batch
API, we need to inject some workarounds to bind the buffers
correctly.

The end result is still less versatile than the previous
metal workaround (i.e.: more attribute fetch mode supported),
but it is also way less code.

### Limitations:
The new shader has some limitation:
- Both `color` and `pos` attributes need to be `F32`.
- Each attribute needs to be 4byte aligned.
- Fetch type needs to be `GPU_FETCH_FLOAT`.
- Primitive type needs to be `GPU_PRIM_LINES`, `GPU_PRIM_LINE_STRIP` or `GPU_PRIM_LINE_LOOP`.
- If drawing using an index buffer, it must contain no primitive restart.

Rel #127493

Co-authored-by: Jeroen Bakker <jeroen@blender.org>
Pull Request: https://projects.blender.org/blender/blender/pulls/129315
2024-11-27 17:37:04 +01:00
..
2024-10-08 10:55:10 +02:00
2024-09-26 16:01:30 +02:00
2024-06-20 11:34:19 +02:00
2024-08-20 11:27:33 +02:00
2024-10-15 13:46:00 +02:00
2024-10-15 13:46:00 +02:00
2024-08-20 11:27:33 +02:00
2023-11-14 11:12:19 +01:00
2024-10-08 10:55:10 +02:00
2024-01-01 00:43:09 +13:00
2024-10-08 10:55:10 +02:00
2024-11-25 13:24:46 +11:00