Add attribute buffer index to support multiple attributes interleaved in single buffer bind [Core optimization] (#4241)

Co-authored-by: Adrian Cojocaru <adrian.cojocaru92@yahoo.com>
This commit is contained in:
Alex Cristici
2026-04-28 19:00:37 +03:00
committed by GitHub
parent 29f90974f0
commit 86eff40b65
50 changed files with 388 additions and 310 deletions

View File

@@ -41,7 +41,7 @@ struct ShaderSource<BuiltIn::DebugShader, gfx::Backend::Type::Metal> {
static constexpr auto source = R"(
struct VertexStage {
short2 pos [[attribute(debugUBOCount + 0)]];
short2 pos [[attribute(0)]];
};
struct FragmentStage {