xref: /aosp_15_r20/external/angle/include/angle_windowsstore.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker //
2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2014 The ANGLE Project Authors. All rights reserved.
3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file.
5*8975f5c5SAndroid Build Coastguard Worker //
6*8975f5c5SAndroid Build Coastguard Worker // angle_windowsstore.h:
7*8975f5c5SAndroid Build Coastguard Worker 
8*8975f5c5SAndroid Build Coastguard Worker #ifndef ANGLE_WINDOWSSTORE_H_
9*8975f5c5SAndroid Build Coastguard Worker #define ANGLE_WINDOWSSTORE_H_
10*8975f5c5SAndroid Build Coastguard Worker 
11*8975f5c5SAndroid Build Coastguard Worker // The following properties can be set on the CoreApplication to support additional
12*8975f5c5SAndroid Build Coastguard Worker // ANGLE configuration options.
13*8975f5c5SAndroid Build Coastguard Worker //
14*8975f5c5SAndroid Build Coastguard Worker // The Visual Studio sample templates provided with this version of ANGLE have examples
15*8975f5c5SAndroid Build Coastguard Worker // of how to set these property values.
16*8975f5c5SAndroid Build Coastguard Worker 
17*8975f5c5SAndroid Build Coastguard Worker //
18*8975f5c5SAndroid Build Coastguard Worker // Property: EGLNativeWindowTypeProperty
19*8975f5c5SAndroid Build Coastguard Worker // Type: IInspectable
20*8975f5c5SAndroid Build Coastguard Worker // Description: Set this property to specify the window type to use for creating a surface.
21*8975f5c5SAndroid Build Coastguard Worker //              If this property is missing, surface creation will fail.
22*8975f5c5SAndroid Build Coastguard Worker //
23*8975f5c5SAndroid Build Coastguard Worker const wchar_t EGLNativeWindowTypeProperty[] = L"EGLNativeWindowTypeProperty";
24*8975f5c5SAndroid Build Coastguard Worker 
25*8975f5c5SAndroid Build Coastguard Worker //
26*8975f5c5SAndroid Build Coastguard Worker // Property: EGLRenderSurfaceSizeProperty
27*8975f5c5SAndroid Build Coastguard Worker // Type: Size
28*8975f5c5SAndroid Build Coastguard Worker // Description: Set this property to specify a preferred size in pixels of the render surface.
29*8975f5c5SAndroid Build Coastguard Worker //              The render surface size width and height must be greater than 0.
30*8975f5c5SAndroid Build Coastguard Worker //              If this property is set, then the render surface size is fixed.
31*8975f5c5SAndroid Build Coastguard Worker //              The render surface will then be scaled to the window dimensions.
32*8975f5c5SAndroid Build Coastguard Worker //              If this property is missing, a default behavior will be provided.
33*8975f5c5SAndroid Build Coastguard Worker //              The default behavior uses the window size if a CoreWindow is specified or
34*8975f5c5SAndroid Build Coastguard Worker //              the size of the SwapChainPanel control if one is specified.
35*8975f5c5SAndroid Build Coastguard Worker //
36*8975f5c5SAndroid Build Coastguard Worker const wchar_t EGLRenderSurfaceSizeProperty[] = L"EGLRenderSurfaceSizeProperty";
37*8975f5c5SAndroid Build Coastguard Worker 
38*8975f5c5SAndroid Build Coastguard Worker //
39*8975f5c5SAndroid Build Coastguard Worker // Property: EGLRenderResolutionScaleProperty
40*8975f5c5SAndroid Build Coastguard Worker // Type: Single
41*8975f5c5SAndroid Build Coastguard Worker // Description: Use this to specify a preferred scale for the render surface compared to the window.
42*8975f5c5SAndroid Build Coastguard Worker //              For example, if the window is 800x480, and:
43*8975f5c5SAndroid Build Coastguard Worker //                - scale is set to 0.5f then the surface will be 400x240
44*8975f5c5SAndroid Build Coastguard Worker //                - scale is set to 1.2f then the surface will be 960x576
45*8975f5c5SAndroid Build Coastguard Worker //              If the window resizes or rotates then the surface will resize accordingly.
46*8975f5c5SAndroid Build Coastguard Worker //              EGLRenderResolutionScaleProperty and EGLRenderSurfaceSizeProperty cannot both be set.
47*8975f5c5SAndroid Build Coastguard Worker //              The scale factor should be > 0.0f.
48*8975f5c5SAndroid Build Coastguard Worker //
49*8975f5c5SAndroid Build Coastguard Worker const wchar_t EGLRenderResolutionScaleProperty[] = L"EGLRenderResolutionScaleProperty";
50*8975f5c5SAndroid Build Coastguard Worker 
51*8975f5c5SAndroid Build Coastguard Worker #endif // ANGLE_WINDOWSSTORE_H_
52