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

[HGI] Cleanup of vertex bindings, split off HgiMetal step functions #1876

Merged

Conversation

creijon
Copy link
Contributor

@creijon creijon commented May 23, 2022

Description of Change(s)

General code cleanup around the HgiMetal implementation of graphicsCmds. The vertex buffer bindings were being passed around as two parallel arrays of buffer handles and byte offsets with a 'firstBinding' parameter too. Moved this to a new struct HgiVertexBufferBinding.

This allows the HdStPipelineDrawBatch to be cleaned up too.

There was a lot of logic around the calculation and setting of the vertex buffer step functions in HgiMetalGraphicsCmd this has been split out to a separate class HgiMetalStepFunctions which can be used by other parts of the engine.

Fixes Issue(s)

  • Code maintainability and clarity
  • I have submitted a signed Contributor License Agreement

@jilliene
Copy link

Filed as internal issue #USD-7382

@creijon creijon mentioned this pull request Jun 13, 2022
1 task
@creijon creijon force-pushed the jon/dev/graphics_command branch 3 times, most recently from cba8506 to 4f0596c Compare June 21, 2022 13:31
@pixar-oss pixar-oss merged commit c1a0b21 into PixarAnimationStudios:dev Jun 25, 2022
@creijon creijon deleted the jon/dev/graphics_command branch July 6, 2022 11:01
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

Successfully merging this pull request may close these issues.

3 participants