Skip to content

Comments

Allow for mesh instances without geometry#35

Merged
apanteleev merged 1 commit intoNVIDIA-RTX:mainfrom
jambuttenshaw:main
Oct 9, 2025
Merged

Allow for mesh instances without geometry#35
apanteleev merged 1 commit intoNVIDIA-RTX:mainfrom
jambuttenshaw:main

Conversation

@jambuttenshaw
Copy link
Contributor

This PR makes small modifications to donut::engine::Scene that avoids fatal crashes when a MeshInfo does not have any vertex data or geometries. This does not change existing behaviour for meshes that do have geometries or vertex data.

The motivation for this in my situation is to be able to create procedural geometry where all geometry is created within the vertex shader, which is dispatched using drawIndirect, thus no vertex or index buffers. Inheriting from MeshInfo and MeshInstance allows for convenient integration of procedural meshes with the existing Scene and Scene Graph systems, including automatic population of the Scene's instance buffer etc without having to re-implement most of Scene's functionality.

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@jambuttenshaw
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@apanteleev apanteleev merged commit e05843f into NVIDIA-RTX:main Oct 9, 2025
1 of 2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants