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

DeviceContext1.ClearView()'s 'color' parameter is of type 'float' when it should be a 'RawColor4'. #744

@waltdestler

Description

@waltdestler

The signature for SharpDX.Direct3D11.DeviceContext1.ClearView currently looks like this:

public void ClearView(SharpDX.Direct3D11.ResourceView viewRef, float color, SharpDX.Mathematics.Interop.RawRectangle[] rectRef, int numRects)

However, that color parameter is supposed to be 4 floats, according to the docs.

I tried fixing this myself by adding this line to Mapping.xml:

<map param="ID3D11DeviceContext1::ClearView::Color" type="SharpDX.Mathematics.Interop.RawColor4" />

But this produces the following error:

fatal: in CppInterface [ID3D11DeviceContext1]/Method void ID3D11DeviceContext1::ClearView([In] ID3D11View* pView,[In] const SharpDX.Mathematics.Interop.RawColor4* Color,[In, Buffer, Optional] const RECT* pRect,[In] unsigned int NumRects) Unknown type found [SharpDX.Mathematics.Interop.RawColor4]

So I'm stumped on how to fix this. I'm happy to fix it myself and submit a pull request, but I need a tip on how to get the code generator to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions