Fix: EEVEE-Next: Metal shader compilation error

`vertex` is the name of the function entry point and is
defined as a macro. Renaming fixes the issue.
This commit is contained in:
Clément Foucault 2023-11-23 23:53:23 +01:00
parent 6ae5e1ade8
commit 2ece99891b
1 changed files with 6 additions and 6 deletions

View File

@ -4,12 +4,12 @@
void main()
{
uint vertex = gl_GlobalInvocationID.x;
if (vertex >= vertex_count) {
uint vertex_id = gl_GlobalInvocationID.x;
if (vertex_id >= vertex_count) {
return;
}
out_buf[start_offset + vertex] = vec4(in_buf[vertex * vertex_stride + 0],
in_buf[vertex * vertex_stride + 1],
in_buf[vertex * vertex_stride + 2],
1.0);
out_buf[start_offset + vertex_id] = vec4(in_buf[vertex_id * vertex_stride + 0],
in_buf[vertex_id * vertex_stride + 1],
in_buf[vertex_id * vertex_stride + 2],
1.0);
}