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

[Usd] Provide a quiet mode for usdGenSchema. #480

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

superfunc
Copy link
Contributor

Description of Change(s)

Pretty non-invasive change to provide a quiet mode to usdGenSchema. This would be really useful to have. While this could be done with whatever script is calling it, it gives users a much simpler interface for doing so at a low cost to us(in terms of code complexity etc).

Fixes Issue(s)

  • None filed.

This is useful to have when integrating usdGenSchema with build systems.
@jtran56
Copy link

jtran56 commented May 7, 2018

Filed as internal issue #160428.

@pixar-oss pixar-oss merged commit aaff027 into PixarAnimationStudios:dev Jul 3, 2019
pixar-oss added a commit that referenced this pull request Jul 3, 2019
[Usd] Provide a quiet mode for usdGenSchema.

(Internal change: 1985241)
AdamFelt pushed a commit to autodesk-forks/USD that referenced this pull request Apr 16, 2024
…parate sharedData from the text draw item. (PixarAnimationStudios#480)

### Description of Change(s)
The draw items for underline and overline should use separate sharedData from the text draw item.
### Reason 
The sharedData contains a map between DrawingCoord index and Buffer range. For example, the constant topology index should map to the constant buffer range. If a primitive has multiple draw items, we need to assign different indices for different draw items. For example, the points topology for the text draw item should be different from the points topology of the underline draw item, so that we can set different point buffer range. Originally, we define different topology index for different draw items in the DrawingCoord enumeration.
But there is still problem if instancing is enabled. There will be one instancing index for one instance of a draw item. For example, if there are 5 instances for a text, there will be 5 instancing index. To achieve this, we define the base of instancing index at the end of the DrawingCoord enum, and the index of each instance will be expanded from the base. If there is multiple draw items, their instancing indices should not overlap. As a draw item may have hundreds of instances, it is impossible to guarantee the instancing index is not overlap for different draw items.
So the only way is to use separate sharedData for different draw item. If two draw items use separate sharedData, we can use the same index because the buffer range will be set to different sharedData.
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.

5 participants