 |
SceneViewInitialize(VulkanDevice, Int32, Int32, Single, Single, Int32, Single, ExternalMemoryHandleTypeFlags) Method |
Initializes the SceneView with the specified size and GpuDevice.
This method can be called only when the SceneView was created without a Surface parameter.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic void Initialize(
VulkanDevice gpuDevice,
int width,
int height,
float dpiScaleX = 1f,
float dpiScaleY = 1f,
int multisampleCount = 1,
float supersamplingCount = 1f,
ExternalMemoryHandleTypeFlags backBufferSharedHandleType = ExternalMemoryHandleTypeFlags.None
)
Parameters
- gpuDevice VulkanDevice
- VulkanDevice
- width Int32
- width in pixels (when using DPI scale then the width of the client size that is reported by the UI framework may need to be multiplied by the DPI scale).
- height Int32
- height in pixels (when using DPI scale then the height of the client size that is reported by the UI framework may need to be multiplied by the DPI scale).
- 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.
- backBufferSharedHandleType ExternalMemoryHandleTypeFlags (Optional)
- The type of shared handle for the back buffer. This can be used to share the back buffer with other processes (None by default)
Exceptions
See Also