Add Metal support for macOS (arm64) and iOS

This commit is contained in:
Stuart Carnie 2024-02-20 05:52:00 +11:00 committed by Rémi Verschelde
parent 826de7976a
commit 2d0165574d
No known key found for this signature in database
GPG key ID: C3336907360768E1
72 changed files with 67923 additions and 28 deletions

View file

@ -2826,6 +2826,7 @@ RID RenderingDevice::uniform_set_create(const Vector<Uniform> &p_uniforms, RID p
for (int j = 0; j < (int)uniform_count; j++) {
if (uniforms[j].binding == set_uniform.binding) {
uniform_idx = j;
break;
}
}
ERR_FAIL_COND_V_MSG(uniform_idx == -1, RID(),
@ -3240,6 +3241,7 @@ RID RenderingDevice::render_pipeline_create(RID p_shader, FramebufferFormatID p_
for (int j = 0; j < vd.vertex_formats.size(); j++) {
if (vd.vertex_formats[j].location == i) {
found = true;
break;
}
}