Skip to content

[DX11] ID3D11DeviceContext->RSSetScissorRects() Incorrect mapping #949

@Syncaidius

Description

@Syncaidius

ID3D11DeviceContext::RSSetScissorRects() expects rectangles to be structured as left, top, right, bottom integers, but SILK.NET expects Silk.NET.Maths.Rectangle<int> to be passed in, which has a structure of left, top, width, height via two vector fields Origin and Size.

The workaround for now is to set the Size to be the right and bottom position values, or to cast the correct data to Rectangle<int>* to allow it to be passed in to the above method.

This could be fixed by changing the method to accept D3D11_RECT, which I believe is currently mapped as Silk.NET.Direct3D11.CD3D11Rect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions