-
Notifications
You must be signed in to change notification settings - Fork 11
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
[0002] Root signatures: Fix example and reformat metadata schema #91
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to follow and understand the descriptions well.
#### Root Signature | ||
|
||
```LLVM | ||
!3 = !{!4, !5, !6, !7 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!3 = !{!4, !5, !6, !7 } | |
!3 = !{ !4, !5, !6, !7 } |
|
||
```llvm | ||
!dx.rootsignatures = !{!2} ; list of function/root signature pairs | ||
!2 = !{ptr @main, !3 } ; function, root signature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!2 = !{ptr @main, !3 } ; function, root signature | |
!2 = !{ ptr @main, !3 } ; function, root signature |
Not sure if needed, but everywhere else seems to have a space. There is another instance if this is the case on line 524
|
||
* i32: the root signature flags ([D3D12_ROOT_SIGNATURE_FLAGS](d3d12_root_signature_flags)) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra line
|
||
Operands: | ||
|
||
* i32: the root signature flags ([D3D12_ROOT_SIGNATURE_FLAGS](d3d12_root_signature_flags)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* i32: the root signature flags ([D3D12_ROOT_SIGNATURE_FLAGS](d3d12_root_signature_flags)) | |
* i32: the root signature flags ([D3D12_ROOT_SIGNATURE_FLAGS][d3d12_root_signature_flags]) |
Discrepancy with the other flag links
* i32: number of descriptors in the range | ||
* i32: base shader register | ||
* i32: register space | ||
* i32: descriptor range flgs ([D3D12_DESCRIPTOR_RANGE_FLAGS][d3d12_descriptor_range_flags]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* i32: descriptor range flgs ([D3D12_DESCRIPTOR_RANGE_FLAGS][d3d12_descriptor_range_flags]) | |
* i32: descriptor range flags ([D3D12_DESCRIPTOR_RANGE_FLAGS][d3d12_descriptor_range_flags]) |
``` | ||
|
||
Operands: | ||
* i32: Filter ([D3D12_FILTER](d3d12_filter)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These operands also use regular braces as opposed to square. Not sure which one is correct but I'll note it to double-check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me., I like the additional cleanups here.
Move the example metadata to the main proposal section.
Update the layout of the schema so that it is ordered more from top-to-bottom and reformat to be easier to read.
Also fixed the metadata example to match the schema.