Struct GraphicsDeviceOptions
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
A structure describing several common properties of a GraphicsDevice.
public struct GraphicsDeviceOptions
- Inherited Members
Constructors
GraphicsDeviceOptions(bool)
Constructs a new GraphicsDeviceOptions for a device with no main Swapchain.
public GraphicsDeviceOptions(bool debug)
Parameters
debugboolIndicates whether the GraphicsDevice will support debug features, provided they are supported by the host system.
GraphicsDeviceOptions(bool, PixelFormat?, bool)
Constructs a new GraphicsDeviceOptions for a device with a main Swapchain.
public GraphicsDeviceOptions(bool debug, PixelFormat? swapchainDepthFormat, bool syncToVerticalBlank)
Parameters
debugboolIndicates whether the GraphicsDevice will enable debug features, provided they are supported by the host system.
swapchainDepthFormatPixelFormat?An optional PixelFormat to be used for the depth buffer of the swapchain. If this value is null, then no depth buffer will be present on the swapchain.
syncToVerticalBlankboolIndicates whether the main Swapchain will be synchronized to the window system's vertical refresh rate.
GraphicsDeviceOptions(bool, PixelFormat?, bool, ResourceBindingModel)
Constructs a new GraphicsDeviceOptions for a device with a main Swapchain.
public GraphicsDeviceOptions(bool debug, PixelFormat? swapchainDepthFormat, bool syncToVerticalBlank, ResourceBindingModel resourceBindingModel)
Parameters
debugboolIndicates whether the GraphicsDevice will enable debug features, provided they are supported by the host system.
swapchainDepthFormatPixelFormat?An optional PixelFormat to be used for the depth buffer of the swapchain. If this value is null, then no depth buffer will be present on the swapchain.
syncToVerticalBlankboolIndicates whether the main Swapchain will be synchronized to the window system's vertical refresh rate.
resourceBindingModelResourceBindingModelSpecifies which model the rendering backend should use for binding resources.
GraphicsDeviceOptions(bool, PixelFormat?, bool, ResourceBindingModel, bool)
Constructs a new GraphicsDeviceOptions for a device with a main Swapchain.
public GraphicsDeviceOptions(bool debug, PixelFormat? swapchainDepthFormat, bool syncToVerticalBlank, ResourceBindingModel resourceBindingModel, bool preferDepthRangeZeroToOne)
Parameters
debugboolIndicates whether the GraphicsDevice will enable debug features, provided they are supported by the host system.
swapchainDepthFormatPixelFormat?An optional PixelFormat to be used for the depth buffer of the swapchain. If this value is null, then no depth buffer will be present on the swapchain.
syncToVerticalBlankboolIndicates whether the main Swapchain will be synchronized to the window system's vertical refresh rate.
resourceBindingModelResourceBindingModelSpecifies which model the rendering backend should use for binding resources.
preferDepthRangeZeroToOneboolIndicates whether a 0-to-1 depth range mapping is preferred. For OpenGL, this is not the default, and is not available on all systems.
GraphicsDeviceOptions(bool, PixelFormat?, bool, ResourceBindingModel, bool, bool)
Constructs a new GraphicsDeviceOptions for a device with a main Swapchain.
public GraphicsDeviceOptions(bool debug, PixelFormat? swapchainDepthFormat, bool syncToVerticalBlank, ResourceBindingModel resourceBindingModel, bool preferDepthRangeZeroToOne, bool preferStandardClipSpaceYDirection)
Parameters
debugboolIndicates whether the GraphicsDevice will enable debug features, provided they are supported by the host system.
swapchainDepthFormatPixelFormat?An optional PixelFormat to be used for the depth buffer of the swapchain. If this value is null, then no depth buffer will be present on the swapchain.
syncToVerticalBlankboolIndicates whether the main Swapchain will be synchronized to the window system's vertical refresh rate.
resourceBindingModelResourceBindingModelSpecifies which model the rendering backend should use for binding resources.
preferDepthRangeZeroToOneboolIndicates whether a 0-to-1 depth range mapping is preferred. For OpenGL, this is not the default, and is not available on all systems.
preferStandardClipSpaceYDirectionboolIndicates whether a bottom-to-top-increasing clip space Y direction is preferred. For Vulkan, this is not the default, and is not available on all systems.
GraphicsDeviceOptions(bool, PixelFormat?, bool, ResourceBindingModel, bool, bool, bool)
Constructs a new GraphicsDeviceOptions for a device with a main Swapchain.
public GraphicsDeviceOptions(bool debug, PixelFormat? swapchainDepthFormat, bool syncToVerticalBlank, ResourceBindingModel resourceBindingModel, bool preferDepthRangeZeroToOne, bool preferStandardClipSpaceYDirection, bool swapchainSrgbFormat)
Parameters
debugboolIndicates whether the GraphicsDevice will enable debug features, provided they are supported by the host system.
swapchainDepthFormatPixelFormat?An optional PixelFormat to be used for the depth buffer of the swapchain. If this value is null, then no depth buffer will be present on the swapchain.
syncToVerticalBlankboolIndicates whether the main Swapchain will be synchronized to the window system's vertical refresh rate.
resourceBindingModelResourceBindingModelSpecifies which model the rendering backend should use for binding resources.
preferDepthRangeZeroToOneboolIndicates whether a 0-to-1 depth range mapping is preferred. For OpenGL, this is not the default, and is not available on all systems.
preferStandardClipSpaceYDirectionboolIndicates whether a bottom-to-top-increasing clip space Y direction is preferred. For Vulkan, this is not the default, and is not available on all systems.
swapchainSrgbFormatboolIndicates whether the main Swapchain should use an sRGB format. This value is only used in cases where the properties of the main SwapChain are not explicitly specified with a SwapchainDescription. If they are, then the value of ColorSrgb will supercede the value specified here.
Fields
Debug
Indicates whether the GraphicsDevice will support debug features, provided they are supported by the host system.
public bool Debug
Field Value
HasMainSwapchain
Indicates whether the Graphicsdevice will include a "main" Swapchain. If this value is true, then the GraphicsDevice must be created with one of the overloads that provides Swapchain source information.
public bool HasMainSwapchain
Field Value
PreferDepthRangeZeroToOne
Indicates whether a 0-to-1 depth range mapping is preferred. For OpenGL, this is not the default, and is not available on all systems.
public bool PreferDepthRangeZeroToOne
Field Value
PreferStandardClipSpaceYDirection
Indicates whether a bottom-to-top-increasing clip space Y direction is preferred. For Vulkan, this is not the default, and may not be available on all systems.
public bool PreferStandardClipSpaceYDirection
Field Value
ResourceBindingModel
Specifies which model the rendering backend should use for binding resources. This can be overridden per-pipeline by specifying a value in ResourceBindingModel.
public ResourceBindingModel ResourceBindingModel
Field Value
SwapchainDepthFormat
An optional PixelFormat to be used for the depth buffer of the swapchain. If this value is null, then no depth buffer will be present on the swapchain.
public PixelFormat? SwapchainDepthFormat
Field Value
SwapchainSrgbFormat
Indicates whether the main Swapchain should use an sRGB format. This value is only used in cases where the properties of the main SwapChain are not explicitly specified with a SwapchainDescription. If they are, then the value of ColorSrgb will supercede the value specified here.
public bool SwapchainSrgbFormat
Field Value
SyncToVerticalBlank
Indicates whether the main Swapchain will be synchronized to the window system's vertical refresh rate.
public bool SyncToVerticalBlank