Nebula
Loading...
Searching...
No Matches
adapterinfo.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
15#include "core/types.h"
16#include "util/string.h"
17#include "util/guid.h"
18
19//------------------------------------------------------------------------------
20namespace CoreGraphics
21{
80
81//------------------------------------------------------------------------------
84inline
86 driverVersionLowPart(0),
87 driverVersionHighPart(0),
88 vendorId(0),
89 deviceId(0),
90 subSystemId(0),
91 revision(0)
92{
93 // empty
94}
95
96//------------------------------------------------------------------------------
99inline void
101{
102 this->driverName = s;
103}
104
105//------------------------------------------------------------------------------
108inline const Util::String&
110{
111 return this->driverName;
112}
113
114//------------------------------------------------------------------------------
117inline void
119{
120 this->description = s;
121}
122
123//------------------------------------------------------------------------------
126inline const Util::String&
128{
129 return this->description;
130}
131
132//------------------------------------------------------------------------------
135inline void
137{
138 this->deviceName = s;
139}
140
141//------------------------------------------------------------------------------
144inline const Util::String&
146{
147 return this->deviceName;
148}
149
150//------------------------------------------------------------------------------
153inline void
158
159//------------------------------------------------------------------------------
162inline uint
167
168//------------------------------------------------------------------------------
171inline void
176
177//------------------------------------------------------------------------------
180inline uint
185
186//------------------------------------------------------------------------------
189inline void
191{
192 this->vendorId = id;
193}
194
195//------------------------------------------------------------------------------
198inline uint
200{
201 return this->vendorId;
202}
203
204//------------------------------------------------------------------------------
207inline void
209{
210 this->deviceId = id;
211}
212
213//------------------------------------------------------------------------------
216inline uint
218{
219 return this->deviceId;
220}
221
222//------------------------------------------------------------------------------
225inline void
230
231//------------------------------------------------------------------------------
234inline uint
236{
237 return this->subSystemId;
238}
239
240//------------------------------------------------------------------------------
243inline void
245{
246 this->revision = r;
247}
248
249//------------------------------------------------------------------------------
252inline uint
254{
255 return this->revision;
256}
257
258//------------------------------------------------------------------------------
261inline void
263{
264 this->guid = g;
265}
266
267//------------------------------------------------------------------------------
270inline const Util::Guid&
272{
273 return this->guid;
274}
275
276} // namespace CoreGraphics
277//------------------------------------------------------------------------------
278
Contains information about a given display adapter.
Definition adapterinfo.h:23
uint vendorId
Definition adapterinfo.h:74
void SetVendorId(uint id)
set vendor id
Definition adapterinfo.h:190
uint GetDeviceId() const
get device identifier
Definition adapterinfo.h:217
uint subSystemId
Definition adapterinfo.h:76
void SetDriverName(const Util::String &s)
set driver name
Definition adapterinfo.h:100
void SetDeviceId(uint id)
set device id
Definition adapterinfo.h:208
void SetDriverVersionHighPart(uint v)
set driver version high part
Definition adapterinfo.h:172
AdapterInfo()
constructor
Definition adapterinfo.h:85
void SetSubSystemId(uint id)
set subsystem id
Definition adapterinfo.h:226
uint driverVersionLowPart
Definition adapterinfo.h:72
uint revision
Definition adapterinfo.h:77
uint GetRevision() const
get hardware revision identifier
Definition adapterinfo.h:253
void SetRevision(uint r)
set hardware revision
Definition adapterinfo.h:244
uint GetDriverVersionLowPart() const
get low part of driver version
Definition adapterinfo.h:163
void SetGuid(const Util::Guid &g)
set driver/chipset pair guid
Definition adapterinfo.h:262
const Util::Guid & GetGuid() const
get guid for driver/chipset pair
Definition adapterinfo.h:271
uint driverVersionHighPart
Definition adapterinfo.h:73
void SetDescription(const Util::String &s)
set description string
Definition adapterinfo.h:118
void SetDriverVersionLowPart(uint v)
set driver version low part
Definition adapterinfo.h:154
uint deviceId
Definition adapterinfo.h:75
const Util::String & GetDriverName() const
get human readable driver name
Definition adapterinfo.h:109
const Util::String & GetDescription() const
get human readable description
Definition adapterinfo.h:127
Util::String deviceName
Definition adapterinfo.h:71
uint GetVendorId() const
get vendor identifier
Definition adapterinfo.h:199
Util::String description
Definition adapterinfo.h:70
void SetDeviceName(const Util::String &s)
set device name
Definition adapterinfo.h:136
Util::Guid guid
Definition adapterinfo.h:78
uint GetDriverVersionHighPart() const
get high part of driver version
Definition adapterinfo.h:181
Util::String driverName
Definition adapterinfo.h:69
uint GetSubSystemId() const
get subsystem identifier
Definition adapterinfo.h:235
const Util::String & GetDeviceName() const
get human readable device name
Definition adapterinfo.h:145
Implements a GUID.
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
id
Definition resourceid.h:37
Nebula's universal string class.
Definition string.h:50
unsigned int uint
Definition types.h:31