Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Fix codegen with SharpGenTools#1054

Merged
xoofx merged 8 commits intomasterfrom
fix-sharpgen
Jul 31, 2018
Merged

Fix codegen with SharpGenTools#1054
xoofx merged 8 commits intomasterfrom
fix-sharpgen

Conversation

@xoofx
Copy link
Copy Markdown
Member

@xoofx xoofx commented Jul 24, 2018

Related to issue #1048

Fixes #1053

@xoofx
Copy link
Copy Markdown
Member Author

xoofx commented Jul 24, 2018

@jkoritzinsky I'm getting some weird errors on the CI:

       "C:\projects\sharpdx\SharpDX.sln" (Build;Pack target) (1:2) ->
       "C:\projects\sharpdx\Source\SharpDX.Direct2D1\SharpDX.Direct2D1.csproj" (default target) (3:23) ->
       "C:\projects\sharpdx\Source\SharpDX.Direct2D1\SharpDX.Direct2D1.csproj" (Build target) (3:25) ->
       "C:\projects\sharpdx\Source\SharpDX.DXGI\SharpDX.DXGI.csproj" (default target) (6:32) ->
       (CoreCompile target) -> 
         Device.cs(39,36): error CS1503: Argument 1: cannot convert from 'SharpDX.ComObject[]' to 'SharpDX.ComObject' [C:\projects\sharpdx\Source\SharpDX.DXGI\SharpDX.DXGI.csproj]
         Device.cs(39,48): error CS1503: Argument 2: cannot convert from 'SharpDX.DXGI.Residency[]' to 'SharpDX.ComObject' [C:\projects\sharpdx\Source\SharpDX.DXGI\SharpDX.DXGI.csproj]
         Device.cs(39,61): error CS1503: Argument 3: cannot convert from 'int' to 'SharpDX.ComObject' [C:\projects\sharpdx\Source\SharpDX.DXGI\SharpDX.DXGI.csproj]

Do you have an idea what's going on?

@jkoritzinsky
Copy link
Copy Markdown
Contributor

It looks like the residencyStatus parameter is being matched to the wrong marshaller. I'll try to fix that.

@jkoritzinsky
Copy link
Copy Markdown
Contributor

The next SharpGenTools drop should have that fixed.

@xoofx xoofx merged commit 3ba411e into master Jul 31, 2018
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