Skip to content

Add windows association flags to WGPUSurfaceDescriptorFromWindowsHWND #298

Open
@austinEng

Description

@austinEng

This PR google/dawn#16 adds DXGI_MWA_NO_ALT_ENTER always to Dawn.

Probably the better thing would be for an application to be able to configure the window association when creating the WGPUSurface.

Concretely, something like:

typedef struct WGPUSurfaceDescriptorFromWindowsHWND {
    WGPUChainedStruct chain;
    void * hinstance;
    void * hwnd;
+   uint32_t windowAssocationFlags;
} WGPUSurfaceDescriptorFromWindowsHWND WGPU_STRUCTURE_ATTRIBUTE;

For reference, valid flags are:

#define DXGI_MWA_NO_WINDOW_CHANGES  0x1
#define DXGI_MWA_NO_ALT_ENTER       0x2
#define DXGI_MWA_NO_PRINT_SCREEN    0x4

Metadata

Metadata

Assignees

No one assigned

    Labels

    has resolutionIssue is resolved, just needs to be donenon-breakingDoes not require a breaking change (that would block V1.0)presentationPresenting images to surfaces like windows and canvases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions