DXDevice Properties |
The DXDevice type exposes the following members.
Name | Description | |
---|---|---|
Adapter | Gets an adapter (graphics card) that is used by the created Device. Adapter is null if the Device is not yet created. | |
BackgroundThreadsManager | Gets or sets a BackgroundThreadsManager that is used for background rendering in DXScene objects (if DXScene does not provide its onw instance of BackgroundThreadsManager). | |
CommonStates | CommonStates that store all common states | |
Configuration | DXDeviceConfiguration configuration used for creation of DirectX Device and SwapChain. | |
Device | Gets a DirectX device that is used by this DXDevice | |
DeviceCapabilities | DeviceCapabilities for this DirectX device | |
DeviceDescription | Gets device description that is retrieved from the Adapter.Description.Description. | |
DeviceId | Gets device id that is retrieved from the Adapter.Description.DeviceId. | |
DXGIVersion | Gets the DXGI version supported by the Device and operating system. The versions can be from 1.1 to 1.4. | |
EffectsManager | EffectsManager that stores all registered effects | |
ImmediateContext | Gets a DirectX Immediate Device context | |
ImmediateContextStatesManager | ContextStatesManager that is used for the immediate contex | |
IsDebugDevice | Gets a boolean that specifies if the created Device was created with Debug layer. Note that this property can be false even when the CreateDebugDirectXDevice is true. This indicates that the debug device cannot be created. This can be cased because debug layer is disabled in "DirectX Control panel" or the Debug layer is not installer on the system (it is usually installed with Visual Studio or with Windows SDK). | |
IsMeasuringMeshUpdateStatistics | Gets or set a Boolean that specifies if mesh updates are tracked during DXScene's Update phase. This value is automatically to true when IsCollectingStatistics is true. In this case the engine is setting MeshUpdatesCount and MeshBytesUploaded properties that are then set to RenderingStatistics object. | |
IsRemoteDevice | Gets a boolean that specifies if the device is a remote device (Adapter.Description1.Flags has Remote flag set). | |
MeshBytesUploaded | Gets the total uploaded bytes that were uploaded from CPU to GPU memory to update meshes. This value is automatically set by various parts of DXEngine when IsMeasuringMeshUpdateStatistics is true. This value is used to set the MeshBytesUploaded. | |
MeshUpdatesCount | Gets the number of mesh buffers that were updated during Update phase. This value is automatically set by various parts of DXEngine when IsMeasuringMeshUpdateStatistics is true. This value is used to set the MeshUpdatesCount. | |
TextureCache | TextureCache is used to cache the textures |