You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_Field_size_full_ struct member annotation is ignored #547
It would be good to have some metadata here associating these two fields to allow projections to do the right thing. See for example microsoft/windows-rs#907.
Any progress on this issue? Would love to bind this up in Rust so we can treat this as an array.
Would what Rafael Rivera (@riverar) suggested work? I haven't had a lot of time for this project lately, unfortunately. I'm not sure when I'll be able to get to this.
Tanner Gooding (@tannergooding) SAL annotations are expected to surface in the CppAttributeList attribute right? That's how we process other SAL annotations but I don't see the attribute in this case.
There was a manageable enough set of these in d3d12.h that I defined them manually for now. We have CountFieldName for this scenario.
public struct D3D12_ROOT_DESCRIPTOR_TABLE
{
public uint NumDescriptorRanges;
[Const]
[NativeArrayInfo(CountFieldName = "NumDescriptorRanges")]
public unsafe D3D12_DESCRIPTOR_RANGE* pDescriptorRanges;
}
Tanner Gooding (@tannergooding) I filed a bug in your repo for generating CppAttributeList on structs so we can detect this automatically for the rest of the API surface.
Activity
riverar commentedon Apr 16, 2022
What's the proposed change here? Are you looking to see something like this?
kennykerr commentedon Jul 22, 2022
Any progress on this issue? Would love to bind this up in Rust so we can treat this as an array.
kennykerr commentedon Jul 22, 2022
I noticed I have both microsoft/windows-rs#907 and microsoft/windows-rs#443 blocked on this issue. 😢
sotteson1 commentedon Jul 22, 2022
Would what Rafael Rivera (@riverar) suggested work? I haven't had a lot of time for this project lately, unfortunately. I'm not sure when I'll be able to get to this.
kennykerr commentedon Jul 22, 2022
Yep, an attribute like that would be enough to make it work - thanks!
mikebattista commentedon Mar 21, 2023
I don't see any
CppAttributeListfor this annotation.Tanner Gooding (@tannergooding) SAL annotations are expected to surface in the
CppAttributeListattribute right? That's how we process other SAL annotations but I don't see the attribute in this case.mikebattista commentedon Apr 14, 2023
There was a manageable enough set of these in d3d12.h that I defined them manually for now. We have
CountFieldNamefor this scenario.Tanner Gooding (@tannergooding) I filed a bug in your repo for generating CppAttributeList on structs so we can detect this automatically for the rest of the API surface.
Fixed microsoft#547.