Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtrhi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Laszlo Agocs
qtrhi
Commits
cf408458
Commit
cf408458
authored
Mar 02, 2019
by
Laszlo Agocs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a getter for the QRhi Implementation
parent
4c2cc893
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
src/rhi/qrhi.cpp
src/rhi/qrhi.cpp
+11
-1
src/rhi/qrhi.h
src/rhi/qrhi.h
+3
-0
No files found.
src/rhi/qrhi.cpp
View file @
cf408458
...
...
@@ -3515,13 +3515,23 @@ QRhi *QRhi::create(Implementation impl, QRhiInitParams *params, Flags flags, QRh
profD
->
rhiDWhenEnabled
=
r
->
d
;
}
r
->
d
->
debugMarkers
=
flags
.
testFlag
(
EnableDebugMarkers
);
if
(
r
->
d
->
create
(
flags
))
if
(
r
->
d
->
create
(
flags
))
{
r
->
dtype
=
impl
;
return
r
.
take
();
}
}
return
nullptr
;
}
/*!
\return the backend type for this QRhi.
*/
QRhi
::
Implementation
QRhi
::
backend
()
const
{
return
dtype
;
}
/*!
\class QRhiResourceUpdateBatch
\inmodule QtRhi
...
...
src/rhi/qrhi.h
View file @
cf408458
...
...
@@ -1277,6 +1277,8 @@ public:
Flags
flags
=
Flags
(),
QRhiNativeHandles
*
importDevice
=
nullptr
);
Implementation
backend
()
const
;
QRhiGraphicsPipeline
*
newGraphicsPipeline
();
QRhiShaderResourceBindings
*
newShaderResourceBindings
();
...
...
@@ -1339,6 +1341,7 @@ protected:
private:
Q_DISABLE_COPY
(
QRhi
)
QRhiImplementation
*
d
=
nullptr
;
QRhi
::
Implementation
dtype
;
};
Q_DECLARE_OPERATORS_FOR_FLAGS
(
QRhi
::
Flags
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment