summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-09-17 03:19:06 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-09-17 03:19:06 +0000
commitc4e90c3f0025628c0951f368d0d4b54f13a87b3d (patch)
treecae1b894626f4a60f82352f4e66b041342d79d09 /Graphics/GraphicsEngineVulkan
parentD3D12 backend: implemented proper detection of DXIL bytecode (diff)
downloadDiligentCore-c4e90c3f0025628c0951f368d0d4b54f13a87b3d.tar.gz
DiligentCore-c4e90c3f0025628c0951f368d0d4b54f13a87b3d.zip
Removed AdapterAttribs struct that was a duplicate of GraphicsAdapterInfo. Moved few members to GraphicsAdapterInfo
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
index 87bb60e2..246811be 100644
--- a/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/RenderDeviceVkImpl.cpp
@@ -26,6 +26,8 @@
*/
#include "pch.h"
+#include <string.h>
+
#include "RenderDeviceVkImpl.hpp"
#include "PipelineStateVkImpl.hpp"
#include "ShaderVkImpl.hpp"
@@ -160,8 +162,12 @@ RenderDeviceVkImpl::RenderDeviceVkImpl(IReferenceCounters*
const auto& DeviceProps = m_PhysicalDevice->GetProperties();
- AdapterInfo.Vendor = VendorIdToAdapterVendor(DeviceProps.vendorID);
+ strncpy_s(AdapterInfo.Description, DeviceProps.deviceName, _countof(AdapterInfo.Description) - 1);
AdapterInfo.Type = ADAPTER_TYPE_HARDWARE;
+ AdapterInfo.Vendor = VendorIdToAdapterVendor(DeviceProps.vendorID);
+ AdapterInfo.VendorId = DeviceProps.vendorID;
+ AdapterInfo.DeviceId = DeviceProps.deviceID;
+ AdapterInfo.NumOutputs = 0;
AdapterInfo.DeviceLocalMemory = 0;
AdapterInfo.HostVisibileMemory = 0;
AdapterInfo.UnifiedMemory = 0;