Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VertexBuffers don't serialize their name #2355

Open
Trass3r opened this issue Feb 2, 2025 · 1 comment
Open

VertexBuffers don't serialize their name #2355

Trass3r opened this issue Feb 2, 2025 · 1 comment

Comments

@Trass3r
Copy link
Contributor

Trass3r commented Feb 2, 2025

That makes it harder to identify them in the debugger or in RenderDoc's Resource Inspector.

public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(components, "components", 0);
oc.write(usage, "usage", Usage.Dynamic);
oc.write(bufType, "buffer_type", null);
oc.write(format, "format", Format.Float);
oc.write(normalized, "normalized", false);
oc.write(offset, "offset", 0);
oc.write(stride, "stride", 0);
oc.write(instanceSpan, "instanceSpan", 0);

@Trass3r
Copy link
Contributor Author

Trass3r commented Feb 2, 2025

Related: BatchNodes don't set a name for their new VertexBuffers so the original name is lost.

VertexBuffer vb = new VertexBuffer(VertexBuffer.Type.values()[i]);
vb.setupData(VertexBuffer.Usage.Dynamic, compsForBuf[i], formatForBuf[i], data);
vb.setNormalized(normForBuf[i]);
outMesh.setBuffer(vb);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant