Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
cf408458
Commit
cf408458
authored
Mar 02, 2019
by
Laszlo Agocs
Browse files
Add a getter for the QRhi Implementation
parent
4c2cc893
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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