Skip to content

Regression: Out arguments in many COM interfaces (eg. DXGI/D3D11) are suddenly unmanaged #1185

@VentuzTammoHinrichs

Description

@VentuzTammoHinrichs

Actual behavior

COM Out arguments in methods in the Graphics.DXGI and .D3D11 namespaces are now I..._unmanaged** (instead of out I... in 0.3.49beta). Look at e.g. all the Create* functions in ID3D11Device.

Note that this doesn't apply to top level functions such as D3D11CreateDevice. Those still work as expected.

Expected behavior

I'd really like to have the managed out arguments back if possible.

Repro steps

  1. NativeMethods.txt content:
Windows.Win32.Graphics.Direct3D11
Windows.Win32.Graphics.DXGI
D3DCompile
  1. NativeMethods.json content (if present):
{
  "$schema": "https://aka.ms/CsWin32.schema.json",
  "useSafeHandles": false,
  "allowMarshaling": true
}

Context

CsWin32 version: 0.3.106
Target Framework: net8.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions