 |
SceneViewInitialize(SurfaceKHR, Single, Single, Int32, Single, Int32, Int32) Method |
Initializes the SceneView with the size from the specified Vulkan Surface.
If the surface does not provide size information (for example, when using Silk.NET under Wayland on Linux),
the optionally-provided fallback width and height are used as fallback dimensions. These fallback values
should be obtained (by the caller) from the presentation/windowing framework. If the surface provides size
information, fallback dimensions are ignored.
Optionally it is possible to set the DPI scale because that data is not available from the surface.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void Initialize(
SurfaceKHR surface,
float dpiScaleX = 1f,
float dpiScaleY = 1f,
int multisampleCount = 1,
float supersamplingCount = 1f,
int fallbackWidth = 0,
int fallbackHeight = 0
)
Parameters
- surface SurfaceKHR
- SurfaceKHR
- dpiScaleX Single (Optional)
- DPI x scale (1 by default). This value is used in line and pixel rendering and scales the line thickness or size of pixels.
- dpiScaleY Single (Optional)
- DPI y scale (1 by default). This value is used in line and pixel rendering and scales the line thickness or size of pixels.
- multisampleCount Int32 (Optional)
- multi-sample (MSAA) count (1 by default that does not use any MSAA). MSAA produce smoother edges by storing multiple color values for each pixel.
- supersamplingCount Single (Optional)
- super-sample (SSAA) count (1 by default that does not use any SSAA). SSAA is a technique that renders the image at a higher resolution and then down-samples the rendered image to the final resolution.
- fallbackWidth Int32 (Optional)
- Optional fallback width value when surface does not provide size information.
- fallbackHeight Int32 (Optional)
- Optional fallback height value when surface does not provide size information.
ExceptionsException | Condition |
---|
InvalidOperationException | |
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneView.Initialize(Ab4d.Vulkan.SurfaceKHR,System.Single,System.Single,System.Int32,System.Single,System.Int32,System.Int32)"]
See Also