|
Easy3D 3.0.0
|
Options for creating a host viewer on the configured backend. More...
#include <viewer.h>
Public Attributes | |
| bool | validation = false |
| Request Vulkan validation layers; construction fails if they are unavailable. | |
| bool | sync_validation = false |
| Request synchronization validation; this also enables validation layers. | |
| bool | profiling = false |
| Report CPU/API and staging timings when the Vulkan device is destroyed. | |
| bool | use_native_large_points = true |
| std::string | device_name = {} |
| Optional substring used to select a matching physical-device name. | |
| int | major = 4 |
| int | minor = 3 |
| Requested OpenGL context minor version (at least OpenGL 3.3); see major. | |
| int | depth_bits = 24 |
| Requested depth-buffer precision in bits. | |
| int | stencil_bits = 8 |
| Requested stencil-buffer precision in bits. | |
Options for creating a host viewer on the configured backend.
One type is exposed on both backends so clients do not need a backend macro. Fields that only apply to one backend are ignored by the other.
| int major = 4 |
Requested OpenGL context major version (at least 3). The request is used verbatim; a driver may return a higher version. The default asks for 4.3 because per-pixel linked lists, shader-program introspection and debug-message dispatch need it; set 3.3 to target the baseline. If the driver cannot create the requested version the viewer falls back to 4.1 and then to 3.3 with a warning instead of failing, and the device reports the features the context it received has to drop. macOS needs no fallback: it returns a 4.1 context for any 4.x request.
| bool use_native_large_points = true |
Use the native Vulkan large-points feature when available. Disable to exercise the portable expanded-point renderer or compare its performance.