Path: blob/main_old/include/angle_windowsstore.h
1693 views
//1// Copyright 2014 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//5// angle_windowsstore.h:67#ifndef ANGLE_WINDOWSSTORE_H_8#define ANGLE_WINDOWSSTORE_H_910// The following properties can be set on the CoreApplication to support additional11// ANGLE configuration options.12//13// The Visual Studio sample templates provided with this version of ANGLE have examples14// of how to set these property values.1516//17// Property: EGLNativeWindowTypeProperty18// Type: IInspectable19// Description: Set this property to specify the window type to use for creating a surface.20// If this property is missing, surface creation will fail.21//22const wchar_t EGLNativeWindowTypeProperty[] = L"EGLNativeWindowTypeProperty";2324//25// Property: EGLRenderSurfaceSizeProperty26// Type: Size27// Description: Set this property to specify a preferred size in pixels of the render surface.28// The render surface size width and height must be greater than 0.29// If this property is set, then the render surface size is fixed.30// The render surface will then be scaled to the window dimensions.31// If this property is missing, a default behavior will be provided.32// The default behavior uses the window size if a CoreWindow is specified or33// the size of the SwapChainPanel control if one is specified.34//35const wchar_t EGLRenderSurfaceSizeProperty[] = L"EGLRenderSurfaceSizeProperty";3637//38// Property: EGLRenderResolutionScaleProperty39// Type: Single40// Description: Use this to specify a preferred scale for the render surface compared to the window.41// For example, if the window is 800x480, and:42// - scale is set to 0.5f then the surface will be 400x24043// - scale is set to 1.2f then the surface will be 960x57644// If the window resizes or rotates then the surface will resize accordingly.45// EGLRenderResolutionScaleProperty and EGLRenderSurfaceSizeProperty cannot both be set.46// The scale factor should be > 0.0f.47//48const wchar_t EGLRenderResolutionScaleProperty[] = L"EGLRenderResolutionScaleProperty";4950#endif // ANGLE_WINDOWSSTORE_H_515253